Forum Discussion
Jacob_Becker_41
Nimbostratus
Jun 06, 2006redirect by ip to pool
I'm a newbie to the irules game and I'm just wondering if its possible to redirect traffic from a ip to a pool. Basically what I want to accomplish is redirect all traffic from port 3306 to a pool, b...
unRuleY_95363
Jun 07, 2006Historic F5 Account
I can't believe no one has mentioned that you should probably be using the IP::addr command to compare IP addresses. Though what you have will work, it will result in an inefficient string comparison.
Instead you should use this to compare IP addresses:
if { [IP::addr [IP::remote_addr] eq $ext_ip] and ( [TCP::local_port] == 3306 ) } {Also, your most recent error is probably due to missing whitespace between the closing parenthesis and closing brace... Tcl is very picky about whitespace.
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