OpenBSD and vpnc - force disconnect on exit
Posted on 2011-09-15
My question: Is there a way to force vpnc to disconnect when I log out (Cisco VPN Client has this option - for Windows).
I have an OpenBSD 4.9 server with vpnc.
I ssh into the OpenBSD server (from my Windows laptop) and then run vpnc to connect to another network (so far so good).
 As soon as I connect the vpnc connection, I'm unable to establish a 2nd connection to the OpenBSD server from my laptop.
 Also, when I log out from the OpenBSD server, the vpnc connection remains active, preventing me from logging into the OpenBSD server again.
I then have to go to the OpenBSD server, and run "pkill vpnc" from the console.
Thereafter I can ssh into the OpenBSD server again.