]> git.ipfire.org Git - people/ms/strongswan.git/blob - testing/tests/ikev2/ip-split-pools-db/pretest.dat
testing: Migrate ikev2-stroke-bye scenarios to vici
[people/ms/strongswan.git] / testing / tests / ikev2 / ip-split-pools-db / pretest.dat
1 moon::cat /usr/local/share/strongswan/templates/database/sql/sqlite.sql > /etc/db.d/ipsec.sql
2 moon::cat /etc/db.d/ipsec.sql | sqlite3 /etc/db.d/ipsec.db
3 moon::ipsec pool --add pool0 --start 10.3.0.1 --end 10.3.0.1 --timeout 48 2> /dev/null
4 moon::ipsec pool --add pool1 --start 10.3.1.1 --end 10.3.1.1 --timeout 48 2> /dev/null
5 moon::ipsec pool --status 2> /dev/null
6 moon::systemctl start strongswan
7 carol::systemctl start strongswan
8 dave::systemctl start strongswan
9 moon::expect-connection rw
10 carol::expect-connection home
11 carol::swanctl --initiate --child home 2> /dev/null
12 dave::expect-connection home
13 dave::swanctl --initiate --child home 2> /dev/null