Forum Discussion
- The_BhattmanNimbostratusHi Al,
when SERVER_CONNECTED { log local0. "Source IP address for connection to node: [IP::local_addr]" }
- hooleylistCirrostratusHi Al,
Thanks - Al
In order to detect that you are using a SNAT you would need to use event "When SERVER_CONNECTED" along with "[IP::local_addr]" which would returns the self-ip address or spoofed client IP address LTM is using for the serverside connection.
Example:
when SERVER_CONNECTED {
log local0. "Source IP address for connection to node: [IP::local_addr]"
}
I hope this helps
Bhattman
Can you give more info on your scenario?
If you want to check the source IP address on the serverside connection, you can use Bhattman's example. Or if you want to check the SNAT config, you might be able to use LB::snat before the serverside connection is established:
http://devcentral.f5.com/wiki/iRules.lb__snat.ashx
Aaron