# /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
	plutostderrlog=/tmp/pluto.log
	plutorestartoncrash=false
	plutodebug=all
	dumpdir=/tmp
	protostack=klips

conn modecfg-road-eastnet-psk
	also=road-eastnet-psk
	rightmodecfgclient=yes
	rightxauthclient=yes
	rightsubnet=192.9.2.209/32
	leftxauthserver=yes
	leftmodecfgserver=yes

conn road-eastnet-psk
	leftsubnet=192.0.2.0/24
	also=road-east-psk
	right=%any
	ike=3des-sha1
	aggrmode=yes
	authby=secret
	xauthby=file

conn packetdefault
	auto=ignore

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

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