aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/swanctl/rw-psk-ikev1/pretest.dat
blob: 3393f516dabec3c666004b93c8b57d93087a10fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
moon::iptables-restore < /etc/iptables.rules
carol::iptables-restore < /etc/iptables.rules
dave::iptables-restore < /etc/iptables.rules
moon::cd /etc/swanctl; rm rsa/* x509/* x509ca/*
carol::cd /etc/swanctl; rm rsa/* x509/* x509ca/*
dave::cd /etc/swanctl; rm rsa/* x509/* x509ca/*
moon::service charon start 2> /dev/null
carol::service charon start 2> /dev/null
dave::service charon start 2> /dev/null
moon::expect-connection net-1
moon::expect-connection net-2 
carol::expect-connection home
carol::swanctl --initiate --child home 2> /dev/null
dave::expect-connection home
dave::swanctl --initiate --child home 2> /dev/null