From: Vasily Averin <vasily.averin@linux.dev>
To: Eric Dumazet <edumazet@google.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Florian Westphal <fw@strlen.de>,
netfilter-devel@vger.kernel.org, kernel@openvz.org
Subject: Re: troubles caused by conntrack overlimit in init_netns
Date: Sat, 2 Apr 2022 22:52:29 +0300 [thread overview]
Message-ID: <487738da-49a7-90fc-7e22-5b60fb16af44@linux.dev> (raw)
In-Reply-To: <CANn89iKy_2bQJw7_iyTTVA0yMvzkHkUp4DtriieNC3AV1D-SUw@mail.gmail.com>
On 4/2/22 21:50, Eric Dumazet wrote:
> On Sat, Apr 2, 2022 at 11:32 AM Vasily Averin <vasily.averin@linux.dev> wrote:
>>
>> On 4/2/22 20:12, Eric Dumazet wrote:
>>>
>>> On 4/2/22 03:33, Vasily Averin wrote:
>>>> Pablo, Florian,
>>>>
>>>> There is an old issue with conntrack limit on multi-netns (read container) nodes.
>>>>
>>>> Any connection to containers hosted on the node creates a conntrack in init_netns.
>>>> If the number of conntrack in init_netns reaches the limit, the whole node becomes
>>>> unavailable.
>>>
>>> Can you describe network topology ?
>>
>> += veth1 <=> veth container1
>> ethX <=> brX =+= veth2 <=> veth container2
>> += vethX <=> veth containerX
>>
>
> Could you simply add an iptables rule in init_net to bypass conntrack
> for idev=veth* ?
>
> iptables -t raw -I PREROUTING -i veth+ -j NOTRACK
>
> (I have not worked with conntrack in recent years, this might be foolish...)
Great and simple idea.
Thank you very much, we'll investigate it.
Vasily Averin
prev parent reply other threads:[~2022-04-02 19:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-02 10:33 troubles caused by conntrack overlimit in init_netns Vasily Averin
2022-04-02 11:11 ` Florian Westphal
2022-04-02 13:00 ` Nikita Yushchenko
2022-04-04 7:59 ` Vasily Averin
2022-04-02 17:12 ` Eric Dumazet
2022-04-02 18:32 ` Vasily Averin
2022-04-02 18:50 ` Eric Dumazet
2022-04-02 19:52 ` Vasily Averin [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=487738da-49a7-90fc-7e22-5b60fb16af44@linux.dev \
--to=vasily.averin@linux.dev \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=fw@strlen.de \
--cc=kernel@openvz.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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 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.