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 27, 2007You're right. That wasn't working! I'm wondering if the connection is already begun in the LB_SELECTED event. Doing an LB::detach seems to have fixed things:
when LB_SELECTED {
set dst_server [LB::server addr]
LB::detach
pool [LB::server pool] member $dst_server
set local_subnet_snat [findclass $dst_server $::snat_map " "]
log local0. "Local Server $dst_server, Snatpool $local_subnet_snat"
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