Ubuntu – No External Network Access Through Ubuntu VPN

pptpdroutingUbuntuubuntu-9.04vpn

I have setup pptpd as my VPN server on Ubuntu Server 9.04, I am able to connect to the VPN from the client and can access the server's local network, but I am unable to connect to the external network via the VPN.

If I login to the server via SSH:

$ ping google.com
PING google.com (74.125.67.100) 56(84) bytes of data.
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=1 ttl=49 time=65.9 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=2 ttl=49 time=63.2 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=3 ttl=49 time=63.9 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=4 ttl=49 time=66.0 ms

If I connect to the VPN and ping locally:

$ ping google.com
ping: cannot resolve google.com: Unknown host

I have a feeling it is some routing issue on the server but I am unsure.

Best Answer

Can you ping the IP address (74.125.67.100)?

It could be that the VPN is working but you do not have correct DNS servers in your configuration.

You local DNS servers will most likely refuse connections from the other end of the VPN (or not be visible at all if they are on a private subnet as you see them).

If you can ping public IP addresses over the VPN but not access things by name, try specifying the OpenDNS servers as your name servers.