Forum Discussion
Logan_Ramirez_5
Dec 08, 2005Nimbostratus
conditional SNAT
We have a relatively simple environment: two data centers, one web server in each, one bigip in each. Basic pool in each office for web servers consists of (a) local web server and (b) other data cen...
Logan_Ramirez_5
Dec 09, 2005Nimbostratus
Ok, changed the iRule to:
when SERVER_CONNECTED {
set client 192.168.1.1
if {[IP::client_addr] == $client} {
log "local_addr: [IP::local_addr]"
log "remote_addr: [IP::remote_addr]"
log "client_addr: [IP::client_addr]"
log "server_addr: [IP::server_addr]"
}
}
and submitted command from client and it did not connect (if I remove the irule, it connects okay) and now the log show this:
Dec 9 08:57:28 tmm tmm[703]: 01220001:3: TCL error: Rule test_snat - Error: No connection established IP::client_addr needs an established connection! (line 2) invoked from within "IP::client_addr"
I am really confused now...
the virtual:
virtual test_snat {
destination 192.168.201.100:any
snat automap
pool test_snat_pool
rule test_snat
vlans internal enable
}
the pool:
pool test_snat_pool {
min active members 1
monitor all gateway_icmp
member 192.168.197.100:any priority 12
member 192.168.198.100:any priority 5 monitor none
}
Again, 197 is local, 198 is remote, but right now, with this iRule on the VS, it does not connected. Remove the iRule, connects. Of course, still have not solved the conditional SNAT we desire.
Thanks, F5. I am, at the very least, enjoying the learning process...admittedly, frustrated, but hoping we will get there...
-Logan
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