From ae70b89fc52b7c3d9480896a7a4a16f48d0c2ed7 Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 21 Apr 2007 15:59:17 +0000 Subject: [PATCH] A fix for LOG_MARTIANS git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6049 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Proc.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shorewall-perl/Shorewall/Proc.pm b/Shorewall-perl/Shorewall/Proc.pm index fad5e354e..c349071fb 100644 --- a/Shorewall-perl/Shorewall/Proc.pm +++ b/Shorewall-perl/Shorewall/Proc.pm @@ -147,6 +147,9 @@ sub setup_martian_logging() { 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'; + } else { + emit 'echo 0 > /proc/sys/net/ipv4/conf/all/log_martians'; + emit 'echo 0 > /proc/sys/net/ipv4/conf/default/log_martians'; } }