netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: sclark46@earthlink.net
Cc: "Rémi Denis-Courmont" <remi@remlab.net>,
	"Linux Kernel Network Developers" <netdev@vger.kernel.org>
Subject: Re: Linux vs FreeBSD Which is correct.
Date: Wed, 17 Aug 2011 22:15:52 +0200	[thread overview]
Message-ID: <4E4C2178.1000809@plouf.fr.eu.org> (raw)
In-Reply-To: <4E4C1A00.80207@earthlink.net>

Hello,

Stephen Clark a écrit :
> On 08/17/2011 01:17 PM, Rémi Denis-Courmont wrote:
>> Le mercredi 17 août 2011 20:03:18 Stephen Clark, vous avez écrit :
>>    
>>> I have run into a situation where if I ping our HQ the response comes
>>> back on a different
>>> interface than what the request went out on. FreeBSD is happy and says
>>> it got the response,
>>> Linux is not and gives no indication it got a response.
>>>
>>> So is FreeBSD wrong or is Linux wrong?

Neither is right or wrong. It partly depends whether you want to enforce
so-called "weak" or "strong" host model.

>> Most distributions enable reverse path filtering by default.
>> It can be disabled:
>> # echo -n 0>  /proc/sys/net/ipv4/conf/all/rp_filter
>>
>> But you should probably fix the configuration instead (e.g. /etc/sysctl.conf).
>>    
> Sorry that didn't help either.

Since some kernel version the logic of this sysctl has changed from
AND(all, $interface) to MAX(all, $interface). So you must set
net/ipv4/conf/$interface/rp_filter to 0 too to disable it.
Or set net/ipv4/conf/all/rp_filter to 2 to make it weaker.

  reply	other threads:[~2011-08-17 20:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 17:03 Linux vs FreeBSD Which is correct Stephen Clark
2011-08-17 17:10 ` Emil S Tantilov
2011-08-17 17:20   ` Stephen Clark
2011-08-17 17:17 ` Rémi Denis-Courmont
2011-08-17 19:44   ` Stephen Clark
2011-08-17 20:15     ` Pascal Hambourg [this message]
2011-08-18 12:42       ` Stephen Clark
2011-08-19 16:18         ` Chris Friesen
2011-08-19 19:10           ` Stephen Clark

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=4E4C2178.1000809@plouf.fr.eu.org \
    --to=pascal@plouf.fr.eu.org \
    --cc=netdev@vger.kernel.org \
    --cc=remi@remlab.net \
    --cc=sclark46@earthlink.net \
    /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).