From 157053de0ba2c4253150fee4732c1812c654c094 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 21 Sep 2007 17:51:26 +0000 Subject: [PATCH] Remove silly double setting of /proc entries git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7379 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Proc.pm | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Shorewall-perl/Shorewall/Proc.pm b/Shorewall-perl/Shorewall/Proc.pm index 23917fa41..f5c0d3857 100644 --- a/Shorewall-perl/Shorewall/Proc.pm +++ b/Shorewall-perl/Shorewall/Proc.pm @@ -118,12 +118,6 @@ sub setup_route_filtering() { emit 'echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter'; - if ( $config{ROUTE_FILTER} eq 'on' ) { - emit 'echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter'; - } elsif ( $config{ROUTE_FILTER} eq 'off' ) { - emit 'echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter'; - } - emit "[ -n \"\$NOROUTES\" ] || ip route flush cache"; } } @@ -160,14 +154,6 @@ sub setup_martian_logging() { " error_message \"WARNING: Cannot set Martian logging on $interface\"") unless interface_is_optional( $interface); emit "fi\n"; } - - if ( $config{LOG_MARTIANS} eq 'on' ) { - emit 'echo 1 > /proc/sys/net/ipv4/conf/all/log_martians'; - emit 'echo 1 > /proc/sys/net/ipv4/conf/default/log_martians'; - } elsif ( $config{LOG_MARTIANS} eq 'off' ) { - emit 'echo 0 > /proc/sys/net/ipv4/conf/all/log_martians'; - emit 'echo 0 > /proc/sys/net/ipv4/conf/default/log_martians'; - } } }