fixing VPN problem in Ubuntu Windows 
Source : ... buntu.html

fixing VPN problem in Ubuntu

I set up VPN in Ubuntu 14.04, but when I tried to turn it on in NetworkManager, I kept getting errors like "No suitable device found", "Could not find source connection" in /var/log/syslog.

The problem turned out to be that my ethernet connection was not managed by NetworkManager. "nmcli c" didn't show my wired connection.

The solution:
Edit /etc/NetworkManager/NetworkManager.conf, in section [ifupdown], change "managed=false" to "managed=true", then do a:
"sudo service network-manager restart"
Now both vpn and ethernet connections are managed by NetworkManager, turning on VPN just works.

About Having DNS Issues when connected to a VPN

source :

I am connecting to a Cisco VPN Server using vpnc. Once connected, my machine was unable to automatically update DNS setting from the new VPN. I tested by temporarily changing /etc/resolv.conf with the proper nameserver and search domain, and everything worked. This is obviously not a long term solution, so I added an additional DNS server and search domain to the VPN settings in Network manager. With those settings in place, resolvconf does add the search domain, but not the DNS IP, and I still cannot do any lookups.

What is my next step in configuring or troubleshooting from here?


First make sure that there are no lines beginning with nameserver in any files in /etc/resolvconf/resolv.conf.d. If /etc/resolvconf/resolv.conf.d/tail is a symbolic link to target original, make it point to /dev/null.

Second, disconnect from the VPN. Edit /etc/NetworkManager/NetworkManager.conf

$ sudo gedit /etc/NetworkManager/NetworkManager.conf

and comment out

(i.e., add a # so that it looks like the following)

and then

sudo service network-manager restart

[ 發表回應 ] ( 10預覽 )   |  常註連結  |   ( 2.7 / 197 )
PPTP Client Auto Reconnect Note 
# Create vpn Connection
pptpsetup --create vpnhk --server x.x.x.x --username vpn-user-name --password vpn-password --encrypt --start
pptpsetup --create vpnlw --server y.y.y.y --username vpn-user-name --password vpn-password --encrypt --start
pptpsetup --create vpnfw --server z.z.z.z --username vpn-user-name --password vpn-password --encrypt --start

# Manual Connect VPN
pon vpnhk updetach
pon vpnlw updetach
pon vpnfw updetach

# Manual Disconnect All VPN
poff -a

# Manual Route Add
route add -net netmask dev ppp0
route del -net netmask

# Setup Boot up ppp Auto Connection
auto vpnhk
iface vpnhk inet ppp
provider vpnhk

auto vpnlw
iface vpnlw inet ppp
provider vpnlw

auto vpnhk
iface vpnhk inet ppp
provider vpnlw

# added by pptpsetup
joehome vpnhk "EV2340~9"
joehome vpnfw "EV2340~9"
joehome vpnlw "EV2340~9"

# Auto pptp Re-connection modify Sample
# written by pptpsetup
pty "pptp --nolaunchpppd"
name joehome
remotename vpnfw
ipparam vpnfw
maxfail 0

# Install quagga Dynamic Route tools
apt-get install quagga

# Dynamic Route Configuration, Need install quagga

# Dynamic Route Table setting, Need install quagga
hostname AnyName
password YourPassword
enable password YourPassword
ip route
ip route
ip route
ip route
ip route

# Dynamic Route Restart
/etc/init.d/quagga restart

[ 發表回應 ] ( 40預覽 )   |  常註連結  |   ( 2.9 / 250 )

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |