Forum Discussion
JD2001_41834
Nimbostratus
Jun 28, 2007Source Base Routing
I was wondering if anyone has ever done source base routing with an iRule? I have 2 separate frontside networks and 2 separate backside networks and we are trying to keep all the traffic separate. So ...
JRahm
Admin
Jun 28, 2007define a pool for your two gateways, say gw-pool, then create a 0.0.0.0/0 virtual server applied to your internal vlans only and apply this rule to the vip:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr]/24 equals 10.223.34.0] } {
pool gw-pool member 10.223.32.1
} elseif { [IP::addr [IP::client_addr]/24 equals 10.236.36.0] } {
pool gw-pool member 10.223.36.1
} else {
Your other conditions, if necessary
}
}
You could use the node command instead of the pool, but then you don't get the benefit of your gateway being monitored (assuming you apply one in your pool definition)
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