Install Libreswan on Debian Jessie

Follow the basic installation procedure within Debian 8, on tasksel select SSH Server and basic system.
After booting up do a:

aptitude install build-essential linux-kernel-headers bison flex libgmp3-dev libcurl3 libnspr4 libnss3 libunbound2 iproute  libnss3-tools dkms debhelper tcpdump

Then browse to http://download.libreswan.org/binaries/debian/jessie/ and grep the latest deb’s.
On the console do a:

dpkg -i *.deb

Follow the installer …

Reboot and enjoy your installation!

 

Heres a basic configuration for a secure setup:

ipsec.conf:

conn vpn
left=10.10.11.100
leftsubnet=10.12.11.0/24
leftnexthop=10.10.11.1
right=10.10.10.100
rightsubnet=10.12.10.0/24
rightnexthop=10.10.10.1
authby=secret
pfs=yes
rekey=yes
keyingtries=3
type=tunnel
auto=start
ike=aes256-sha1;modp2048
phase2alg=aes256-sha1;modp2048

ipsec.secrets:

10.10.11.100 10.10.10.100: PSK „<at least 24 chars, mixed with high/low/numbers/specialchars>“