Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 2 down vote accepted
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.

share|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 posting your answer, you agree to the privacy policy and terms of service.

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