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