testing: Converted sql to systemd

This commit is contained in:
Andreas Steffen
2017-11-11 16:41:15 +01:00
parent 70dc5bb8ad
commit 323f0b05d7
85 changed files with 542 additions and 101 deletions
@@ -1,6 +1,14 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
plugins {
sql {
database = sqlite:///etc/db.d/ipsec.db
@@ -1,6 +1,14 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
plugins {
sql {
database = sqlite:///etc/db.d/ipsec.db
@@ -1,6 +1,14 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
plugins {
sql {
database = sqlite:///etc/db.d/ipsec.db
@@ -1,8 +1,8 @@
carol::swanctl --terminate --ike home
dave::swanctl --terminate --ike home
carol::service charon stop 2> /dev/null
dave::service charon stop 2> /dev/null
moon::service charon stop 2> /dev/null
carol::systemctl stop strongswan-swanctl
dave::systemctl stop strongswan-swanctl
moon::systemctl stop strongswan-swanctl
moon::iptables-restore < /etc/iptables.flush
carol::iptables-restore < /etc/iptables.flush
dave::iptables-restore < /etc/iptables.flush
+6 -3
View File
@@ -4,12 +4,15 @@ dave::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ips
moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
carol::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
dave::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
carol::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
dave::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
moon::cd /etc/swanctl; rm -r rsa/* x509/* x509ca/*
moon::iptables-restore < /etc/iptables.rules
carol::iptables-restore < /etc/iptables.rules
dave::iptables-restore < /etc/iptables.rules
moon::service charon start 2> /dev/null
carol::service charon start 2> /dev/null
dave::service charon start 2> /dev/null
moon::systemctl start strongswan-swanctl
carol::systemctl start strongswan-swanctl
dave::systemctl start strongswan-swanctl
moon::expect-connection rw
carol::expect-connection home
carol::swanctl --initiate --child home 2> /dev/null