Forum Discussion
Asymmetric routing condition with two "external" networks
(Hopefully the attached PNG file shows, the red line is how the traffic is routed now, you can see the asymmetry, and the green line is how I'd like to force all traffic between these nodes)
We recently added an external interface on the F5 (external, meaning the firewall has the route, internal meaning the firewall has a static route to the F5).
When the interface was added and the IP address configured it broke our routing. Node A (default gateway is the F5) on the 10.101.246.0/24 network sent a packet to Node B on the 10.101.104.0/24 network. Since the F5 has a connection on this network, it took the least hops and sent out the request to node B on its interface on the 10.101.104.0/24.
Node B has a default gateway for the Firewall, so it sends the unicast IP packet to the firewall's MAC. The firewall does keep track of session state, doesn't have the initiation packet (since the F5 sent it out its direct interfface) and refuses the connection, effectively ending the communication between Node A and Node B.
We only need to configure a virtual server on the 10.101.104.0/24 network that will send it's traffic to node members of a pool on the 147.101.246.0/24. The F5 doesn't need to route anything for the 10.101.104.0/24 network.
Iis there an iRule or some configuration I can put on the F5 so it will never send traffic for nodes through the 104 interface and to always send these packets to the default gateway (the FW)? We do have virtual servers on the F5 with node pool members that are on the 10.101.104.0/24 network, but I'd want even this traffic to go through the firewall. The only traffic we require from the 104 directly connected is the desitnation address for the virtual server that will be on the 104 interface.
12 Replies
- Michael_57131
Nimbostratus
trying to add a static route, does not work. I can add a static route to the F5:route 10.101.104.0/24 { gateway 10.101.224.220 static }
- nitass
Employee
Iis there an iRule or some configuration I can put on the F5 so it will never send traffic for nodes through the 104 interface and to always send these packets to the default gateway (the FW)? We do have virtual servers on the F5 with node pool members that are on the 10.101.104.0/24 network, but I'd want even this traffic to go through the firewall.when node A is connecting to node B, does F5 do destination ip translation (i.e. host virtual server) or just forward traffic to node B (e.g. network or wildcard virtual server)? would it be possible to let F5 do only forwarding traffic for node B through firewall (e.g. network or wildcard virtual server with firewall as pool)? - Michael_57131
Nimbostratus
The F5 is just forwarding taffic between Node A and Node B.
where peernet is the dedicated fiber connection between the HA Pair.virtual Forwarding { ip forward destination any:any mask none vlans peernet disable }
- What_Lies_Bene1
Cirrostratus
An iRule using the nexthop command might suffice however surely the return traffic will not come via the F/W. Essentially this is a flawed and dangerous design.
https://devcentral.f5.com/wiki/iRules.nexthop.ashx
- Michael_57131
Nimbostratus
I did try to set a route explicitly that would use the 10.101.224.220 as the default gateway for traffic to the 10.101.104.0/24 network, but the connection request from node a to node b fails still. - What_Lies_Bene1
Cirrostratus
Apologies I didn't real the thread fully. So, an iRule is still an option, would you like to go further with it? As I said before, this design is sub-optimal and insecure. - Michael_57131
Nimbostratus
I may need to read more about the iRule and insecurity. This is a temporary condition for a few months while we migrate off these pair of F5's and into a new facility where we are prepping the new F5's. - What_Lies_Bene1
Cirrostratus
There are is a flaw in that plan, namely that a forwarding VS will rely on the routing table and any static route you configure will be installed with a higher metric that the route that's created by the connected interface.when CLIENT_ACCEPTED { if { [IP::addr [IP::local_addr] equals 10.101.104.0/24] } { nexthop vlan_name 10.101.224.220 } }
- Michael_57131
Nimbostratus
Node B's default gateway is the FW, I'll schedule a maintenance window and try the forwarding server with the iRule configuration. - What_Lies_Bene1
Cirrostratus
OK, fingers crossed.
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