I've installed openconnect and got it working. The last step was pointing it to the same script that vpnc uses. Once I did that traffic then went through the VPN however I only want traffic for specific IP addresses to go through the VPN and all other traffic to go through my regular Internet connection..
Can someone tell me how to do this? I imagine it could be done with iptables but so far references to tun0 and so on that I have tried haven't worked. Having said that this is the first time I have ever tried using iptables so I'm sure it's just my lack of understanding that's the cause.
I'm attaching the vpnc script that makes it all go although anyone with Linux probably already has it.