From daef55a2959a4ce0b2a8c38aa7e5d3d71bccbae7 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 12 Aug 2005 23:57:35 +0000 Subject: [PATCH] Back out ill-advised tcrules portlist patch git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2486 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 9355b6742..4b7e8eb49 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -2991,24 +2991,10 @@ process_tc_rule() [ "x$proto" = "x-" ] && proto=all [ "x$proto" = "x" ] && proto=all [ "$proto" = "all" ] || r="${r}-p $proto " - - if [ "x$port" != "x-" ]; then - if [ -n "$MULTIPORT" ]; then - r="${r}-m multiport --dports $port " - multiport=Yes - else - r="${r}--dport $port " - fi - fi + [ "x$port" = "x-" ] || r="${r}--dport $port " fi - if [ "x$sport" != "x-" ]; then - if [ -n "$MULTIPORT" ]; then - [ -n "$multiport" ] && r="${r}--sports $sport " || r="${r}-m multiport --sports $sport " - else - r="${r}--sport $sport " - fi - fi + [ "x$sport" = "x-" ] || r="${r}--sport $sport " case $chain in tcpost)