Adapt test configurations
Adapt test configurations to the new Debian-based system.
This commit is contained in:
committed by
Tobias Brunner
parent
766466b8d1
commit
533177003c
@@ -1,15 +1,15 @@
|
||||
alice::ipsec status 2> /dev/null::mobike.*ESTABLISHED.*PH_IP_ALICE1.*PH_IP_SUN::YES
|
||||
sun:: ipsec status 2> /dev/null::mobike.*ESTABLISHED.*PH_IP_SUN.*PH_IP_ALICE1::YES
|
||||
alice::ipsec statusall 2> /dev/null::PH_IP_ALICE1/32 === 10.2.0.0/16::YES
|
||||
sun:: ipsec statusall 2> /dev/null::10.2.0.0/16 === PH_IP_ALICE1/32::YES
|
||||
alice::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_seq=1::YES
|
||||
alice::/etc/init.d/net.eth1 stop::No output expected::NO
|
||||
alice::ipsec status 2> /dev/null::mobike.*ESTABLISHED.*192.168.0.50.*PH_IP_SUN::YES
|
||||
sun:: ipsec status 2> /dev/null::mobike.*ESTABLISHED.*PH_IP_SUN.*192.168.0.50::YES
|
||||
alice::ipsec statusall 2> /dev/null::192.168.0.50/32 === 10.2.0.0/16::YES
|
||||
sun:: ipsec statusall 2> /dev/null::10.2.0.0/16 === 192.168.0.50/32::YES
|
||||
alice::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_req=1::YES
|
||||
alice::ifdown eth1::No output expected::NO
|
||||
alice::sleep 1::No output expected::NO
|
||||
alice::ipsec status 2> /dev/null::mobike.*ESTABLISHED.*PH_IP_ALICE.*PH_IP_SUN::YES
|
||||
sun:: ipsec status 2> /dev/null::mobike.*ESTABLISHED.*PH_IP_SUN.*PH_IP_ALICE::YES
|
||||
alice::ipsec statusall 2> /dev/null::PH_IP_ALICE/32 === 10.2.0.0/16::YES
|
||||
sun:: ipsec statusall 2> /dev/null::10.2.0.0/16 === PH_IP_ALICE/32::YES
|
||||
alice::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_seq=1::YES
|
||||
alice::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_req=1::YES
|
||||
sun::tcpdump::alice1.strongswan.org.*sun.strongswan.org: ESP.*seq=0x1::YES
|
||||
sun::tcpdump::sun.strongswan.org.*alice1.strongswan.org: ESP.*seq=0x1::YES
|
||||
moon::tcpdump::alice.strongswan.org.*sun.strongswan.org: ESP.*seq=0x2::YES
|
||||
|
||||
@@ -10,7 +10,7 @@ conn %default
|
||||
keyexchange=ikev2
|
||||
|
||||
conn mobike
|
||||
left=PH_IP_ALICE1
|
||||
left=192.168.0.50
|
||||
leftcert=aliceCert.pem
|
||||
[email protected]
|
||||
right=PH_IP_SUN
|
||||
|
||||
@@ -14,6 +14,6 @@ conn mobike
|
||||
leftcert=sunCert.pem
|
||||
[email protected]
|
||||
leftsubnet=10.2.0.0/16
|
||||
right=PH_IP_ALICE1
|
||||
right=192.168.0.50
|
||||
[email protected]
|
||||
auto=add
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
alice::ipsec stop
|
||||
sun::ipsec stop
|
||||
alice::/etc/init.d/iptables stop 2> /dev/null
|
||||
sun::/etc/init.d/iptables stop 2> /dev/null
|
||||
sun::ip route del 10.1.0.0/16 via PH_IP_MOON
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
alice::/etc/init.d/net.eth1 start
|
||||
alice::/etc/init.d/iptables start 2> /dev/null
|
||||
sun::/etc/init.d/iptables start 2> /dev/null
|
||||
moon::echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
alice::ifup eth1
|
||||
sun::ip route add 10.1.0.0/16 via PH_IP_MOON
|
||||
alice::ipsec start
|
||||
sun::ipsec start
|
||||
alice::sleep 2
|
||||
alice::sleep 2
|
||||
alice::ipsec up mobike
|
||||
alice::sleep 1
|
||||
|
||||
Reference in New Issue
Block a user