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

config setup

conn %default
	ikelifetime=60m
	keylife=20m
	rekeymargin=3m
	keyingtries=1
	keyexchange=ikev2

conn research
	rightgroups=Research
	leftsubnet=10.1.0.0/28
	also=rw-eap
	auto=add

conn accounting
	rightgroups=Accounting
	leftsubnet=10.1.0.16/28
	also=rw-eap
	auto=add

conn rw-eap
	left=PH_IP_MOON
	leftid=@moon.strongswan.org
	leftcert=moonCert.pem
	leftauth=pubkey
	leftfirewall=yes
	rightsendcert=never
	rightauth=eap-radius
	eap_identity=%any
	right=%any
