#StackBounty: #proxy #openvpn OpenVPN through proxy, can't get client ip address

Bounty: 100

I have 3 pc’s:

  • pc1 hosts the VPN server
  • pc2 hosts a proxy server and acts as client 1
  • pc3 acts as client 2
  • pc3 shares a network with pc2, but not with pc1
  • pc2 shares a network with pc1.
  • client1 is connected through the proxy on pc2
  • client2 is also connected through the proxy on pc2

So the setup looks like this:

----------------
|      pc3     |
|  VPN Client2 |
|  10.100.0.3  |
----------------
       |
       | Network A
       |
----------------
|      pc2     |
| Proxy server/|
|  VPN Client1 |
|  10.100.0.2  |
----------------
       |
       | Network B
       |
----------------
|      pc1     |
|  VPN Server  |
|  10.100.0.1  |
----------------

Now, pc1 hosts a webserver which will get the ip address of the client making the request for the webpage.

When I make the request from PC2 I can correctly see the request came from PC2.

But when I make the request from PC3 I expected to see the VPN assigned ip address of 10.100.0.3, but instead I get the ip address from PC2 in the case when client 1 is connected, if client 1 is not connected will get the ip address of the VPN server itself (10.100.0.1)

I thought I created a direct ‘tunnel’ which would make pc1 think the request came directly from pc3, what am I doing wrong?


Get this bounty!!!