Forum Discussion
nitass
Aug 31, 2014Employee
is it source port (client port) or destination port (virtual server port)? if it is destination, it is TCP::local_port.
when CLIENT_ACCEPTED {
Check if requested port is outside 18000 - 20999, 30000 - 30999
if { not ( [TCP::local_port] >= 18000 and [TCP::local_port] <= 20999 ) and
not ( [TCP::local_port] >= 30000 and [TCP::local_port] <= 30999 ) } {
Drop request
drop
}
}
TCP::local_port
https://devcentral.f5.com/wiki/iRules.tcp__local_port.ashx