From df5fcaa3856bcdbe268db4d5e883877bb08345d3 Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 19 Aug 2004 19:34:44 +0000 Subject: [PATCH] Remove Code Inadvertently Left in 2.1.5 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1559 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- LrpN/usr/share/shorewall/firewall | 16 +--------------- Shorewall2/firewall | 16 +--------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/LrpN/usr/share/shorewall/firewall b/LrpN/usr/share/shorewall/firewall index fa643b70b..2a27e414c 100755 --- a/LrpN/usr/share/shorewall/firewall +++ b/LrpN/usr/share/shorewall/firewall @@ -1488,21 +1488,7 @@ setup_tunnels() # $1 = name of tunnels file run_iptables -A $inchain -p udp -s $1 --dport 4500 $options fi - for z in $3; do - case $z in - *:ipsec) - z=${z%:*} - eval ${z}_is_ipsec=Yes - ;; - *:ipsec\(*) - do_options - eval ${z}_is_ipsec=Yes - ;; - *:mixed\(*) - do_options - ;; - esac - + for z in $(separate_list $3); do if validate_zone $z; then addrule ${FW}2${z} -p udp --dport 500 $options if [ $kind = ipsec ]; then diff --git a/Shorewall2/firewall b/Shorewall2/firewall index fa643b70b..2a27e414c 100755 --- a/Shorewall2/firewall +++ b/Shorewall2/firewall @@ -1488,21 +1488,7 @@ setup_tunnels() # $1 = name of tunnels file run_iptables -A $inchain -p udp -s $1 --dport 4500 $options fi - for z in $3; do - case $z in - *:ipsec) - z=${z%:*} - eval ${z}_is_ipsec=Yes - ;; - *:ipsec\(*) - do_options - eval ${z}_is_ipsec=Yes - ;; - *:mixed\(*) - do_options - ;; - esac - + for z in $(separate_list $3); do if validate_zone $z; then addrule ${FW}2${z} -p udp --dport 500 $options if [ $kind = ipsec ]; then