IPSec VPN Setup
Prerequisites
I use libreswan on my Debian box. Install required packages:
1 | apt install -y xl2tpd libreswan |
Example Configurations
1 | conn someconnnamehere |
… and edit /etc/ipsec.secrets
, for a line of your PSK for the connection:
1 | 192.168.1.1 1.1.1.1 : PSK "your_pre_shared_key" |
Then service ipsec restart
to reload confs, and enable the connection by ipsec auto --add someconnnamehere
.