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.