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.
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.
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.
If you run tcpdump on the external VLAN filtering on the VIP address, what do you see as the client IP address for the client you’re testing from?
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.
I’m not sure what the order / context of events there are for SIP connections. Can anyone else shed some light on this?