vpnc issue with /etc/resolv.conf prevents connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-vpnc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
vpnc (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Bug Description
Binary package hint: vpnc
vpnc 0.5.1r275-1ubunu1
This worked under Hardy but I can't get it working under Intrepid. The VPN connects successfully using VPNC but then I can't ping anything on the virtual network or connect using 'Terminal Services Client'.
I have a work around for the failure to connect using 'Terminal Services Client' after establishing a VPN connection via VPNC in 8.10.
Have a look at /etc/resolv.conf
Mine looks like this. It holds the DNS servers lookups.
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.254
search home
After I connect to my VPN it looks like this.
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.254
nameserver 10.66.5.40
nameserver 172.26.128.23
search home central.luton
If I try to ping a server on the VPN I get the following error.
ping: unknown host jewel
I then edit the file to comment out the original DNS entry.
sudo vi /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#nameserver 192.168.1.254
nameserver 10.66.5.40
nameserver 172.26.128.23
search home central.luton
I can now ping the server on the VPN.
PING jewel.central.luton (10.66.9.50) 56(84) bytes of data.
Now I can also get a 'Terminal Services Client' session to connect.
I don't know if this is a bug and needs fixing but this works for now.
Here are my Hardy /etc/resolve.conf settings running under VirtualBox for comparison (this works)
Before VPN connection