Forum Discussion
jkotsay_44216
Nimbostratus
Sep 09, 2008Using IRule to direct traffic from specific source to VIP on another LTM
Hi, just wondering if anyone might have a sample of an irule that routes traffic to a certain vip based on source address criteria. In my case, I'd actully like to direct traffic to a vip on another ltm.
Something like...
if source = 10.1.2.0/24 then forward to vip address = 10.0.1.1
The irule would be running on one ltm and the vip address 10.0.1.1 would running on a different ltm (they can route to one another).
Thanks,
John
- hoolio
Cirrostratus
Hi John,when CLIENT_ACCEPTED { log local0. "[IP::client_addr]:[TCP::client_port] -> [IP::local_addr]:[TCP::local_port]" Check the source IP if {[IP::addr [IP::client_addr] mask 255.255.255.0 equals 10.1.2.0]}{ log local0. "[IP::client_addr]:[TCP::client_port]: matched IP check. Routing to 10.0.1.1." node 10.0.1.1 } }
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