A fix for LOG_MARTIANS

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6046 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-21 15:52:06 +00:00
parent 960acb414e
commit 4929296163

View File

@ -144,7 +144,10 @@ sub setup_martian_logging() {
emit "fi\n";
}
emit 'echo 1 > /proc/sys/net/ipv4/conf/default/log_martians' if $config{LOG_MARTIANS};
if ( $config{LOG_MARTIANS} ) {
emit 'echo 1 > /proc/sys/net/ipv4/conf/all/log_martians';
emit 'echo 1 > /proc/sys/net/ipv4/conf/default/log_martians';
}
}
}