For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

mohamed1's avatar
mohamed1
Icon for Nimbostratus rankNimbostratus
Aug 06, 2019

irule translate ip address

Hey;

I have client IP (192.168.1.1) and IP Server (10.2.0.33) and IP Virtual Server (192.168.1.178)

I Want when connect to server connect from an IP (20.20.20.20)

I Want Use Irule

3 Replies

  • Do you want to translate only client ip 192.168.1.1 or any client ip?

     

    if you want to translate any client with source 20.20.20.20, you can create a snat pool with this IP address and assign it to the virtual server... no need an irule!

  • try this:

    when CLIENT_ACCEPTED {
        if {[IP::addr [IP::remote_addr] equals "192.168.1.1"]} {
            snat 20.20.20.20
        }
    }