Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Julian Anastasov <ja@ssi.bg>
To: lartc@vger.kernel.org
Subject: RE: [LARTC] Re: Routing that doesn't route
Date: Thu, 02 May 2002 20:53:33 +0000	[thread overview]
Message-ID: <marc-lartc-102037281301092@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100681343818736@msgid-missing>


	Hello,

On Wed, 1 May 2002, Greg Scott wrote:

> is all about.  I'm still not clear about RP_FILTER but
> getting better.

	Simple thing: IP or ARP packet is accepted only if
there is a route in reverse direction, i.e. when the addresses
are reversed. Example:

packet 10.0.0.1->10.0.0.2 is coming from eth0 and we have a
route to 10.0.0.1 via eth0, so the packet is accepted from the
reverse path protection (rp_filter) set on eth0. If this
packet comes from eth1 (again with rp_filter=1) then it will
be dropped because we already have a route via eth0. As
result, packets from 10.0.0.0/24, for example, should come
only from eth0. In any other case, they will be dropped from
other devices with rp_filter protection and always allowed
from devices without such protection.

	The rp_filter is also explained here:

http://lartc.org/HOWTO//cvs/2.4routing/html/c1182.html#AEN1188

> reproduced the problem at my place.  Then I setup a system
> with Red Hat 7.2, which uses kernel 2.4-7.  Still old, but not
> as old!  I set this sytem up as a router in parallel with my
> other Linux router and ran the same tests again.  This time,
> everything did what it was supposed to do.
>
> So I think the whole thing was a bug with the 2.4-2 kernel.

	Yes, testing with latest kernel should be the first
thing to try :)

> thanks
>
> - Greg

Regards

--
Julian Anastasov <ja@ssi.bg>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2002-05-02 20:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-26 22:24 [LARTC] Re: Routing that doesn't route Julian Anastasov
2002-02-28 12:56 ` Greg Scott
2002-02-28 20:49 ` Julian Anastasov
2002-03-01 16:43 ` Julian Anastasov
2002-03-01 16:48 ` Greg Scott
2002-05-02  3:36 ` Greg Scott
2002-05-02 20:53 ` Julian Anastasov [this message]

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=marc-lartc-102037281301092@msgid-missing \
    --to=ja@ssi.bg \
    --cc=lartc@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