(iptables) ip_conntrack bug?

Guus Sliepen guus@sliepen.warande.net
Wed, 15 Nov 2000 23:54:34 +0100


--k2+Bt23KD9VIuFWa
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 15, 2000 at 04:34:50PM -0500, safemode wrote:

> On Wed, 15 Nov 2000 16:19:23 Guus Sliepen wrote:
> > On Wed, Nov 15, 2000 at 03:46:03PM -0500, safemode wrote:
> >=20
> > > I was DDoS'd today while away and came home to find the firewall unab=
le
> > to
> > > do anything network related (although my connection to irc was still
> > > working oddly).  a quick dmesg showed the problem.
> > > ip_conntrack: maximum limit of 2048 entries exceeded
> > [...]
> >=20
> > I have also seen this happen on a box which ran test9. Apparently becau=
se
> > of
> > it's long uptime, because the logs should no signs of an attack.

safemode and I discussed this and we tried to find an answer in the kernel
source. However, the chain of called functions is too long to determine whe=
re
exactly the problem is. But most likely, because init_conntrack() can fail
(because it cannot free an entry, which is either because netfilter does not
dare to throw out entries with large timeouts (tcp connections have ridicul=
ous
long timeouts btw, almost 2.3 days?!) or because IPS_CONFIRMED is not set),=
 and
this failure is propagating back all the way to the tcp code, so that no new
sockets can be opened.

=46rom our point of view, the conntrack stuff should be totally transparent=
 to the
tcp/ip stack. Since this allows for a DoS attack, might be wise to fix this
before 2.4 comes out...

-------------------------------------------
Met vriendelijke groet / with kind regards,
  Guus Sliepen <guus@sliepen.warande.net>
-------------------------------------------
See also: http://tinc.nl.linux.org/
          http://www.kernelbench.org/
-------------------------------------------

--k2+Bt23KD9VIuFWa
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6ExQpAxLow12M2nsRApB7AKCnhSkFPqYSgqfMgVSz7i50bdzdMACgiNEz
AXf2fDEkUKXi0V4HGFJVioQ=
=KCnX
-----END PGP SIGNATURE-----

--k2+Bt23KD9VIuFWa--