mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 00:34:04 +01:00
Include all in valid src/dest for rule on non-routers
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4007 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
76e15b17a9
commit
347705c543
@ -69,7 +69,7 @@ sub fatal
|
||||
{
|
||||
mesg "FATAL", @_;
|
||||
++$ret;
|
||||
exit $RET;
|
||||
exit $ret;
|
||||
}
|
||||
|
||||
sub message
|
||||
@ -363,7 +363,10 @@ for my $infile ("$conf.COMMON", "$conf.$host", "$conf") {
|
||||
# If host is not a router, either the source or destination zone
|
||||
# must be the firewall itself.
|
||||
if (!$router) {
|
||||
next unless $src eq $fw or $dst eq $fw;
|
||||
next unless $src eq $fw
|
||||
or $dst eq $fw
|
||||
or $src eq "all"
|
||||
or $dst eq "all";
|
||||
}
|
||||
|
||||
# Save additional WARN/BAN rules
|
||||
|
Loading…
Reference in New Issue
Block a user