From c9e481671cc0727e5732c9408e452db22118a05f Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 21 Sep 2004 20:05:18 +0000 Subject: [PATCH] Add Martian Logging git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1634 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall2/firewall | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shorewall2/firewall b/Shorewall2/firewall index 77a0d7d2e..490d1af20 100755 --- a/Shorewall2/firewall +++ b/Shorewall2/firewall @@ -5893,6 +5893,12 @@ add_common_rules() { "Warning: Cannot set Martian logging on $interface" fi done + + if [ -n "$ROUTE_FILTER" ]; then + run_and_save_command "echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter" + run_and_save_command "echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter" + fi + fi if [ -n "$DYNAMIC_ZONES" ]; then