testing: Converted tnc scenarios to swanctl

This commit is contained in:
Andreas Steffen
2015-12-11 18:26:54 +01:00
parent 74270c8c86
commit 6aa7703122
386 changed files with 5091 additions and 2383 deletions
@@ -1,23 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
charondebug="tnc 2, imc 2, imv 2"
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev2
conn host-host
left=PH_IP_SUN
leftcert=sunCert.pem
leftid=sun.strongswan.org
leftauth=eap-ttls
leftfirewall=yes
right=PH_IP_MOON
rightid=moon.strongswan.org
rightauth=eap-ttls
rightsendcert=never
auto=add
@@ -1,9 +1,24 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = x509 openssl pem pkcs1 random nonce curl revocation stroke kernel-netlink socket-default eap-identity eap-ttls eap-tnc tnc-tnccs tnc-imc tnc-imv tnccs-20 updown
load = random nonce x509 openssl pem pkcs1 revocation curl vici kernel-netlink socket-default eap-identity eap-ttls eap-tnc tnc-tnccs tnc-imc tnc-imv tnccs-20 updown
multiple_authentication = no
multiple_authentication = no
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
conns = /usr/local/sbin/swanctl --load-conns
}
syslog {
auth {
default = 0
}
daemon {
tnc = 2
imc = 2
imv = 2
}
}
plugins {
eap-ttls {
request_peer_auth = yes
@@ -16,6 +31,10 @@ charon {
}
}
libtls {
suites = TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
}
libimcv {
plugins {
imc-test {
@@ -0,0 +1,27 @@
connections {
mutual {
local_addrs = 192.168.0.2
remote_addrs = 192.168.0.1
local {
auth = eap-ttls
certs = sunCert.pem
id = sun.strongswan.org
}
remote {
auth = eap-ttls
id = moon.strongswan.org
}
children {
mutual {
updown = /usr/local/libexec/ipsec/_updown iptables
esp_proposals = aes128gcm16-ecp256
}
}
version = 2
mobike = no
send_certreq = no
proposals = aes128-sha256-ecp256
}
}