Forum Discussion
Allim_63326
Nimbostratus
Sep 24, 2009LTM VIP for port range and specific ports
I have a strange request that I need do, I have to create a VIP for port range (10000-10100) and some specific ports (6427, 6813, 6837)
I know how to create a rule for port range but I am having difficulty in adding specific ports to the iRule. Here are the steps that I did
1. Create the VIP with any port (0)
2. created the iRule for port range (10000 to 10100)
when I try to add specific port to iRule it doesn't work
Any help would be highly appreciated.
- L4L7_53191
Nimbostratus
Could you post your rule? It'll help visualize what may be going on. - Allim_63326
Nimbostratus
Here is the iRule that doesn't work - hoolio
Cirrostratus
How about this?when CLIENT_ACCEPTED { if {not ([TCP::local_port] == 6427 or [TCP::local_port] == 6813 or [TCP::local_port] == 6837 or \ ([TCP::local_port] >= 10000 and [TCP::local_port] <= 10100))}{ drop } }
- Allim_63326
Nimbostratus
Yes it worked.
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