# /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
	nat_traversal=yes

conn modecfg-road-eastnet-psk
	also=road-eastnet-psk
	rightmodecfgclient=yes
	rightxauthclient=yes
	rightsubnet=192.0.2.209/32
	leftxauthserver=yes
	leftmodecfgserver=yes
	modecfgdns1=1.2.3.4
        modecfgdns2=5.6.7.8
        modecfgdomain="libreswan.org"
	xauthby=alwaysok
	modecfgpull=yes

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

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

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