Hi, I am trying to replicate Cisco PBR configuration in F5 LTM using an irule, I have a condition, if Local_Client = 192.168.11.10 is trying to access Remote_Server = 192.168.12.10, I want to translate the source to SNAT_IP = 192.168.12.10.
I have to put the irule to a forwarding virtual server that forwards traffic for all the inside clients to outside…and vice versa…I just want to put the conditional SNAT for the Local_Client.
when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 192.168.11.10/32] } { if { [IP::addr [IP::remote_addr] equals 192.168.13.10/32 ] } { snat 192.168.12.10 } } }
I have tried it but it does not seem to work, need your experts’ suggestion.
I don’t think client_accepted will work in this case since you are using a Forwarding(IP) VIP and the first packet will be sent to the destination before the three way handshake is complete. What version are you running? If you are running 11.5+ you can create you forwarding(IP) VIP with source and destination and just apply your SNAT to that VIP.
What does ip any profile does…I want to permit both TCP and UDP from source to destination…but when I select all protocol…this profile (ipother) is getting applied…which according to help says any traffic other than tcp & udp?