54f70cbe92955db39549bbc9043d67585b946f24
[strongswan.git] / testing / tests / ikev1 / default-keys / pretest.dat
1 moon::/etc/init.d/iptables start 2> /dev/null
2 carol::/etc/init.d/iptables start 2> /dev/null
3 carol::rm /etc/ipsec.secrets
4 carol::rm /etc/ipsec.d/private/*
5 carol::rm /etc/ipsec.d/certs/*
6 carol::rm /etc/ipsec.d/cacerts/*
7 carol::ipsec start
8 moon::rm /etc/ipsec.secrets
9 moon::rm /etc/ipsec.d/private/*
10 moon::rm /etc/ipsec.d/certs/*
11 moon::rm /etc/ipsec.d/cacerts/*
12 moon::ipsec start
13 moon::sleep 4 
14 moon::scp /etc/ipsec.d/certs/selfCert.der carol:/etc/ipsec.d/certs/peerCert.der
15 moon::scp carol:/etc/ipsec.d/certs/selfCert.der /etc/ipsec.d/certs/peerCert.der
16 moon::ipsec reload 
17 carol::ipsec reload 
18 carol::ipsec up home