mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Fix rules file processing with missing policy
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@747 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e4bfb8f0f4
commit
f88241a6f1
@ -83,3 +83,5 @@ Changes since 1.4.6
|
|||||||
36) Extend USER SET column in /etc/shorewall/rules to allow user:group.
|
36) Extend USER SET column in /etc/shorewall/rules to allow user:group.
|
||||||
|
|
||||||
37) Reword error message to avoid the word 'illegal'.
|
37) Reword error message to avoid the word 'illegal'.
|
||||||
|
|
||||||
|
38) Avoid shell error when there is no policy corresponding to a rule.
|
||||||
|
@ -2732,6 +2732,9 @@ process_rule() # $1 = target
|
|||||||
|
|
||||||
eval policy=\$${chain}_policy
|
eval policy=\$${chain}_policy
|
||||||
|
|
||||||
|
[ -z "$policy" ] && \
|
||||||
|
fatal_error "No policy defined from zone $source to zone $dest"
|
||||||
|
|
||||||
[ $policy = NONE ] && \
|
[ $policy = NONE ] && \
|
||||||
fatal_error "Rules may not override a NONE policy: rule \"$rule\""
|
fatal_error "Rules may not override a NONE policy: rule \"$rule\""
|
||||||
|
|
||||||
|
@ -57,6 +57,16 @@ Problems Corrected since version 1.4.6:
|
|||||||
13) The documentation of the USERSETS column in the rules file has been
|
13) The documentation of the USERSETS column in the rules file has been
|
||||||
corrected.
|
corrected.
|
||||||
|
|
||||||
|
14) If there is no policy defined for the zones specified in a rule,
|
||||||
|
the firewall script previously encountered a shell syntax error:
|
||||||
|
|
||||||
|
[: NONE: unexpected operator
|
||||||
|
|
||||||
|
Now, the absence of a policy generates an error message and the
|
||||||
|
firewall is stopped:
|
||||||
|
|
||||||
|
No policy defined from zone <source> to zone <dest>
|
||||||
|
|
||||||
Migration Issues:
|
Migration Issues:
|
||||||
|
|
||||||
1) IP Traffic Accounting is changed from Snapshot 20030813.
|
1) IP Traffic Accounting is changed from Snapshot 20030813.
|
||||||
|
Loading…
Reference in New Issue
Block a user