From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Patrick McHardy <kaber@trash.net>
Cc: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>,
Linke <linkerpro@mail.ru>,
Netfilter Development Mailing list
<netfilter-devel@vger.kernel.org>
Subject: Re: BUG: Kernel panic at masquerade
Date: Wed, 14 Jan 2015 18:27:02 +0100 [thread overview]
Message-ID: <20150114172702.GA20830@salvia> (raw)
In-Reply-To: <20150113194111.GB23967@acer.localdomain>
On Tue, Jan 13, 2015 at 07:41:12PM +0000, Patrick McHardy wrote:
> Related to this, what also kind of sucks is that you have to manually
> take care of creating the opposite NAT chain (pre/postrouting, in/output)
> to have NAT work properly.
We can add some dependency chains that are automagically installed,
eg. if you install a NAT prerouting chain, then install the
postrouting chain that mirrors. But then, we will be assumming things
on the user configuration, and I think that may results in problems
when some user comes up later with some strange combination that he
cannot achieve because of some automagic configuration we brought up.
> We should make sure that the user can't mess this up.
I'm not so sure, I think we can just make sure users can't crash the
kernel. I mean, there are many ways users can screw it up when
configuring their firewall, they should understand what they are
doing.
> Simlarly we need to prevent to have multiple NAT chains for the same
> hook.
This should be easy to check, yes.
> Generally I think the current NAT chain implementation is very
> wrong. We need to invoke the core functions once for each direction
> if NAT is used independantly of any chains. So they probably
> shouldn't be tied together.
Then, we'll have to register the hooks on some magic priority. The
chains provide the way the user can configure where he wants the NAT
engine to show up.
next prev parent reply other threads:[~2015-01-14 17:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 21:32 BUG: Kernel panic at masquerade Linke
2015-01-09 22:02 ` Arturo Borrero Gonzalez
2015-01-13 19:41 ` Patrick McHardy
2015-01-14 17:27 ` Pablo Neira Ayuso [this message]
2015-01-14 17:34 ` Patrick McHardy
2015-01-14 18:40 ` Pablo Neira Ayuso
2015-01-14 18:49 ` Patrick McHardy
2015-01-14 19:18 ` Pablo Neira Ayuso
2015-01-14 19:37 ` Patrick McHardy
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=20150114172702.GA20830@salvia \
--to=pablo@netfilter.org \
--cc=arturo.borrero.glez@gmail.com \
--cc=kaber@trash.net \
--cc=linkerpro@mail.ru \
--cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).