Forum Discussion
mohamed1
Nimbostratus
Aug 06, 2019irule 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
- Stanislas_Piro2
Cumulonimbus
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!
- mohamed1
Nimbostratus
I Want use Irule
- Stanislas_Piro2
Cumulonimbus
try this:
when CLIENT_ACCEPTED { if {[IP::addr [IP::remote_addr] equals "192.168.1.1"]} { snat 20.20.20.20 } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects