# /etc/ipsec.conf - Libreswan IPsec configuration file

version 2.0

config setup
	# put the logs in /tmp for the UMLs, so that we can operate
	# without syslogd, which seems to break on UMLs
	logfile=/tmp/pluto.log
	logtime=no
	logappend=no
	plutodebug=all
	plutorestartoncrash=false
	dumpdir=/tmp
	protostack=netkey

conn westnet-eastnet-ikev2
	left=192.1.2.45
	leftsubnet=192.0.1.0/24
	leftauth=secret
	right=192.1.2.23
	rightid="C=CA/ST=Ontario/O=Libreswan/OU=Test Department/CN=east.testing.libreswan.org/E=testing.libreswan.org"
	rightsubnet=192.0.2.0/24
	rightcert=east
	rightauth=rsasig
	ikev2=insist
	# avoid invalid_ke retransmit, strongswan now refuses modp2048
	ike=aes-sha2;modp3072
