Fix handling of 'all' or '-' in the PROTO column of an action file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1096 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-01-29 19:11:51 +00:00
parent d116d04fb8
commit 76b5918a13
3 changed files with 8 additions and 0 deletions

View File

@ -19,3 +19,5 @@ Changes since 1.4.9
8) Add multicast to 'detectnets' zones.
9) Don't add broadcasts to /0 groups.
10) Fix "-" in PROTO column of an action file.

View File

@ -2257,6 +2257,9 @@ add_an_action()
[ x$cport = x- ] && cport=
case $proto in
all|-)
proto=
;;
tcp|TCP|6)
do_ports
[ "$target" = QUEUE ] && proto="$proto --syn"

View File

@ -16,6 +16,9 @@ Problems Corrected since version 1.4.9:
4. Shorewall now tries to avoid sending an ICMP response to broadcasts
and smurfs.
5. Specifying "-" or "all" in the PROTO column of an action no longer
causes a startup error.
Migration Issues:
None.