From a0ade6f121b4a25c327acdaa1ea584f85d1c8845 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 10 Jul 2011 21:53:43 +0100 Subject: [PATCH] bookends.m4, config.m4: Allow configuration of reverse-path filtering. We'll need to turn it off in some hosts because there are routing asymmetries. --- bookends.m4 | 4 ++-- config.m4 | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bookends.m4 b/bookends.m4 index 02f7859..cdc716e 100644 --- a/bookends.m4 +++ b/bookends.m4 @@ -68,8 +68,8 @@ if [ -x /sbin/brctl ]; then fi ## Turn on the reverse-path filter, and log weird things. -setdevopt rp_filter 1 -setdevopt log_martians 1 +setdevopt rp_filter $rp_filter +setdevopt log_martians $log_martians ## Turn off things which can mess with our routing decisions. setdevopt accept_source_route 0 diff --git a/config.m4 b/config.m4 index 391e504..21c6712 100644 --- a/config.m4 +++ b/config.m4 @@ -39,5 +39,11 @@ defconf(open_port_max, 54999) ## Whether to permit forwarding. defconf(forward, 1) +## Whether to turn on the reverse-path filter. +defconf(rp_filter, 1) + +## Whether to turn on logging of martian packets. +defconf(log_martians, 1) + m4_divert(-1) ###----- That's all, folks -------------------------------------------------- -- 2.11.0