From: Jesper Dangaard Brouer <jdb@comx.dk>
To: "David S. Miller" <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Kernel Janitors <kernel-janitors@vger.kernel.org>
Subject: [PATCH 1/2] Doc: Fix rp_filter description in net/ipv4/Kconfig.
Date: Fri, 20 Feb 2009 16:03:13 +0100 [thread overview]
Message-ID: <1235142193.2351.41.camel@localhost.localdomain> (raw)
In-Reply-To: <1235141957.2351.37.camel@localhost.localdomain>
Author: Jesper Dangaard Brouer <hawk@comx.dk>
Date: Fri Feb 20 15:20:57 2009 +0100
Doc: Fix rp_filter description in net/ipv4/Kconfig.
The reverse path filter (rp_filter) will NOT get enabled
when enabling forwarding. Read the code and tested in
in practice.
Most distributions does enable it in startup scripts.
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig
index 691268f..10c944d 100644
--- a/net/ipv4/Kconfig
+++ b/net/ipv4/Kconfig
@@ -35,7 +35,7 @@ config IP_ADVANCED_ROUTER
at boot time after the /proc file system has been mounted.
- If you turn on IP forwarding, you will also get the rp_filter, which
+ If you turn on IP forwarding, you should consider the rp_filter, which
automatically rejects incoming packets if the routing table entry
for their source address doesn't match the network interface they're
arriving on. This has security advantages because it prevents the
@@ -46,9 +46,11 @@ config IP_ADVANCED_ROUTER
rp_filter on use:
echo 1 > /proc/sys/net/ipv4/conf/<device>/rp_filter
- or
+ and
echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
+ Note that some distributions enable it in startup scripts.
+
If unsure, say N here.
choice
next prev parent reply other threads:[~2009-02-20 15:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-20 14:59 [PATCH 0/2] Janitor fixes for net/ipv4/Kconfig Jesper Dangaard Brouer
2009-02-20 15:03 ` Jesper Dangaard Brouer [this message]
2009-02-22 8:06 ` [PATCH 1/2] Doc: Fix rp_filter description in net/ipv4/Kconfig David Miller
2009-02-23 14:37 ` [PATCH 1/3] Doc: Fix typos in ip-sysctl.txt about rp_filter Jesper Dangaard Brouer
2009-02-24 11:48 ` David Miller
2009-02-23 14:39 ` [PATCH 2/3] Doc: Cleanup whitespaces in ip-sysctl.txt Jesper Dangaard Brouer
2009-02-24 11:48 ` David Miller
2009-02-23 14:40 ` [PATCH 3/3] Doc: Refer to ip-sysctl.txt for strict vs. loose rp_filter mode Jesper Dangaard Brouer
2009-02-24 11:48 ` David Miller
2009-02-20 15:04 ` [PATCH 2/2] Doc: Clean whitespaces in net/ipv4/Kconfig Jesper Dangaard Brouer
2009-02-22 8:07 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1235142193.2351.41.camel@localhost.localdomain \
--to=jdb@comx.dk \
--cc=davem@davemloft.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).