summaryrefslogtreecommitdiff
path: root/testing/tests/sql/net2net-cert/pretest.dat
blob: 6580e760409c85ca1d54097de0de4b2d337f45a2 (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
moon::service charon start 2> /dev/null
sun::service charon start 2> /dev/null
moon::expect-connection net-net 
sun::expect-connection net-net
moon::swanctl --initiate --child net-net 2> /dev/null