Forum Discussion

Yujiehao's avatar
Yujiehao
Icon for Nimbostratus rankNimbostratus
Jun 08, 2017

Get real client port

Hi everybody I have a question need your help. The client through a proxy server to access my website, F5 deployed SNAT POOL, I know I can use X--FORWARDER field to get the real client IP。but now, I'll also need to get the client real source port,Who can tell me what to do?

 

2 Replies

  • Hi,

     

    Depends what do you mean by "real client port". I f client is reaching your VS via some proxy you can only retrieve port of proxy that passed request to you VS, not original client port.

     

    There is simply not way of doing that except situation when proxy passing request to your VS is including some custom header with client port reported.

     

    Piotr