aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ikev2/net2net-psk-dscp/hosts/sun/etc/ipsec.conf
blob: 8b54476fd89e819e32c00550be1b7e74f9e590f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# /etc/ipsec.conf - strongSwan IPsec configuration file

config setup
	charondebug="knl 2"

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

conn dscp-be
	leftid=@sun-be
	rightid=@moon-be
	mark=10
	also=net-net
	auto=add

conn dscp-ef
	leftid=@sun-ef
	rightid=@moon-ef
	mark=20
	also=net-net
	auto=add

conn net-net 
	left=PH_IP_SUN
	leftsubnet=10.2.0.0/16
	leftfirewall=yes
	leftauth=psk
	right=PH_IP_MOON
	rightsubnet=10.1.0.0/16
	rightauth=psk