Need to have access to my office PC from my laptop hopping through two VPN servers

Posted by Andriy Yurchuk on Super User See other posts from Super User or by Andriy Yurchuk
Published on 2012-08-29T07:44:06Z Indexed on 2012/08/29 9:41 UTC
Read the original article Hit count: 294

Filed under:
|

Here's the illustration of what I have ( http://clip2net.com/s/2fvar ):

enter image description here

  1. My office PC with it's IP of 123.45.e.f.
  2. Office VPN, which I will connect to from my VPS to get to my office PC.
  3. My own VPS, which I use as a:

    • client to connect to office VPN (through vpnc, which creates a tun0 with 123.45.c.d IP address);
    • VPN server my laptop can connect to (OpenVPN, tun1, 10.8.0.1)
  4. My own laptop I will use as a VPN client to connect to VPS OpenVPN server (will create a tun0 with 10.8.0.2 IP address)

Now what I have to do is to allow my laptop to connect to at least my office PC, but preferably to all the 123.45.x.x subnet. Please advice on how to best configure OpenVPN, routing, iptables or whatever else is needed on my VPS so that my laptop could gain access to my office PC.

P.S. The reason I'm hopping through my VPS is that being connected to the office WiFi I cannot access my office PC and I cannot connect to office VPN (which is another way to access my office PC). The only way to access my PC from office WiFi I have is hopping though an outside network.

© Super User or respective owner

Related posts about vpn

Related posts about openvpn