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

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

conn westnet-eastnet-vti-01
	also=west-east
	leftsubnet=192.0.1.0/24
	rightsubnet=192.0.2.0/24
	mark=2/0xffffffff
	vti-interface=ipsec0
	vti-routing=yes
	vti-shared=yes

conn westnet-eastnet-vti-02
	left=192.1.2.45
	leftid="@west"
	# alternative IP to force separate IKE SA to emulate multiple peers
        right=192.1.2.24
	rightid="@east"
	leftsubnet=10.0.1.0/24
	rightsubnet=10.0.2.0/24
	mark=2/0xffffffff
	vti-interface=ipsec0
	vti-routing=yes
	vti-shared=yes

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