Forum Discussion
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?
when HTTP_REQUEST { HTTP::header insert X-Forwarded-Port [TCP::local_port] }
- dragonflymr
Cirrostratus
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
Recent Discussions
Related Content
* 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