Forum Discussion
mmelber14_62984
Nimbostratus
Sep 19, 2012Issue with Source based redirection when more than one subnet is added
A background on the situation.
We are running a warehouse management system that requires the telnet protocol to use different ports on the backend server for each "warehouse" or location. We ha...
hoolio
Cirrostratus
Sep 20, 2012You can't actually use a switch statement to evaluate subnets. The original if/elseif/.../else iRule should work. If that's not working you could add debug logging to each condition and check the logs in /var/log/ltm.
It would be more efficient to add the subnets and pool names to an IP address data group and use the class command to perform the lookup:
https://devcentral.f5.com/wiki/iRules.class.ashx
Aaron
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