Bizarre client IP switch-up on VPN

Posted by B. VB. on Server Fault See other posts from Server Fault or by B. VB.
Published on 2012-04-05T21:39:26Z Indexed on 2012/04/05 23:32 UTC
Read the original article Hit count: 208

Filed under:
|
|

Let A.B.C.D be the public IP of my VPN server. Let W.X.Y.Z be the IP of the client before it connects to the VPN.

My VPN server's IP address on the LAN in 10.8.0.1, and the client is 10.8.0.6. I also run a webserver on the same machine hosting the VPN. On it is a simple webpage that performs the exact same thing as whatismyip.org (i.e., simply prints the IP of the requester)

Let me illustrate the scenario for you.

In a Chrome window I have three tabs, what I have in parenthesis is the URL:

  • Tab 1 (http://whatismyip.org):

    A.B.C.D

    This is what I expect to see. It's the public IP of the VPN server.

  • Tab 2 (http://10.8.0.1):

    10.8.0.6

    ok, looks expected. They are behind the same LAN now.

  • Tab 3 (http://A.B.C.D)

    W.X.Y.Z

    WTF?? Basically, if I access the webserver while tunneled, in shows the IP address of my machine PRIOR to tunelling!

Remember, tab2 and tab3 are the same webpage. Why does Tab3 not show the client IP as it's own IP (i.e., show A.B.C.D)???

I hope this question is clear, thanks in advance!

© Server Fault or respective owner

Related posts about vpn

Related posts about openvpn