I am trying to configure the nexthop global cmd via an iRule inorder to send traffic to a particular gateway depending upon which vlan it hits.
In a simple vm lab I have one vlan ‘Prod’ with a server node of 10.20.0.111. The virtual server is addressed as 10.20.0.250. I have removed the default route on the Ltm and configured the global nexthop irule and applied it to the VIP. What seems to happen when i attempt to pass traffic is that the VIP holds on to the traffic. For eg, for an FTP I get a connected to ‘vip ip’
(I have tried using the mac address and ip address of the destination server with the same results.
i have tried this with the default route on the box as well as with it removed..
my tcpdumps on the ltm for say port 22 (for the above config) show me the ip address of the destination server (when I don’t have the irule applied). The tcpdumps only show me the VIP address being involved when the irule is applied.
In my clients scenario the node is locally attached to the BIG-IP but the request has to be forwarded through a locally attached firewall in another VLAN.
This failed, if the nexthop was set before setting the node.
In this case the nexthop command was simply ignored and the request forwarded directly to the locally attached node (firewall bypassed).
When client goes to 10.34.26.20 the connection is closed by LB and tcpdump shows a lot of SYN/RST traffic from LB to destination IP (63k packets last time). It looks like some internal loop. Client tested 1 connection using ftp.
“Translate address” on VS level is disabled, otherwise the nexthop command does not work and client gets TCP RST “No route to host”
When client goes to 10.34.26.20 the connection is closed by LB and tcpdump shows a lot of SYN/RST traffic from LB to destination IP (63k packets last time). It looks like some internal loop. Client tested 1 connection using ftp.
“Translate address” on VS level is disabled, otherwise the nexthop command does not work and client gets TCP RST “No route to host”
This might have been the cause for the no route error and will allow you to enable the destination NAT as it will be required for proper further routing. Cheers, Stephan