Forum Discussion
Romel_77740
Nimbostratus
Jan 15, 2009irule to replace source IP with an arbitrary IP
When a packet hits a bigIP VIP, I need an irule to replace the source IP of the received packet with an arbitrary IP before forarding the packet to some destination server.
Is there an irule capability?
4 Replies
Sort By
- Deb_Allen_18Historic F5 Accountthe SNAT command is what you are looking for, i think: Click here
- Romel_77740
Nimbostratus
Ok. I am trying a simple code as shown below. When the snat command is commented out, the virtual server that is loaded with the irule forwards the packet. When I uncomment out the snat statement, the virtual server does not forward the packet that matches the source IP w.x.y.z though the log statements show in /var/log/ltm file. - Romel_77740
Nimbostratus
Can the translation IP be any arbitrary IP or it has to be defined somewhere in bigIP configuration? Must the origin IP (the client's IP) be RFC1918 (ie does the code check for it to be RFC1918)? - hoolio
Cirrostratus
There aren't any restrictions on what IP is used for a SNAT. But if you want to use symmetric load balancing, the destination server would need to route the response back to the LTM.
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