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
@@ -2,8 +2,8 @@ moon:: ipsec status 2> /dev/null::net-net.*ESTABLISHED.*moon.strongswan.org.*sun
|
||||
sun:: ipsec status 2> /dev/null::net-net.*ESTABLISHED.*sun.strongswan.org.*moon.strongswan.org::YES
|
||||
moon:: ipsec status 2> /dev/null::net-net.*INSTALLED, TUNNEL::YES
|
||||
sun:: ipsec status 2> /dev/null::net-net.*INSTALLED, TUNNEL::YES
|
||||
alice::ping -c 1 10.6.0.10::64 bytes from 10.6.0.10: icmp_seq=1::YES
|
||||
bob:: ping -c 1 10.9.0.10::64 bytes from 10.9.0.10: icmp_seq=1::YES
|
||||
alice::ping -c 1 10.6.0.10::64 bytes from 10.6.0.10: icmp_req=1::YES
|
||||
bob:: ping -c 1 10.9.0.10::64 bytes from 10.9.0.10: icmp_req=1::YES
|
||||
sun::tcpdump::IP moon.strongswan.org > sun.strongswan.org: ESP::YES
|
||||
sun::tcpdump::IP sun.strongswan.org > moon.strongswan.org: ESP::YES
|
||||
bob::tcpdump::IP 10.9.0.10 > bob.strongswan.org: ICMP echo request::YES
|
||||
|
||||
@@ -196,8 +196,8 @@ up-client:)
|
||||
iptables -t nat -A PREROUTING -i $INT_INTERFACE -m mark --mark $PLUTO_MARK_OUT \
|
||||
-d $OUT_NET -j NETMAP --to $SAME_NET
|
||||
iptables -I FORWARD 1 -o $PLUTO_INTERFACE -m mark --mark $PLUTO_MARK_OUT -j ACCEPT
|
||||
iptables -t nat -A POSTROUTING -o $PLUTO_INTERFACE -m mark --mark $PLUTO_MARK_OUT \
|
||||
-s $SAME_NET -j NETMAP --to $IN_NET
|
||||
iptables -t nat -A POSTROUTING -o $PLUTO_INTERFACE -m mark --mark $PLUTO_MARK_OUT \
|
||||
-s $SAME_NET -j NETMAP --to $IN_NET
|
||||
fi
|
||||
;;
|
||||
down-client:)
|
||||
@@ -215,7 +215,11 @@ down-client:)
|
||||
if [ -n "$PLUTO_MARK_OUT" ]
|
||||
then
|
||||
iptables -t mangle -D PREROUTING $SET_MARK_OUT
|
||||
iptables -t nat -D PREROUTING -i $INT_INTERFACE -m mark --mark $PLUTO_MARK_OUT \
|
||||
-d $OUT_NET -j NETMAP --to $SAME_NET
|
||||
iptables -D FORWARD -o $PLUTO_INTERFACE -m mark --mark $PLUTO_MARK_OUT -j ACCEPT
|
||||
iptables -t nat -D POSTROUTING -o $PLUTO_INTERFACE -m mark --mark $PLUTO_MARK_OUT \
|
||||
-s $SAME_NET -j NETMAP --to $IN_NET
|
||||
fi
|
||||
;;
|
||||
*) echo "$0: unknown verb \`$PLUTO_VERB' or parameter \`$1'" >&2
|
||||
|
||||
Reference in New Issue
Block a user