Forum Discussion
Warren_A__97345
Nimbostratus
Nov 24, 2009Traffic Routing with out a Snat ?
Greetings everyone.
I am setting up a pair of HA F5s for my datacenter and I have a problem with IP preservation and I was hoping someone could shed some light on this topic for me.
My Network Layout Approximately. All IPs are public so I can easily route from elsewhere.
Vip network :
Public IPs
77.77.77.1 Routerhsrp
77.77.77.2 router1
77.77.77.3 router2
77.77.77.4 F5-BigIP-LB1
77.77.77.5 F5-BigIP-LB2
77.77.77.6 F5-BigIP-FloatingIP
77.77.77.7 mywww.vip.company.com (on LBs)
ServerNetwork (also public IPs)
88.88.88.1 Routerhsrp
88.88.88.2 Router1
88.88.88.3 Router2
88.88.88.4 F5-BigIP-LB1
88.88.88.5 F5-BigIP-LB2
88.88.88.6 F5-BigIP-LB-FloatingIP
88.88.88.7 www1
88.88.88.8 www2
88.88.88.9 www3
I was assuming since I am running all Public IP numbers I could rely on the F5 forwarding the to the proper server while only changing the from source layer2 information so the traffic would return back through the load balancer with out stripping the true source IP from the L3 data, Since I have the F5s on the 88.x.x.x network with the right vlan, unfortunately I can not seem to get any traffic to flow that way.
The moment I turn on automap snat or set up a snatpool in the 88.x.x.x network traffic flows fine, but everything is natted from the IP of the load balancer. I would like to preserve my source IP, but I would also like to not run n-Path/DSR style routing where I place a Loopback on the webservers with the VIP IP on them.
Any suggestion?
I am running 9.2.5, the vlan for the vips and the vlan for the server network is seperate and running untagged into access ports on my switches via individual interfaces on the LB (1.1vip and 1.2servers)
- hoolio
Cirrostratus
If you don't want to use SNAT or nPath, you'll need to set the default gateway on the servers to the floating self IP address of LTM on the server VLAN. This will ensure responses to clients not on the same subnet as the servers is sent back to the client via LTM. You would have to enable SNAT for clients on the same subnet as the servers. - The_Bhattman
Nimbostratus
Also if you using the floating self ip address you might want to think about implementing MAC masquerading. - Ben_Novak
Employee
I agree with hoolio. You need to change the default gateway of the nodes to the floating IP on the F5 and turn off SNAT. That will allow you nodes to see the client IP. However, once you do that you may not be able to manage the nodes. You will have to setup a virtual forwarder to forward all other traffic sourced from those nodes or else the F5 will not pass it. Let me know if you need more info on the virtual forwarder. You will probably need it if the node VLAN is not isolated behind the F5. - Warren_A__97345
Nimbostratus
A Virtual forwarder eh? I think that is the issue I am having. I was able to implement it with the gateway earlier, but then I was unable to manage my hosts directly. I know I could add a box in the domain as a management box, but I would prefer to not do this. I believe the virtual forwarder is the piece of the puzzle I did not discover. Could you please enlighten me to this? - hoolio
Cirrostratus
Hi Warren, - Warren_A__97345
Nimbostratus
Thanks Aaron, - hoolio
Cirrostratus
The service check date is normally found in the /config/bigip.license file. It's described in SOL7727: - Warren_A__97345
Nimbostratus
with the virtual forwarding servers: - The_Bhattman
Nimbostratus
You still need a route in your network to reach the network that sites behind the load balancer. Virtual forwarding servers basically allow you to forward between networks that terminate on the F5. - Warren_A__97345
Nimbostratus
So on my server network (internal, although all public ips)
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