I need an irule for a "VIP that forwards ANY to a pool that is going to a default gateway".
I need an irule for a "VIP that forwards ANY to a pool that is going to a default gateway". The iRule will intercept traffic going to the default gateway if it matches the specified match. The example rule I came up with is below. The rule is not working because the first line is expecting the client TCP Handshake to be completed. I need a rule that would match on the first SYN sent by the client.
when CLIENT_ACCEPTED { log local0. "[IP::remote_addr]:[TCP::remote_port] > [IP::local_addr]:[TCP::local_port]" if { [IP::addr [IP::client_addr] equals 192.168.192.39] } { snat 192.168.186.46 log local0. "192.168.192.39 HIT, snatting to 192.168.186.46" pool gate186tunnel } if { [IP::addr [IP::client_addr] equals 192.168.192.45] } { snat 192.168.186.47 pool gate186tunnel } }