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 I need to have a default gateway for 1 subnet and a different default gateway for another subnet. Like below.
VLAN Source Destination Gateway
136 10.223.34.X ANY 10.223.32.1
137 10.223.53.X ANY 10.223.36.1
Any Help would be greatly appreciated.
Thanks,
- JRahm
Admin
define 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 } }
- dennypayne
Employee
You don't really have to do this with a rule, just create 2 gateway pools, one with each gateway address, and then create two wildcard VIPs (0.0.0.0:0), one enabled only on each internal VLAN (you'll have to use Performance L4 to enable All Protocols), and point those VIP's to their respective gateway pool. You'll probably have to have inbound forwarders to each internal network separately as well. - JRahm
Admin
Good point, why complicate things unless you have too, right? - zafer
Nimbostratus
Hello
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