X-forwarded-for getting private client IP address
Hello All,
I am trying to figure out why the x-forwarded-for variable is being populated with a private client IP address when the virtual server is accessed from certain clients but others it gets populated with the public IP?
I would like the x-forwarded-for variable to always use the public IP address and not the private IP if possible.
Testing One of my developers created a variables test page so I can see what IP is being populated in the x-forwarded-for variable. When I launch this page from some machines the x-forwarded-for address will match the public IP address that I get when I google what is my IP and not the private IP address I see when I use ipconfig.
We then have a few customers that when they connect to this site the x-fowarded-for variable is populated with the private IP that is assigned to their computer.
Configuration
- I have an active/standby HA pair running 12.1.2 HF2
- This particular configuration was done from http template
- Plaintext to and from both client and servers
- Internal server is running IIS with advanced logging enabled
- Source Address Translation is set to Auto Map
- http profile has Insert x-forward-for enabled
Thanks for any help or advice you can provide.