From: Harald Welte <laforge@gnumonks.org>
To: Bart De Schuymer <bart.de.schuymer@pandora.be>
Cc: coreteam@netfilter.org, linux-kernel@vger.kernel.org,
Lennert Buytenhek <buytenh@gnu.org>,
"David S. Miller" <davem@redhat.com>
Subject: Re: [netfilter-core] [RFC] place to put bridge-netfilter specific data in the skbuff
Date: Thu, 24 Oct 2002 10:16:56 +0200 [thread overview]
Message-ID: <20021024101656.T2450@sunbeam.de.gnumonks.org> (raw)
In-Reply-To: <200210142159.49290.bart.de.schuymer@pandora.be>; from bart.de.schuymer@pandora.be on Mon, Oct 14, 2002 at 09:59:49PM +0200
[-- Attachment #1: Type: text/plain, Size: 3082 bytes --]
On Mon, Oct 14, 2002 at 09:59:49PM +0200, Bart De Schuymer wrote:
> Hello netfilter team and others,
Hi Bart.
> DaveM suggested I talk to you (netfilter team) about this.
Thanks, unfortunately there was this huge delay before your email was answered. Sorry for this inconvenience.
> What's bridge-netfilter: the mapping of the IPv4 onto the bridge hooks, to
> make a powerful bridging firewall.
Yes, I am aware of this project. In fact, Lennert did a presentation about
this on the netfilter developer workshop in Nov 2001
> The solution I like best (and David seems to not mind) is adding one pointer
> to a struct nf_bridge_info in the skbuff. So, adding one new member.
That would be acceptable.
> Another suggestion by David is this:
>
> struct nf_ct_info {
> union {
> struct nf_conntrack *master;
> struct nf_bridge_info *brinfo;
> } u;
> };
>
> But I don't think this will not work because master will be in use while we
> need brinfo.
no, it will not work. It clashes as soon as you want to use connection
tracking on a bridging firewall.
> So another solution could be this:
>
> struct nf_ct_info {
> struct nf_conntrack *master;
> struct nf_bridge_info *brinfo;
> };
This is, of course, possible.
> But I don't know anything about the intricacies of adding this.
I don't see any big problems. If master stays the first member in struct
nf_ct_info, it should even work if there is a mis-use somewhere in the code,
referencing directly to nf_ct_info instead of nf_ct_info->master.
> Do you have any other suggestions? Comments? Help?
It's great seeing that the bridging stuff finally gets included.
> Also, could you have a look at the current patch, to spot any other
> obstacles/things you don't like?
> The patch is available at:
> http://users.pandora.be/bart.de.schuymer/ebtables/br-nf/bridge-nf-0.0.10-dev-pre1-against-2.5.42.diff
I have read the new (2.5.44) patch.
The only issue that comes to my mind is:
ip_packet_match is getting a way too long argument list. Can't you write the
matching against physical in/out devices as iptables match extension? (like
ipt_physdev.c?)
> Another question:
> I've been told it is the general concensus that this bridge firewall should
> be compiled in the kernel if CONFIG_NETFILTER=y. Or should it be a user
> option?
> It is predicted that using a user option will give alot of questions about
> the bridge firewall not working.
> Do you have any strong opinion about this?
Mh. Since bridging firewall is cool, but not something everybody will
use by default [and it adds code as well as enlarges the skb], I think it
should be a compiletime kernel config option.
> cheers,
> Bart
--
Live long and prosper
- Harald Welte / laforge@gnumonks.org http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
as I'm the dictator." -- George W. Bush Dec 18, 2000
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2002-10-24 8:12 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-11 22:32 802.1q + device removal causing hang Simon Kirby
2002-09-11 22:31 ` David S. Miller
2002-09-12 6:36 ` [PATCH] ebtables - Ethernet bridge tables, for 2.5.34 Bart De Schuymer
2002-09-12 23:04 ` David S. Miller
2002-09-13 3:20 ` Bart De Schuymer
2002-09-13 4:29 ` David S. Miller
2002-09-13 6:12 ` Bart De Schuymer
2002-09-13 6:09 ` David S. Miller
2002-09-13 12:45 ` bridge-netfilter patch (was: Re: [PATCH] ebtables - Ethernet bridge tables, for 2.5.34) Lennert Buytenhek
2002-09-13 18:22 ` bridge-netfilter patch David S. Miller
2002-09-14 7:05 ` Bart De Schuymer
2002-09-16 3:35 ` David S. Miller
2002-09-16 21:41 ` Bart De Schuymer
2002-09-16 23:21 ` David S. Miller
2002-09-17 19:10 ` Bart De Schuymer
2002-09-17 19:35 ` David S. Miller
2002-09-15 21:27 ` Lennert Buytenhek
2002-09-16 6:50 ` [PATCH] ebtables - Ethernet bridge tables, for 2.5.35 Bart De Schuymer
2002-09-16 23:01 ` David S. Miller
2002-10-14 18:05 ` [RFC] bridge-nf -- map IPv4 hooks onto bridge hooks, vs 2.5.42 Bart De Schuymer
2002-10-14 18:01 ` David S. Miller
2002-10-14 18:32 ` bert hubert
2002-10-14 18:58 ` Bart De Schuymer
2002-10-14 19:02 ` David S. Miller
2002-10-14 19:29 ` Bart De Schuymer
2002-10-14 19:26 ` David S. Miller
2002-10-20 22:20 ` [RFC] bridge-nf -- map IPv4 hooks onto bridge hooks, vs 2.5.44 Bart De Schuymer
2002-10-20 22:19 ` David S. Miller
2002-10-22 23:40 ` Bart De Schuymer
2002-10-25 6:01 ` [PATCH][RFC] bridge-nf -- map IPv4 hooks onto bridge hooks - try 3, " Bart De Schuymer
2002-10-25 6:22 ` [netfilter-core] " Harald Welte
2002-10-28 13:02 ` David S. Miller
[not found] ` <200210141953.38933.bart.de.schuymer@pandora.be>
2002-10-14 19:59 ` [RFC] place to put bridge-netfilter specific data in the skbuff Bart De Schuymer
2002-10-24 8:16 ` Harald Welte [this message]
2002-10-24 8:15 ` [netfilter-core] " David S. Miller
2002-10-24 12:22 ` Harald Welte
2002-09-12 23:49 ` 802.1q + device removal causing hang Simon Kirby
2002-09-12 23:53 ` David S. Miller
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=20021024101656.T2450@sunbeam.de.gnumonks.org \
--to=laforge@gnumonks.org \
--cc=bart.de.schuymer@pandora.be \
--cc=buytenh@gnu.org \
--cc=coreteam@netfilter.org \
--cc=davem@redhat.com \
--cc=linux-kernel@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