894689648163add62db19c9705d7567bbfde4db3
[strongswan.git] / testing / tests / sql / rw-psk-ipv6 / pretest.dat
1 moon::rm /etc/ipsec.d/cacerts/*
2 carol::rm /etc/ipsec.d/cacerts/*
3 dave::rm /etc/ipsec.d/cacerts/*
4 moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
5 carol::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
6 dave::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql /etc/ipsec.d/data.sql > /etc/db.d/ipsec.sql
7 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
8 carol::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
9 dave::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
10 moon::iptables-restore < /etc/iptables.rules
11 carol::iptables-restore < /etc/iptables.rules
12 dave::iptables-restore < /etc/iptables.rules
13 moon::ip6tables-restore < /etc/ip6tables.rules
14 carol::ip6tables-restore < /etc/ip6tables.rules
15 dave::ip6tables-restore < /etc/ip6tables.rules
16 alice::"ip route add fec0:\:/16 via fec1:\:1"
17 carol::"ip route add fec1:\:/16 via fec0:\:1"
18 dave::"ip route add fec1:\:/16 via fec0:\:1"
19 moon::ipsec start
20 carol::ipsec start
21 dave::ipsec start
22 carol::expect-connection home
23 carol::ipsec up home
24 dave::expect-connection home
25 dave::ipsec up home