Forum Discussion
jlundber_44460
Nimbostratus
Feb 25, 2008Source routing
Hello everyone!
We are trying to consolidate our enviorment and need to do some kind of source routing or change the arcitechture.
This is how our enviorment is set up.
INTERNET
| |
| |
webserver A ---bigip--- firewall A firewall B ---bigip--- webserver B
| |
INTERNAL networks
| |
LDAP backup
We are hosting two customer sites with seperate firewalls, but both firewalls are connected to an internal network where we have ldap, backup, dns and other infrastructure servers that are used by both customers.
So what we need to do is make the bigip route trafik from webserver A to firewall A and the same for customer B for the internal networks.
Is there an easy way to do source routing in the bigip?
/Jonas
- dennypayne
Employee
Are A and B on separate networks? If so, you can just create 2 wildcard fowarding virtuals, one enabled on each VLAN, and use a different firewall pool for each one. - uni
Altostratus
Thanks Denny, this is a very timely post for me.---------------- ------------------ - 10.11.11.x - - 192.168.3.x - ---------------- ------------------ | | ROUTER ROUTER | | ---------------- ------------------ - 10.10.10.254 - - 192.168.2.254 - ---------------- ------------------ | | VLAN X VLAN Y | | | | --------------------------------------------------- - 10.10.10.x 192.168.2.x - - F5 LTM - - 172.18.10.x 172.18.12.x - - - --------------------------------------------------- | | VLAN A VLAN B | | server server
- JRahm
Admin
The LTM has a feature enabled called auto lasthop that will send the traffic back to the mac it came from, so as long as this is still enabled, you should be fine. - JCMATTOS_41723
Nimbostratus
Denny - I was wondering if you had an example of the irule solution for this similar scenario? I tried using a wildcard forwarding virtual server with this irule and not sure if this would work the same way? Thx! - dennypayne
Employee
I don't have another example but yours looks like it should work fine (I haven't vetted the syntax - not sure about the "ne 0" - but the logic looks good to me). But you see what I mean about it being harder to scale. You might want to use the switch command instead of all the elseif's (there's a bunch of examples of that in various posts in the 9.x iRules forum). - JCMATTOS_41723
Nimbostratus
Sounds good Denny, Looks like that worked...Thx again! Also I tried to look up an irule example in the forum that uses the switch command but no luck...Do you mind pointing me in the right direction? Never used this command before...Thx! - dennypayne
Employee
Take a look at these threads - - mark_64191
Nimbostratus
Hi Denny (or whomever else can answer), - dennypayne
Employee
If you create a default gateway pool, then auto lasthop should take care of your first concern. I think as long as you only enable the SNAT and the VLAN X virtual server on VLAN X (instead of the default of All VLANS) then the traffic from the SNAT to VLAN Y will go out the appropriate default gateway. But without being able to test your setup I'm not 100% sure that what you describe won't happen, because without the forwarding virtual server you can't explicitly point outgoing traffic to the firewall interface. - Sven_89244
Nimbostratus
Hi Denny,
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