From: Jarek Poplawski <jarkao2@gmail.com>
To: Ferenc Wagner <wferi@niif.hu>
Cc: netdev@vger.kernel.org
Subject: Re: IP-less bridge as a martian source
Date: Thu, 6 Nov 2008 13:15:44 +0000 [thread overview]
Message-ID: <20081106131544.GB4809@ff.dom.local> (raw)
In-Reply-To: <873ai5yshm.fsf@tac.ki.iif.hu>
On Thu, Nov 06, 2008 at 01:00:05PM +0100, Ferenc Wagner wrote:
> Jarek Poplawski <jarkao2@gmail.com> writes:
...
> > Then I guess we can reconsider this problem like this: since this is a
> > bridge device without any IP address, and "we" expect treating this as
> > IP disabled devices, IMHO it doesn't make much sense to turn rp_filter
> > for such a device; log_martians can report us some other strange
> > address combinations, so it could be useful if there is not too much
> > of this.
>
> Yes, rp_filter doesn't make any sense on this bridge interface, as
> there should be no traffic to/from the bridging host through this
> bridge. Still, it shouldn't hurt either, should it?
No, if your regular traffic doesn't need any complex routing.
>
> >> wferi@xen1:~$ sudo cat /proc/net/vlan/vlan891
> >> [...]
> >> EGRESSS priority Mappings:
> >
> > Should be corrected: maybe you will send a patch? (Otherwise let me now.)
>
> I sent one. Hope it's OK.
Looks OK to me.
>
> > Yes, but this 255.255.255.255 address is (or was) special. According
> > to this:
> > http://en.wikipedia.org/wiki/Classful_network
> > and especially this:
> > http://tools.ietf.org/html/draft-wilson-class-e-02
> >
> > it could be changed soon.
>
> Yes, but I fail to see how this is relevant in either case. My
> question is: why does the IP-less bridge pick up any packets?
> Does the host-based addressing model require this, if the host has any
> IP address at all (on some other interface)?
Do you mean why it's routed at all? Probably it's something about bridge
configs, like BRIDGE_EBT_BROUTE etc. You could try to analyze net/bridge/
br_input.c/br_handle_frame() for cases when it returns skb (instead of
NULL).
...
> I didn't mean separating the ports of the bridge, but separating the
> host running the bridge from the traffic the bridge forwards. It
> should be able to forward all the strangest IP or non-IP traffic of
> the world and stay totally unaffected.
Yes, I missed your point. So I think this should be configurable.
> >>> but not all. log_martians should tell you if it's something
> >>> serious. If you have some martians "by design" it's probably
> >>> better to get rid of them before rp_filter
> >>
> >> By dropping the in the nat table or by ebtables? Anyway, "martians by
> >> design" does sound particulary sane.
> >
> > I mean e.g. when you really have to treat packets with such unusual
> > addresses as in your pings.
>
> Yes, I have to. Some Wake-on-LAN packets also carry 255.255.255.255
> as their destination address. Just like various Windows/MacOS
> "neighbour discovery" services.
Are you sure they use something else then 0.0.0.0 as a source address
with these 255.255.255.255 packets?
>
> >>> I agree the syntax of this warning is confusing, but I doubt we
> >>> should change this after so many years - this could break users'
> >>> scripts checking for this.
> >>
> >> :) It's surprising after having read stable_api_nonsense.txt...
> >
> > Hmm... Could you point me to this most :) point?
>
> For me, the first paragraph says that the user space interface is the
> syscall interface, and that's the only one you can count on being
> stable; in other cases technical superiority overrides compatibility.
> Not that I feel too strongly in this case.
I think it means things can change if they harm "technical superiority".
The question is if possibly misleading message format can do this too.
I guess the practice is to change such things only if they are
obviously wrong.
Jarek P.
next prev parent reply other threads:[~2008-11-06 13:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 12:06 IP-less bridge as a martian source Ferenc Wagner
2008-10-22 15:00 ` Ferenc Wagner
2008-10-22 17:22 ` Jarek Poplawski
2008-10-22 17:36 ` Jarek Poplawski
2008-10-22 19:10 ` Jarek Poplawski
2008-10-29 16:56 ` Ferenc Wagner
2008-10-31 8:41 ` Jarek Poplawski
2008-11-01 23:55 ` Ferenc Wagner
2008-11-05 9:43 ` Jarek Poplawski
2008-11-05 10:30 ` Ferenc Wagner
2008-11-05 11:26 ` Ferenc Wagner
2008-11-06 10:00 ` Jarek Poplawski
2008-11-06 12:00 ` Ferenc Wagner
2008-11-06 13:15 ` Jarek Poplawski [this message]
2008-11-06 14:31 ` Ferenc Wagner
2008-11-07 10:19 ` Jarek Poplawski
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=20081106131544.GB4809@ff.dom.local \
--to=jarkao2@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=wferi@niif.hu \
/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).