How do I setup routing through a PPTP VPN?

6,768
sudo route add 192.168.0.0/24 gw 192.168.2.VPNENDPOINTADDRESS  

the far end will either need to NAT or the far network will need to have a route back.

Share:
6,768

Related videos on Youtube

agnul
Author by

agnul

Jack of all trades, master of none.

Updated on September 17, 2022

Comments

  • agnul
    agnul over 1 year

    I have created a PPTP connection back to my office, and managed to setup routing as suggested in this question, so that everything outside the office LAN keeps going to my current default gateway.

    My problem is that I'd like to access some hosts in the office that are on a different subnet. Suppose I'm on the 1.2.x.y/24subnet and through the VPN I can access the 192.168.2.x/24 subnet (the office LAN). I'd like to access the office DMZ at 192.168.0.x/24 through the VPN. How can I do that? (of course at the office the gateway on the LAN knows how to reach the DMZ).

  • agnul
    agnul over 13 years
    The obvious answer, means that if it's not working there's something wrong on the far end.