Forum Discussion
Ron_Kim_110696
Nimbostratus
Mar 23, 2007Selective SNAT based on server network
I'm trying to do a selective SNAT based on where the servers are located.
The BIGIP has multiple network connections.
This iRule does not work.
Any suggestions?
I have...
JRahm
Admin
Mar 26, 2007Here's an example of matching single hosts. This has not been tested, but passes the syntax checker on version 9.1.2.
class snat_map {
"192.168.168.10 dmz192.168.68_SNAT"
"192.168.170.10 dmz192.168.70_SNAT"
}
when LB_SELECTED {
set local_subnet_snat [findclass [LB::server addr] $::snat_map " "]
if { $local_subnet_snat ne "" } {
snatpool $local_subnet_snat
}
}
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