mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Fix log_martians bug
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6042 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
a5549a06bf
commit
776c9a811a
@ -137,14 +137,13 @@ sub setup_martian_logging() {
|
||||
my $value = get_interface_option $interface, 'logmartians';
|
||||
|
||||
emitj( "if [ -f $file ]; then" ,
|
||||
" echo 1 > $file" );
|
||||
" echo $value > $file" );
|
||||
|
||||
emitj( 'else' ,
|
||||
" error_message \"WARNING: Cannot set Martian logging on $interface\"") unless interface_is_optional( $interface);
|
||||
emit "fi\n";
|
||||
}
|
||||
|
||||
emit 'echo 1 > /proc/sys/net/ipv4/conf/all/log_martians';
|
||||
emit 'echo 1 > /proc/sys/net/ipv4/conf/default/log_martians' if $config{LOG_MARTIANS};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user