Using openconnect on Ubuntu 15.10 fails

Fix broken OpenConnect VPN on Ubuntu 15.10 by manually setting up the default route to tunnel traffic through tun0

To use openconnect in Ubuntu 15.10 you have to set a default route to the tun0 device that is opened up. Otherwise no traffic will be routed through the tunnel. To do so:

sudo openconnect https://yourvpn.com

wait until the connect banner passes and openconnect displays:

Connected tun0 as ##.###.###.##, using SSL

Then open a new tab on the console or put openconnect in the background. Enter

sudo route add default gw ##.###.###.## tun0

This will route all outgoing traffic to the default gateway which is your tunnel.

There’s a bug opened up in ubuntu launchpad. While it is being investigated/fixed you can use above hack to still use VPN with openconnect.

This post supports Webmention — an open standard for replies, likes, and reposts across the indie web.

To respond from your own site: publish a post that links to this one, then send a webmention using a tool like Telegraph or webmention.app. Your response will appear here.

New to the IndieWeb? Get started at IndieWeb.org or try out your setup at Webmention.rocks.