Forum Discussion
aziegelb_7634
Aug 31, 2011Nimbostratus
SNAT based on source address
Is it possible or even recommended to set up SNAT to translate based on the source address? For example, all of our clients have an IP address of 10.20.x.y and we'd like to have the source address tr...
hooleylist
Aug 31, 2011Cirrostratus
You could do this pretty efficiently and easily with an iRule like this:
when CLIENT_ACCEPTED {
scan the client IP into separate octets
scan [IP::client_addr] {%*d.%*d.%d.%d} a b
Apply SNAT using the last two client IP octets
snat 10.20.$a.$b
}
Aaron
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