testing: Converterd tnc to systemd

This commit is contained in:
Andreas Steffen
2017-11-11 16:41:16 +01:00
parent 323f0b05d7
commit 13a3f20f2e
124 changed files with 338 additions and 558 deletions
@@ -1,17 +1,14 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
charon-systemd {
load = random nonce aes sha1 sha2 md5 pem pkcs1 gmp hmac x509 revocation curl vici socket-default kernel-netlink eap-identity eap-ttls eap-md5 eap-tnc tnc-pdp tnc-imv tnc-tnccs tnccs-20 sqlite
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
}
syslog {
auth {
default = 0
}
daemon {
tnc = 2
tnc = 2
imv = 3
}
}
@@ -35,7 +32,7 @@ charon {
}
libimcv {
debug_level = 3
debug_level = 3
database = sqlite:///etc/db.d/config.db
policy_script = /usr/local/libexec/ipsec/imv_policy_manager
@@ -1,18 +1,14 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
charon-systemd {
load = random nonce aes sha1 sha2 md5 pem pkcs1 gmp hmac x509 revocation curl vici kernel-netlink socket-default eap-identity eap-md5 eap-ttls eap-tnc tnc-imc tnc-tnccs tnccs-20 updown
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
conns = /usr/local/sbin/swanctl --load-conns
}
syslog {
auth {
default = 0
}
daemon {
tnc = 2
tnc = 2
imc = 3
}
}
@@ -1,18 +1,14 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
charon-systemd {
load = random nonce aes sha1 sha2 md5 pem pkcs1 gmp hmac x509 revocation curl vici kernel-netlink socket-default eap-identity eap-md5 eap-ttls eap-tnc tnc-imc tnc-tnccs tnccs-20 updown
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
conns = /usr/local/sbin/swanctl --load-conns
}
syslog {
auth {
default = 0
}
daemon {
tnc = 2
tnc = 2
imc = 3
}
}
@@ -1,18 +1,22 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
charon-systemd {
load = random nonce aes sha1 sha2 md5 pem pkcs1 gmp hmac x509 revocation curl vici kernel-netlink socket-default eap-identity eap-radius updown
multiple_authentication=no
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
conns = /usr/local/sbin/swanctl --load-conns
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
plugins {
eap-radius {
secret = gv6URkSs
#server = PH_IP6_ALICE
#server = PH_IP6_ALICE
server = PH_IP_ALICE
filter_id = yes
}
@@ -1,8 +1,8 @@
moon::service charon stop
carol::service charon stop
dave::service charon stop
alice::service charon stop
alice::service apache2 stop
moon::systemctl stop strongswan-swanctl
carol::systemctl stop strongswan-swanctl
dave::systemctl stop strongswan-swanctl
alice::systemctl stop strongswan-swanctl
alice::systemctl stop apache2
alice::rm /etc/swanctl/x509/aaaCert.pem
alice::rm /etc/swanctl/rsa/aaaKey.pem
moon::iptables-restore < /etc/iptables.flush
@@ -17,11 +17,11 @@ 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::/usr/local/bin/init_tnc
alice::service apache2 start
alice::service charon start
moon::service charon start
dave::service charon start
carol::service charon start
alice::systemctl start apache2
alice::systemctl start strongswan-swanctl
moon::systemctl start strongswan-swanctl
dave::systemctl start strongswan-swanctl
carol::systemctl start strongswan-swanctl
moon::expect-connection rw-allow
moon::expect-connection rw-isolate
dave::expect-connection home