testing: Converted tnc scenarios to swanctl
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
charondebug="tls 2, tnc 2, imv 3"
|
||||
|
||||
conn aaa
|
||||
leftcert=aaaCert.pem
|
||||
leftid=aaa.strongswan.org
|
||||
auto=add
|
||||
@@ -1,6 +0,0 @@
|
||||
# /etc/ipsec.secrets - strongSwan IPsec secrets file
|
||||
|
||||
: RSA aaaKey.pem
|
||||
|
||||
carol : EAP "Ar3etTnp"
|
||||
dave : EAP "W7R0g3do"
|
||||
@@ -1,8 +1,21 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
charon {
|
||||
load = pem pkcs1 nonce x509 openssl curl revocation constraints socket-default kernel-netlink stroke tnc-pdp tnc-imv tnc-tnccs tnccs-20 sqlite
|
||||
load = random nonce pem pkcs1 x509 openssl revocation constraints curl vici socket-default kernel-netlink tnc-pdp tnc-imv tnc-tnccs tnccs-20 sqlite
|
||||
|
||||
start-scripts {
|
||||
creds = /usr/local/sbin/swanctl --load-creds
|
||||
}
|
||||
syslog {
|
||||
auth {
|
||||
default = 0
|
||||
}
|
||||
daemon {
|
||||
tls = 2
|
||||
tnc = 2
|
||||
imv = 3
|
||||
}
|
||||
}
|
||||
plugins {
|
||||
tnc-pdp {
|
||||
server = aaa.strongswan.org
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
secrets {
|
||||
|
||||
eap-carol {
|
||||
id = carol
|
||||
secret = "Ar3etTnp"
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
# the PT-TLS client reads its configuration via the command line
|
||||
@@ -1,3 +0,0 @@
|
||||
# /etc/ipsec.secrets - strongSwan IPsec secrets file
|
||||
|
||||
# the PT-TLS client loads its secrets via the command line
|
||||
@@ -1,6 +1,6 @@
|
||||
--connect aaa.strongswan.org
|
||||
--client carol
|
||||
--secret "Ar3etTnp"
|
||||
--cert /etc/ipsec.d/cacerts/strongswanCert.pem
|
||||
--cert /etc/swanctl/x509ca/strongswanCert.pem
|
||||
--quiet
|
||||
--debug 2
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# the PT-TLS client reads its configuration and secrets via the command line
|
||||
@@ -1,3 +0,0 @@
|
||||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
# the PT-TLS client reads its configuration via the command line
|
||||
@@ -1,3 +0,0 @@
|
||||
# /etc/ipsec.secrets - strongSwan IPsec secrets file
|
||||
|
||||
# the PT-TLS client loads its secrets via the command line
|
||||
@@ -1,7 +1,7 @@
|
||||
--connect aaa.strongswan.org
|
||||
--client [email protected]
|
||||
--key /etc/ipsec.d/private/daveKey.pem
|
||||
--cert /etc/ipsec.d/certs/daveCert.pem
|
||||
--cert /etc/ipsec.d/cacerts/strongswanCert.pem
|
||||
--key /etc/swanctl/rsa/daveKey.pem
|
||||
--cert /etc/swanctl/x509/daveCert.pem
|
||||
--cert /etc/swanctl/x509ca/strongswanCert.pem
|
||||
--quiet
|
||||
--debug 2
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# the PT-TLS client reads its configuration and secrets via the command line
|
||||
@@ -1,3 +0,0 @@
|
||||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
# this file is not used in this scenario
|
||||
@@ -1,3 +0,0 @@
|
||||
# /etc/ipsec.secrets - strongSwan IPsec secrets file
|
||||
|
||||
# this file is not used in this scenario
|
||||
@@ -0,0 +1 @@
|
||||
# this file is not used in this scenario
|
||||
@@ -1,7 +1,7 @@
|
||||
carol::ip route del 10.1.0.0/16 via 192.168.0.1
|
||||
dave::ip route del 10.1.0.0/16 via 192.168.0.1
|
||||
winnetou::ip route del 10.1.0.0/16 via 192.168.0.1
|
||||
alice::ipsec stop
|
||||
alice::service charon stop
|
||||
alice::service apache2 stop
|
||||
alice::iptables-restore < /etc/iptables.flush
|
||||
carol::iptables-restore < /etc/iptables.flush
|
||||
|
||||
@@ -11,8 +11,10 @@ alice::sed -i "s:DEBIAN_VERSION:\`cat /etc/debian_version\`:" /etc/pts/data1.sql
|
||||
alice::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/db.d/config.db
|
||||
alice::chgrp -R www-data /etc/db.d/config.db; chmod -R g+w /etc/db.d/config.db
|
||||
alice::/var/www/tnc/manage.py setpassword strongSwan strongSwan
|
||||
alice::rm /etc/swanctl/x509/aliceCert.pem
|
||||
alice::rm /etc/swanctl/rsa/aliceKey.pem
|
||||
alice::service apache2 start
|
||||
alice::ipsec start
|
||||
alice::service charon start
|
||||
alice::expect-connection aaa
|
||||
winnetou::ip route add 10.1.0.0/16 via 192.168.0.1
|
||||
dave::ip route add 10.1.0.0/16 via 192.168.0.1
|
||||
|
||||
@@ -23,3 +23,7 @@ IPSECHOSTS="carol moon dave alice"
|
||||
# Guest instances on which databases are used
|
||||
#
|
||||
DBHOSTS="alice"
|
||||
|
||||
# charon controlled by swanctl
|
||||
#
|
||||
SWANCTL=1
|
||||
|
||||
Reference in New Issue
Block a user