Monday, April 30, 2012

Open-connect replacement for CiscoAnyconnect on Ubuntu

I wanted to connect to work at home on my Ubuntu desktop so here is my simple Cisco AnyConnect recipe to get it working.

Add this PPA
add-apt-repository ppa:odyx/openconnect-helpers
Install packages
aptitude install openconnect openconnect-helpers
Grab a better network route and DNS setup script, for some reason the one provided with vpnc didn't work for me.
cd /etc/openconnect-helpers; sudo wget http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script; sudo chmod u+x vpnc-script
 Edit the config file /etc/openconnect-helpers/default.conf. I just set the first params to:
VPN_SERVER="vpn.mywork.com"
SCRIPT_PROGRAM="/etc/openconnect-helpers/vpnc-script"
The help package provides two convenience scripts vpn-connect and vpn-disconnect. If they don't work try your connection directly with openconnect --script /etc/openconnect-helpers/vpnc-script vpn.yourserver.com

No comments:

Post a Comment