From: Stephen Hemminger <shemminger@osdl.org>
To: Tino Keitel <tino.keitel@innominate.com>
Cc: bridge@lists.osdl.org
Subject: Re: [Bridge] Clarification regarding device matches in bridge-netfilter
Date: Tue, 5 Dec 2006 09:19:36 -0800 [thread overview]
Message-ID: <20061205091936.4dca40b3@freekitty> (raw)
In-Reply-To: <20061205123729.GA24251@tkeitel002.bln.innominate.local>
On Tue, 5 Dec 2006 13:37:29 +0100
Tino Keitel <tino.keitel@innominate.com> wrote:
> Hi folks,
>
> in 2.4 kernels, device matching for bridged packets was done with
> iptables -i/-o. Since 2.6, I was used to use -m physdev here.
>
> In 2.6.18, This seems to be more complicated. At least the filter/INPUT
> chain now doesn't match with -m physdev --physdev-in anymore, but
> FORWARD and OUTPUT does. I also read the note that -m phydev is now
> deprecated for non-bridged traffic.
>
> Does this mean that
>
> 1. I have to use the physdev match for bridged traffic, e.g. FORWARD,
> POSTROUTING, PREROUTING
>
> 2. I have to use iptables -i in the INPUT chain and on PREROUTING
>
> 3. I have to use the physdev match in the OUTPUT chain
>
> 4. I have to distinguish between bridged and locally processed or
> routed traffic in PREROUTING, since bridged traffic needs -m
> physdev, whereas the other traffic need -i
>
> 5. until now, outgoing traffic is always matched with -m physdev, but
> this will change in the future. If the change is made, I'll have to
> distinguish in the same way as for incoming traffic
>
> Regards,
> Tino
> _______________________________________________
> Bridge mailing list
> Bridge@lists.osdl.org
> https://lists.osdl.org/mailman/listinfo/bridge
>
Post netfilter questions to
netfilter@lists.netfilter.org
--
Stephen Hemminger <shemminger@osdl.org>
prev parent reply other threads:[~2006-12-05 17:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-05 12:37 [Bridge] Clarification regarding device matches in bridge-netfilter Tino Keitel
2006-12-05 17:13 ` Tino Keitel
2006-12-05 17:19 ` Stephen Hemminger [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=20061205091936.4dca40b3@freekitty \
--to=shemminger@osdl.org \
--cc=bridge@lists.osdl.org \
--cc=tino.keitel@innominate.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.