Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Matt Hakim <thepigs@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: fwmark & iptables
Date: Fri, 29 Jan 2010 07:24:12 +0100	[thread overview]
Message-ID: <4B627F0C.8050305@plouf.fr.eu.org> (raw)
In-Reply-To: <fcfe0b071001281506p2380ef45t99cbf9733b074f1@mail.gmail.com>

Matt Hakim a écrit :
> On Fri, Jan 29, 2010 at 7:50 AM, Matt Hakim <thepigs@gmail.com> wrote:
>>
>>> Forgot about that, sorry. Make sure sysctl net.ipv4.conf.ppp0.rp_filter
>>> is set to 0 after ppp0 is created, otherwise the packet is discarded at
>>> the input routing decision stage. sysctl net.ipv4.conf.default.rp_filter
>>> contains the value that will be set for any new interface.
>>
>> Didn't seem to help.
> 
> OK its working now, after I did various:
> 
> echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
> echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter

What is the kernel version ? In 2.6.31 and newer versions, because of
the previous addition of "loose mode" to reverse path filtering in
version 2.6.30 (see Documentation/networking/ip-sysct.txt [1]), the
combination of net.ipv4.conf.$interface.rp_filter and
net.ipv4.conf.all.rp_filter to produce the functional value for
$interface was changed from a logical AND into an arithmetic MAX, so
net.ipv4.conf.all.rp_filter must also be set to 0 to disable reverse
path filtering on an interface. However it should not be necessary to
set rp_filter to 0 for eth0 too if it is not used for advanced routing.

> Thanks for your help,

You're welcome. This is a common but tricky issue.

[1] Note for myself : ask to change "conf/all/rp_filter must also be set
to non-zero to do source validation on the interface" in ip-sysctl.txt
which is no longer true and thus misleading.

  reply	other threads:[~2010-01-29  6:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28 10:37 fwmark & iptables Matt Hakim
2010-01-28 11:36 ` Pascal Hambourg
2010-01-28 13:26   ` Matt Hakim
2010-01-28 13:35     ` Pascal Hambourg
2010-01-28 20:50       ` Matt Hakim
2010-01-28 23:06         ` Matt Hakim
2010-01-29  6:24           ` Pascal Hambourg [this message]
2010-01-28 11:37 ` Oskar Berggren

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=4B627F0C.8050305@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --cc=netfilter@vger.kernel.org \
    --cc=thepigs@gmail.com \
    /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