I have problems with my VPN setup. I have the Cisco AnyConnect client installed, as well as the openconnect network plugin for the network-manager. Both have a fundamental problem:
Cisco's AnyConnect
Works fine, until after a while I get disconnected not only from the VPN, but from my whole network. I cannot connect to the Internet anymore, even with VPN turned off.
sudo service network-manager restart
does not help, eventually I have to reboot.openconnect
Does not resolve domains outside of my VPN provider. The difference between the modified
resolve.conf
here is that openconnect does not add additional IP adresses pointing to DNS resolver.
Currently, I use openconnect and overwrite the resolve.conf
with the one that would have been created through Cisco's AnyConnect client. Any idea how to automate this or even fix it?
# resolve.conf by AnyConnect
domain my.vpn-provider.com
nameserver <IP>
nameserver <IP>
search my.vpn-provider.com WAG160N
# resolve.conf by openconnect
domain my.vpn-provider.com
search my.vpn-provider.com WAG160N
I am on Ubuntu 13.10.