On 29/07/18 17:35, Andrew Eisenberg wrote:
> Hi all,
> 
> My openvpn server is on the same machine as my nginx server. When my clients 
> make requests to the nginx server, the IP addresses that get logged are the 
> original, non-vpn address of the client. Here is some more information:
> 
> 1. client's non-vpn address is 50.64.25.75
> 2. icanhazip.com <http://icanhazip.com> returns 190.171.27.34 (this is the 
> correct public facing ip address and is also the ip address of the vpn and 
> nginx server)
> 3. client's vpn address is 10.8.0.210
> 4. nginx logs the client's IP address as 50.64.25.75 (ie- the non-vpn address)
> 
> #1, 2, and 3 are all what I want and expect. However, #4 is not. I want nginx 
> to see the client's vpn address. How can I get this to happen?
> 
> I am happy to provide any extra information that you need. Thanks for your 
> help.
> 
> Andrew


You can make nginx listen on vpn IP also (10.8.0.x)
and access that IP from the client.

G


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to