How to use VPN and Internet at the same time?

Asked by etereo

I just successfully configured a VPN connection, but after that I can no longer browse the Internet.

In XP I remember that I could do this by unchecking "Use default gateway on remote network" in the configuration of the VPN.

So I went to configure the VPN connection and in the "Routing" tab, checked the "Only use VPN connection for these addresses" and typed the subnet I want (ie 172.36.16.0/24).

Now that seems to work, a little, since I can use pidgin or skype while connected to the VPN, but I cannot ping sites from the terminal (like www.google.com or other new ones). I guess this has to with the DNS server, since sites/apps that already know the DNS resolution can access the Internet, but I cannot access new/unknown IP addresses.

Any help will be greatly appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
etereo
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
etereo (etereo-hotmail) said :
#2

Can someone pls tell me if this is this something that can't be done? Can't be done yet? Or no one knows how to do it?

Thnx

Revision history for this message
etereo (etereo-hotmail) said :
#3

Figured it out, work around only. This functionality is prevented by a bug in network-manager (#37239).

In the "PPP Options" tab of the "Edit VPN Connection" you need to uncheck "Use peer DNS" if your VPN doesn't have a DNS server, like mine. This should leave the DNS you had been using before; however, the bug blanks out /etc/resolv.conf so you are left with no DNS, and thus can't reach any new sites.

I made a spript which "restores" a correct copy of /etc/resolv.conf after the VPN connects.

Waiting for a proper fix