forked from extern/shorewall_code
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:
parent
960acb414e
commit
4929296163
@ -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';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user