# /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
	plutorestartoncrash=false
	dumpdir=/tmp
	protostack=netkey
	plutodebug=all

conn modecfg-road-eastnet-psk
	also=road-eastnet-psk
	leftmodecfgserver=yes
	rightmodecfgclient=yes
	leftxauthserver=yes
	rightxauthclient=yes
	modecfgpull=yes

conn road-eastnet-psk
	leftsubnet=192.0.2.0/24
	also=road-east-psk
	right=%defaultroute
	ike=3des-sha1
	aggrmode=no
	authby=secret

conn road-east-psk
	left=192.1.2.23
	leftid=@east
	leftnexthop=192.1.2.45
	rightid=@roadrandom

include	/testing/baseconfigs/all/etc/ipsec.d/ipsec.conf.common
