Forum Discussion
adharkrader
Nimbostratus
Sep 29, 2011See if an IP address is a member of a SNAT?
I'm in a CLIENT_ACCEPTED iRule and I'd like to see whether my source address is going to be SNATed, either to a specific SNAT or auto-map... I don't see an IP:: for that... is there a way to do that? ...
The_Bhattman
Nimbostratus
Sep 30, 2011Hi 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
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