Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 would like to be able to connect to the office network and access the internet through that network and the servers within the network. I use a server running Ubuntu Server (fully updated) behind a router which acts as pptp server.

It is setup like this:


Router delivers IP's in the range of, the router has IP The Ubuntu Server running PPTP server has IP (static, delivered by the router).


A network using the same range ( I tried to connect through Ubuntu and MacOSX, both give the same result.

PPTP Settings



sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

(not really necessary I guess, but just to be sure)

Of course I forwarded port 1723 to and opened the port on the ubuntu server (ufw allow pptp)

Current situation
I could connect to the VPN and also access the internet. According to I do have the office IP, so that part works. I am able to ping, but not any of the other addresses within the network. I just don't know what to do anymore. I have followed all steps in many tutorials, but that doesn't change anything. One suggestion I also tried:
sudo iptables -A FORWARD -o ppp+ -i eth0 -s -d -j ACCEPT
sudo iptables -A FORWARD -i ppp+ -o eth0 -s -d -j ACCEPT

I don't know exactly what that does, but it didn't work anyways. Hopefully somebody can help me out here :). Thanks for reading so far :).

share|improve this question

Using the same address range for both networks is a great misconfiguration.

I suggest:

  • Use (that means - for your office.
  • Use (or any other private network, but not at home.
  • Check that the address range your PPTP-server manages ( is NOT managed by the DHCP servers (if any) on your networks.
share|improve this answer

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.