Forum Discussion
Samurai
Nimbostratus
Sep 08, 2012SNAT - originating client IP
In a SNAT Pool setup, if you want to find out the client IP connecting to a VIP, is the only way to run tcpdump?
If yes, then the tcpsump should be run against all snat pool IPs?
Thanks
2 Replies
- hoolio
Cirrostratus
Hi Samurai,
If you're using the SNAT pool on a virtual server, you could use an iRule to log the source IP address TMM uses:
when SERVER_CONNECTED {
log local0. "Complete connection: Client: [IP::client_addr]:[TCP::client_port]<-> Virtual: [clientside {[IP::local_addr]:[TCP::local_port]}] LTM source [IP::local_addr]:[TCP::local_port] <-> Server: [IP::server_addr]:[TCP::server_port]"
}
If you have a lot of connections going through the virtual server, it would be a lot more efficient to use High Speed Logging to send the logs to a remote log server:
https://devcentral.f5.com/wiki/iRules.hsl.ashx
Aaron - Samurai
Nimbostratus
Aaron, Thank you!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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