Forum Discussion

Danny_Trinh_197's avatar
Danny_Trinh_197
Icon for Nimbostratus rankNimbostratus
Feb 10, 2009

Script to include 2 UDP ports: 67 & 68

Hello room,

 

I saw many script about tcp port. And I try to apply it to UDP port. Below is what I come up, can you verify? if it's not correct, please help me to correct it.

 

 

when CLIENT_ACCEPTED {

 

Check requested port

 

if { ! (([UDP::local_port] == 67) || [UDP::local_port] == 68)}{

 

 

Request was to allowed ports, so goto vdhcp pool

 

pool vdhcp

 

}

 

}

 

 

Also, I'm confusing about local_port vs client_port, can any of you give me further definition.

 

 

Thanks,

1 Reply

  • local_port is context-sensitive, so it changes based on whether the query is in a client-side or server-side event. client_port will always be the client port no matter what event in which the query is used.

     

     

    BTW, good work, your rule should work fine, as long as it is the server you are hosting and not the clients.