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...
Jacob_Becker_41
Nimbostratus
Jun 07, 2006I guess I should add in a bit more. Basically I want to connect to some of our database servers, however they are on a different network. So the idea would be for the load balancer to drop any traffic on that port that didn't orginate from our external ip.
I gave this a try.
rule filter_clients_rule {
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
}
}
}But it threw up a few errors when I went to save.
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