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,7 +1,7 @@
|
||||
The roadwarriors <b>alice</b> and <b>venus</b> sitting behind the router <b>moon</b> set up
|
||||
tunnels to gateway <b>sun</b>. Since both roadwarriors possess the same 10.1.0.0/25 subnet,
|
||||
gateway <b>sun</b> uses Source NAT after ESP decryption to map these subnets to 10.3.0.10
|
||||
and 10.3.0.20, respectively.
|
||||
gateway <b>sun</b> uses Source NAT after ESP decryption to map these subnets to PH_IP_CAROL10
|
||||
and PH_IP_DAVE10, respectively.
|
||||
<p/>
|
||||
In order to differentiate between the tunnels to <b>alice</b> and <b>venus</b>, respectively,
|
||||
<b>XFRM marks</b> are defined for both the inbound and outbound IPsec SAs and policies using
|
||||
|
||||
@@ -3,9 +3,9 @@ venus::ipsec status 2> /dev/null::home.*INSTALLED, TUNNEL::YES
|
||||
sun:: ipsec status 2> /dev/null::alice.*ESTABLISHED.*sun.strongswan.org.*[email protected]::YES
|
||||
sun:: ipsec status 2> /dev/null::venus.*ESTABLISHED.*sun.strongswan.org.*venus.strongswan.org::YES
|
||||
sun:: ipsec statusall 2> /dev/null::alice.*10.2.0.0/16 === 10.1.0.0/25::YES
|
||||
sun:: ipsec statusall 2>::venus.*10.2.0.0/16 === 10.1.0.0/25::YES
|
||||
alice::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_seq=1::YES
|
||||
venus::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_seq=1::YES
|
||||
sun:: ipsec statusall 2> /dev/null::venus.*10.2.0.0/16 === 10.1.0.0/25::YES
|
||||
alice::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_req=1::YES
|
||||
venus::ping -c 1 PH_IP_BOB::64 bytes from PH_IP_BOB: icmp_req=1::YES
|
||||
moon::tcpdump::IP alice.strongswan.org > sun.strongswan.org: ESP::YES
|
||||
moon::tcpdump::IP venus.strongswan.org > sun.strongswan.org: ESP::YES
|
||||
moon::tcpdump::IP sun.strongswan.org > alice.strongswan.org: ESP::YES
|
||||
|
||||
@@ -4,10 +4,10 @@ sun::/etc/init.d/iptables start 2> /dev/null
|
||||
moon::echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -p tcp -j SNAT --to PH_IP_MOON
|
||||
sun::ip route add 10.1.0.0/16 via PH_IP_MOON
|
||||
sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 10 -j SNAT --to 10.3.0.10
|
||||
sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 20 -j SNAT --to 10.3.0.20
|
||||
sun::iptables -t mangle -A PREROUTING -d 10.3.0.10 -j MARK --set-mark 11
|
||||
sun::iptables -t mangle -A PREROUTING -d 10.3.0.20 -j MARK --set-mark 21
|
||||
sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 10 -j SNAT --to PH_IP_CAROL10
|
||||
sun::iptables -t nat -A POSTROUTING -o eth1 -m mark --mark 20 -j SNAT --to PH_IP_DAVE10
|
||||
sun::iptables -t mangle -A PREROUTING -d PH_IP_CAROL10 -j MARK --set-mark 11
|
||||
sun::iptables -t mangle -A PREROUTING -d PH_IP_DAVE10 -j MARK --set-mark 21
|
||||
alice::ipsec start
|
||||
venus::ipsec start
|
||||
sun::ipsec start
|
||||
|
||||
Reference in New Issue
Block a user