Arch Linux: netctl and vpnc (Cisco VPN)
16 Dec 2015 in TIL
This is an example of how to connect to a Cisco VPN using netctl on Arch Linux.
First, install vpnc from Pacman. You'll also need the netctl-vpc package from AUR (I use yaourt for this)
bashsudo pacman -S vpncyaourt -S netctl-vpnc
Next, create /etc/vpnc/vpn-<yourname>.conf with the following content:
bashInterface name tun<yourname>0IPSec gateway <gateway>IPSec ID <group name>IPSec secret <group secret>Xauth username <username>Xauth password <password>Pidfile /var/run/vpnc/vpn-<yourname>.pid
Create /etc/netctl/vpn-<yourname>.conf with the following content:
iniDescription='Acme Corp VPN'Interface=vpncConnection=vpncVpncConfig="/etc/vpnc/vpn-<yourname>.conf"
Then run it:
bashsudo netctl start vpn-<yourname>ps aux | grep vpnc
To stop the VPN, run
bashsudo netctl stop vpn-<yourname>