05fe277ceca6f57077994e99367e30786c311355
[strongswan.git] / testing / tests / sql / net2net-cert / pretest.dat
1 moon::rm /etc/ipsec.d/cacerts/*
2 sun::rm /etc/ipsec.d/cacerts/*
3 moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
4 sun::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
5 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
6 sun::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
7 moon::iptables-restore < /etc/iptables.rules
8 sun::iptables-restore < /etc/iptables.rules
9 moon::ipsec start
10 sun::ipsec start
11 moon::expect-connection net-net
12 moon::ipsec up net-net