Forum Discussion
irule to source route traffic using a VIP
Hello,
I would like to split traffic outbound from load balanced servers to different routers/gateways using irule. i want servers with subnet 192.168.10.0/24 to use default route 0.0.0.0 and use old core router. i want servers with subnet 192.168.20.0/24(translated to 192.168.30.0/24) to use a different route and exit using a new core router.
i created a vip(called wildcard) with default route 0.0.0.0 and a pool that has old core router. i create an irule ans i associated it with the vip above to split traffic based on source traffic originated from server snated to 192.168.30.0 SNAT_GW_POOL and VIP_GW_POOL are the new core router interfaces.
please help me out if you have done this before or know how to fix it...this is outbound traffic from load balanced servers trying to exit from the F5.
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 192.168.30.0.0/24]}
{ pool SNAT_GW_POOL event disable all }
elseif { [IP::addr [IP::client_addr] equals 192.168.20.0/24]}
{ pool VIP_GW_POOL event disable all }
}
1 Reply
- Michael_Yates
Nimbostratus
Hi Sam01,
Check out this post. It has an example of an iRule and an alternate solution below the iRule example. I would suggest weighing your options and choosing which is best for you.
Hope this helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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