mohamed1
Aug 06, 2019Nimbostratus
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
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
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!
I Want use Irule
try this:
when CLIENT_ACCEPTED {
if {[IP::addr [IP::remote_addr] equals "192.168.1.1"]} {
snat 20.20.20.20
}
}