Forum Discussion
Joe_Frost_43072
Nimbostratus
May 08, 2007Single host SNAT iRule
Hello all-
I have a simple apache pool with 3 internal hosts and 1 host that lives outside of my network in which i want to SNAT exclusively in order to bypass the asymetrical routing issue....
hoolio
Cirrostratus
May 09, 2007Hi,
There are a few methods. If you want to explicitly define which hosts and/or ports to SNAT for, you can use this codeshare example:
http://devcentral.f5.com/wiki/default.aspx/iRules/SelectiveSNAT.htmlClick here
Else, this example is a bit simpler. It applies a SNAT if the client IP address is the same as the selected node.
when LB_SELECTED {
if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {
snat 192.168.100.12
}
}Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
