Fix tcrules PROTO processing

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1593 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-09-02 17:12:39 +00:00
parent e21c3a0f8b
commit 3ede79187f
3 changed files with 6 additions and 0 deletions

View File

@ -58,3 +58,5 @@ Changes since 2.0.3
27) Include params file on 'restore' 27) Include params file on 'restore'
28) Apply Richard Musil's patch. 28) Apply Richard Musil's patch.
29) Correct parsing of PROTO column in setup_tc1().

View File

@ -2180,6 +2180,8 @@ process_tc_rule()
fi fi
[ "x$dest" = "x-" ] || r="${r}-d $dest " [ "x$dest" = "x-" ] || r="${r}-d $dest "
[ "x$proto" = "x-" ] && proto=all
[ "x$proto" = "x" ] && proto=all
[ "$proto" = "all" ] || r="${r}-p $proto " [ "$proto" = "all" ] || r="${r}-p $proto "
[ "x$port" = "x-" ] || r="${r}--dport $port " [ "x$port" = "x-" ] || r="${r}--dport $port "
[ "x$sport" = "x-" ] || r="${r}--sport $sport " [ "x$sport" = "x-" ] || r="${r}--sport $sport "

View File

@ -40,6 +40,8 @@ Problems corrected since 2.1.7
1) Fix parsing of ACTION with ":" but no log level (Richard Musil). 1) Fix parsing of ACTION with ":" but no log level (Richard Musil).
2) Fix parsing of PROTO column in /etc/shorewall/tcrules.
----------------------------------------------------------------------- -----------------------------------------------------------------------
Issues when migrating from Shorewall 2.0 to Shorewall 2.1: Issues when migrating from Shorewall 2.0 to Shorewall 2.1: