Forum Discussion

gmalo30_33101's avatar
gmalo30_33101
Icon for Nimbostratus rankNimbostratus
May 22, 2009

iRule to route http traffic based on destination (client)

I am new to iRules but would like to be able to route http and https responses based on destination. For example I have three subnets 192.168.30.0/24, 192.168.31.0/24 and 192.168.32.0/24. F5 LB has inerfaces to those subnets.

 

 

Requests are generated by clients on those subnets to VIP address say 10.10.10.10 (with pool members in subnet 172.23.43.0/24) via a router which has interfaces in each of the subnets and also VIP subnet .

 

 

I want responses from the pool members to clients on subnets 192.168.30.0 /24, 192.168.31.0/24 and 192.168.32.0/24 to be routed via gateway router, IP address 10.10.10.1 and avoid assymetric routing since F% can just send traffic to each of the directly connected subnet interface.

 

 

Can someone please help me with an iRule to allow the F% to route traffic via the router and avoid assymetric routing.

 

 

Thanks in advance.

1 Reply

  • Have you tried looking into turning on Autosnat at the VIP? This might help you avoid asymmetric routing. If you turn it on the packets source address will be changes such that it allows the destination to return the traffic to the same path.

     

     

    hope this helps

     

     

    CB