blob: 8fc6d1a1c25137c27a2a90bb9fa43fd4ad288700 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
sun::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
sun::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
moon::iptables-restore < /etc/iptables.rules
sun::iptables-restore < /etc/iptables.rules
sun::service charon start 2> /dev/null
sun::expect-connection net-net
moon::service charon start 2> /dev/null
moon::sleep 4
|