Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted
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|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

 
discard

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.