Forum Discussion
DavidWong_10382
Nimbostratus
Nov 03, 2009About SNAT
Hi Guys,
If SNAT is used, how to know the original client IP when F5 receives response from server and before sends response back to client? does someone happen to know it. Thanks.
I tried following cmds, none of them works.
IP::client_addr
IP::local_addr
IP::remote_addr
IP::server_addr
5 Replies
- hoolio
Cirrostratus
Hi David, - DavidWong_10382
Nimbostratus
basically ,SNAT is enabled for client IPs, i need to know the original client IP when F5 receives SIP_RESPONSE from server(node), i tried many times, it seems all those cmds IP::xx_addr return NAT address, not the original client IP. should other event be captured ? any suggestion is welcome. thanks. - hoolio
Cirrostratus
Can you try IP::client_addr in CLIENT_ACCEPTED and compare that with IP::client_addr in the event you're trying to get the client IP address is? IP::client_addr is a synonym for clientside {IP::remote_addr} and should return the source IP address LTM received on the client to LTM connection. If it's not returning the IP address you're expecting it's either a bug or a case where you're expecting the wrong IP address. - DavidWong_10382
Nimbostratus
if I use IP::client_addr under event SIP_RESPONSE , it shows below error message. - hoolio
Cirrostratus
Sorry, I didn't realise there wouldn't be a clientside connection in SIP_RESPONSE. I haven't worked much with SIP. Per the wiki page (Click here) IP::client_addr isn't a valid command in the event.
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