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).

sudo route add gw 192.168.2.VPNENDPOINTADDRESS  

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

| improve this answer | |
  • The obvious answer, means that if it's not working there's something wrong on the far end. – agnul Dec 2 '10 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.