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...
Colin_Walker_12
Jun 07, 2006Historic F5 Account
It sounds like you're adding this to your BIG-IP via the GUI, correct?
If so, try this instead:
when CLIENT_ACCEPTED {
if { [IP::remote_addr] == $ext_ip and [TCP::local_port] == 3306 } {
log local0.info "accepted connection from [IP::remote_addr]"
pool mysql
} else {
log local0.info "rejected connection from [IP::remote_addr]"
reject
}
}
Changing the $ext_ip bit to your IP, of course.
The
rule name { } pieces are only needed if you're adding this directly to the configuration file. The GUI automatically adds those around the code you paste into the text box.
Colin
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