Forum Discussion
tolinrome_13817
Nimbostratus
Mar 04, 2014iRule for port range
Hello,
I need to create an iRule for a VIP that listens for tcp\udp range 1570-1575 and range 2500-3500.
Can someone help? Thanks!
Mar 04, 2014
I guess you could create two VIPs (one TCP, one UDP) which listens to all ports and then drop the requests that does not fit the port span you defined above with an iRule.
Maybe something like this for the tcp VS: when CLIENT_ACCEPTED {
if { ! (([TCP::client_port] > 1570 and [TCP::client_port] < 1575) or ([TCP::client_port] > 2500 and [TCP::client_port] < 3500)) }{
drop
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects