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'; } }