Add a simple test case for the unity plugin, featuring both includes and excludes

This commit is contained in:
Martin Willi
2012-09-18 17:20:47 +02:00
parent f728ae590b
commit 995a9c8a0a
9 changed files with 113 additions and 0 deletions
@@ -0,0 +1,19 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev1
conn rw
left=PH_IP_MOON
leftcert=moonCert.pem
[email protected]
leftsubnet=10.1.0.0/16,10.2.1.0/24
right=%any
rightsourceip=10.2.1.0/24
auto=add
@@ -0,0 +1,19 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = curl test-vectors aes des sha1 sha2 md5 pem pkcs1 pkcs8 gmp random nonce x509 revocation hmac xcbc ctr ccm gcm stroke kernel-netlink socket-default attr unity
cisco_unity = yes
plugins {
attr {
split-exclude = 192.168.0.0/24
}
}
}
libstrongswan {
dh_exponent_ansi_x9_42 = no
integrity_test = yes
crypto_test {
on_add = yes
}
}