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

conn xauth-road--eastnet-psk
	also=road--eastnet-psk
	rightxauthserver=yes
	leftxauthclient=yes
	dpdaction=restart
	dpdtimeout=5
	dpddelay-1

conn road--eastnet-psk
	also=eastnet
	also=road-east-psk
	left=%any
        ike=3des-sha1
	aggrmode=yes
	authby=secret
	xauthby=file

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

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

conn us
	rightsubnet=192.0.2.0/24

conn them
	leftsubnet=192.0.1.0/24

