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, 2007It looks like there might be something else in your class, other than just the IP address, which is being interpreted as a netmask.
If you want to apply a SNAT for specific clients, you can use IP::client_addr instead of LB::server and you can do it in the CLIENT_ACCEPTED event instead:
when CLIENT_ACCEPTED {
SNAT requests if client_addr is defined in the class
if { [matchclass [IP::client_addr] equals $::Hosts]} {
snat automap
}
}If this doesn't work, can you run the following commands from the command line or the GUI's console page to list the configuration for the class and rule?
b class Host list all
b rule single_snat list all
Thanks,
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
