- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
12-12-2012 03:16 AM
How to get the client's IP address with x-forwarder-for in PAN, I need to create something to caputure this part of HTTP header?
Thanks.
Patricia.
12-12-2012 05:04 AM
I guess these settings might help (the first one is to remove that header from leaving your internal network):
set deviceconfig setting ctd strip-x-fwd-for yes
set deviceconfig setting ctd x-forwarded-for yes
According to the CLI manual for PANOS 4.1:
> ctd
+ bypass-exceed-queue — Set whether to skip inspection of session if queue limit is exceeded
+ http-proxy-use-transaction — Set whether to use transaction for stats for http proxy sessions
+ skip-block-http-range — Whether to skip the blocking of HTTP range requests
+ strip-x-fwd-for — Set whether to strip x-forwarded-for in http header
+ url-admin-timeout — Set URL admin continue timeout in minutes (1-86400)
+ url-coach-timeout — Set URL coach continue timeout in minutes (1-86400)
+ url-lockout-timeout — Set URL admin override lockout timeout in minutes (1-86400)
+ url-wait-timeout — Set URL category query timeout in seconds (1-60)
+ x-forwarded-for — Enable/disable parsing of x-forwarded-for attribute
There is also a similar setting in "set system setting", dunno what the difference is:
> ctd
> regex-stats-on — Whether or not generate regex statistics
> strip-x-fwd-for — Whether or not to strip x-forwarded-for from HTTP headers
> x-forwarded-for — Enables or disables parsing of the x-forwarded-for attribute
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!