[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120110031714.GA31483@1984>
Date: Tue, 10 Jan 2012 04:17:14 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Hans Schillstrom <hans.schillstrom@...csson.com>
Cc: Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
Jan Engelhardt <jengelh@...ozas.de>,
Patrick McHardy <kaber@...sh.net>,
"netfilter-devel@...r.kernel.org" <netfilter-devel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH 1/1] netfilter: Add possibility to turn off netfilters
defrag per netns
Hi Hans,
On Mon, Jan 09, 2012 at 09:58:42AM +0100, Hans Schillstrom wrote:
> > I wonder if we can conditionally register the sysctl only if we are
> > inside one lxc container.
> >
> Sure no problem, but the code will not be so nice ...
Indeed, ugly indeed.
> > I'm telling this because this sysctl does not seem to make any sense
> > to me outside of it.
>
> I'm not so sure that we should make it asymetric,
> but it's not a big deal.
>
> Anyway here is a sample of the sysctl in a namespace.
> It is the "if (!net_eq(net, &init_net)) {..." that does the magic
Hm, after having a look at it, I think I prefer to provide some
inconditional sysctl.
Better call it nf_conntrack_enable and set it to 1 by default. AFAICS,
this will be a synonymous of:
iptables -I PREROUTING -t raw -j NOTRACK
This option is disabling conntracking after all. I don't think we
would ever support conntrack with fragments.
Please, send a patch including in the description that we need this
for lxc, I'll enqueue it for net-next unless someone raise the hand
with a better solution.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists