forked from extern/shorewall_code
Don't classify source address 0.0.0.0 as a smurf
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5771 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d5b3af9970
commit
272bf85b1e
@ -106,7 +106,7 @@ sub emit ( $ ) {
|
||||
#
|
||||
# 'compile' as opposed to 'check'
|
||||
#
|
||||
my $line = $_[0]; # This copy is necessary :-(. We modify the value below and we can't modify subroutine arguments.
|
||||
my $line = $_[0]; # This copy is necessary because the actual arguments are almost always read-only.
|
||||
|
||||
unless ( $line =~ /^\s*$/ ) {
|
||||
$line =~ s/^\n// if $lastlineblank;
|
||||
|
@ -491,6 +491,8 @@ sub add_common_rules() {
|
||||
if ( $capabilities{ADDRTYPE} ) {
|
||||
$chainref = new_standard_chain 'smurfs';
|
||||
|
||||
add_rule $chainref , '-s 0.0.0.0 -j RETURN';
|
||||
|
||||
add_rule_pair $chainref, '-m addrtype --src-type BROADCAST ', 'DROP', $config{SMURF_LOG_LEVEL} ;
|
||||
add_rule_pair $chainref, '-m addrtype --src-type MULTICAST ', 'DROP', $config{SMURF_LOG_LEVEL} ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user