mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 23:45:53 +02:00
Fix builtin action logging
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6975 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ee4f4c04a1
commit
d13c794a7d
@ -73,11 +73,10 @@ Problems corrected in 4.0.1.
|
|||||||
4.0.0. Previously, Shorewall was not started automatically at
|
4.0.0. Previously, Shorewall was not started automatically at
|
||||||
reboot after an upgrade using the RPM.
|
reboot after an upgrade using the RPM.
|
||||||
|
|
||||||
9) Shorewall-perl now detects dead policy file entries that result
|
9) Shorewall-perl was generating invalid iptables-restore input when a
|
||||||
when an entry is masked by an earlier entry. Example:
|
log level was specified with the dropBcast and allowBcast builtin
|
||||||
|
actions and when a log level followed by '!' was used with any
|
||||||
all all REJECT info
|
builtin actions.
|
||||||
loc net ACCEPT
|
|
||||||
|
|
||||||
Other changes in Shorewall 4.0.1.
|
Other changes in Shorewall 4.0.1.
|
||||||
|
|
||||||
@ -106,6 +105,12 @@ Other changes in Shorewall 4.0.1.
|
|||||||
capability has been relaxed. This allows Shorewall 4.0.1 to be used
|
capability has been relaxed. This allows Shorewall 4.0.1 to be used
|
||||||
on releases like RHEL4 that con's support that capability.
|
on releases like RHEL4 that con's support that capability.
|
||||||
|
|
||||||
|
3) Shorewall-perl now detects dead policy file entries that result
|
||||||
|
when an entry is masked by an earlier entry. Example:
|
||||||
|
|
||||||
|
all all REJECT info
|
||||||
|
loc net ACCEPT
|
||||||
|
|
||||||
Migration Considerations:
|
Migration Considerations:
|
||||||
|
|
||||||
1) Beginning with Shorewall 4.0.0, there is no single 'shorewall'
|
1) Beginning with Shorewall 4.0.0, there is no single 'shorewall'
|
||||||
|
@ -792,6 +792,8 @@ sub process_actions3 () {
|
|||||||
$level = '' unless defined $level;
|
$level = '' unless defined $level;
|
||||||
$tag = '' unless defined $tag;
|
$tag = '' unless defined $tag;
|
||||||
|
|
||||||
|
$level =~ s/!$//;
|
||||||
|
|
||||||
if ( $targets{$action} & BUILTIN ) {
|
if ( $targets{$action} & BUILTIN ) {
|
||||||
$level = '' if $level =~ /none!?/;
|
$level = '' if $level =~ /none!?/;
|
||||||
$builtinops{$action}->($chainref, $level, $tag);
|
$builtinops{$action}->($chainref, $level, $tag);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user