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!
tolinrome_13817
Nimbostratus
Mar 04, 2014So I just paste this then into the Definition of the iRule???:
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 } } /Patrik
- Mar 04, 2014Yep, and assign it to the virtual server. /Patrik
- Mar 04, 2014One more thing. If you want to keep the port in question intact when the F5 sends the packet on to the members you might want to untick the port translation option in the VS config.
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