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