From 776c9a811a4075a84e85697b1cd373175142dd9a Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 21 Apr 2007 14:49:48 +0000 Subject: [PATCH] Fix log_martians bug git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6042 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Proc.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shorewall-perl/Shorewall/Proc.pm b/Shorewall-perl/Shorewall/Proc.pm index 02e5be0f7..e5a9fe0b0 100644 --- a/Shorewall-perl/Shorewall/Proc.pm +++ b/Shorewall-perl/Shorewall/Proc.pm @@ -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}; }