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, but I want to limit who can get to the pool to just our ip.
13 Replies
- Deb_Allen_18Historic F5 AccountActually "equals" is the only equality operator that seems to work for IP comparison w/IP::addr:
if { [IP::addr [IP::remote_addr] equals $ext_ip] and [TCP::local_port] == 3306 }{
/deb - JRahm
Admin
Maybe we should start an examples list under each of the How to Write Fast iRules suggestions on the wiki. I guess this would fall under 7? - Jacob_Becker_41
Nimbostratus
that did the trick thanks
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