Forum Discussion
Mar 17, 2016
I might do it like this instead as it's easier to read.
when CLIENT_ACCEPTED {
Check which protocol and set the port variable
if { [IP::protocol] == 6 } {
6 means TCP
set port [TCP::local_port]
} elseif { [IP::protocol] == 17 } {
17 means UDP
set port [UDP::local_port]
} else {
Unhandled protocol
set port 0
}
Make sure the ports are between 10514 and 10526 OR 514, the select the pool
if { ($port >= 10514 && $port <= 10526) || $port == 514 } {
pool Pool_Name
} else {
reject
}
}
/Patrik