testing: Added tnc/tnccs-20-ev-pt-tls scenario

This commit is contained in:
Andreas Steffen
2017-08-04 19:15:51 +02:00
parent 88501a64ca
commit 808be1d57f
41 changed files with 526 additions and 22 deletions
@@ -0,0 +1,4 @@
/* strongSwan SQLite database */
/* configuration is read from the command line */
/* credentials are read from the command line */
@@ -0,0 +1,20 @@
*filter
# default policy is DROP
-P INPUT DROP
-P OUTPUT DROP
-P FORWARD DROP
# allow PT-TLS
-A INPUT -i eth0 -s 10.1.0.10 -p tcp --sport 271 -j ACCEPT
-A OUTPUT -o eth0 -d 10.1.0.10 -p tcp --dport 271 -j ACCEPT
# allow ssh
-A INPUT -p tcp --dport 22 -j ACCEPT
-A OUTPUT -p tcp --sport 22 -j ACCEPT
# allow crl fetch from winnetou
-A INPUT -i eth0 -p tcp --sport 80 -s 192.168.0.150 -j ACCEPT
-A OUTPUT -o eth0 -p tcp --dport 80 -d 192.168.0.150 -j ACCEPT
COMMIT
@@ -0,0 +1,6 @@
--connect aaa.strongswan.org
--client carol
--secret "Ar3etTnp"
--cert /etc/swanctl/x509ca/strongswanCert.pem
--quiet
--debug 2
@@ -0,0 +1,25 @@
# /etc/strongswan.conf - strongSwan configuration file
libtls {
suites = TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
}
libimcv {
plugins {
imc-swima {
swid_database = sqlite:///etc/pts/collector.db
}
}
}
pt-tls-client {
load = revocation constraints pem openssl curl sqlite nonce tnc-tnccs tnc-imc tnccs-20
}
sw-collector {
database = sqlite:///etc/db.d/collector.db
history = /var/log/apt/history.log
rest_api {
uri = http://admin-user:[email protected]/api/
}
}
@@ -0,0 +1 @@
# the PT-TLS client reads its configuration and secrets via the command line
@@ -0,0 +1,4 @@
#IMC configuration file for strongSwan client
IMC "OS" /usr/local/lib/ipsec/imcvs/imc-os.so
IMC "SWIMA" /usr/local/lib/ipsec/imcvs/imc-swima.so