All of lore.kernel.org
 help / color / mirror / Atom feed
* ip_conntrack: table full, dropping packet.
@ 2002-10-30 13:43 Vicky Shrestha
  2002-10-30 16:28 ` Antony Stone
  2002-10-30 16:59 ` Maciej Soltysiak
  0 siblings, 2 replies; 14+ messages in thread
From: Vicky Shrestha @ 2002-10-30 13:43 UTC (permalink / raw)
  To: netfilter

I have built a firewall on 2.4.8-17 kernel which has 2 Mb of traffic going in 
an out of it. 

I recently added a line :
iptables -A FORWARD -m state --state ESTABLISED,RELATED -J ACCEPT

Now I can see the lines "ip_conntrack : table full, dropping packet" in my 
kern.log.

Does dropping packets means that it is actually dropping the packets or just 
truncating the file /proc/net/ip_conntrack , does this affect my client's  
connections???

-- 
Best regards,


Vicky Shrestha
System Administrator
WorldLink Communications Pvt.Ltd
Jawalakhel, Kathmandu, Nepal.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet.
  2002-10-30 13:43 Vicky Shrestha
@ 2002-10-30 16:28 ` Antony Stone
  2002-10-30 16:59 ` Maciej Soltysiak
  1 sibling, 0 replies; 14+ messages in thread
From: Antony Stone @ 2002-10-30 16:28 UTC (permalink / raw)
  To: netfilter

On Wednesday 30 October 2002 1:43 pm, Vicky Shrestha wrote:

> I have built a firewall on 2.4.8-17 kernel which has 2 Mb of traffic going
> in an out of it.
>
> I recently added a line :
> iptables -A FORWARD -m state --state ESTABLISED,RELATED -J ACCEPT
>
> Now I can see the lines "ip_conntrack : table full, dropping packet" in my
> kern.log.
>
> Does dropping packets means that it is actually dropping the packets or
> just truncating the file /proc/net/ip_conntrack , does this affect my
> client's connections???

It means it really is dropping packets.   You should find out why the 
conntrack table is too small and do something about it.

The two possible reasons are:

1. You have a reasonable sized conntrack table but something is creating 
large numbers of entries (maybe SYN floods or something similar).

2. You have a reasonable number of connections being created through the 
machine, but insufficient memory has been allocated to the conntrack table.

Questions:

1. How much memory do you have in your firewall machine ?

2. What are the results of:
wc -l /proc/net/ip_conntrack
cat /proc/sys/net/ipv4/ip_conntrack_max

Antony.

-- 

Your email has been returned due to insufficient voltage.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet.
  2002-10-30 13:43 Vicky Shrestha
  2002-10-30 16:28 ` Antony Stone
@ 2002-10-30 16:59 ` Maciej Soltysiak
  2002-10-31  6:40   ` Vicky Shrestha
  1 sibling, 1 reply; 14+ messages in thread
From: Maciej Soltysiak @ 2002-10-30 16:59 UTC (permalink / raw)
  To: Vicky Shrestha; +Cc: netfilter

> Now I can see the lines "ip_conntrack : table full, dropping packet" in my
> kern.log.
Yes, but have you read the FAQ ? :) Guess not.
You need to increase the /proc/net/ip_conntrack_max value, according to
the FAQ, it gives some reasonable values depending on the RAM you have.

> Does dropping packets means that it is actually dropping the packets or just
> truncating the file /proc/net/ip_conntrack , does this affect my client's
> connections???
Well, it means that the state mechanism has no space to insert a
conntrack entry, meaning, that the --state ESTABLISHED,RELATED works only
to a limited number of currently tracked connections.

Depending on your setup, it may do different things, but most probably it
does whatever your POLICY instructs them to do. DROP ? Most certainly.

In other words, it means that the --state rule will not match on the
packet. It will not get accepted by this rule.

Regards,
Maciej Soltysiak




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet.
  2002-10-30 16:59 ` Maciej Soltysiak
@ 2002-10-31  6:40   ` Vicky Shrestha
  2002-11-01  2:02     ` Jet
  0 siblings, 1 reply; 14+ messages in thread
From: Vicky Shrestha @ 2002-10-31  6:40 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: netfilter

Yes I have read the FAQ .

I have 512 Mb of Ram and Hence the Maximum value of 
/proc/sys/net/ipv4/ip_conntrack_max must be 32768, which is what I have set 
already.

But Even this value is not enough for the connection passing through the 
firewall. It gets maxed out with minutes

If I increase the value what negative effect does it have??? Can I increase it 
to say 3276800 ???? Hope It doesnot crash my machine.


On Wednesday 30 October 2002 22:44, Maciej Soltysiak wrote:
> > Now I can see the lines "ip_conntrack : table full, dropping packet" in
> > my kern.log.
>
> Yes, but have you read the FAQ ? :) Guess not.
> You need to increase the /proc/net/ip_conntrack_max value, according to
> the FAQ, it gives some reasonable values depending on the RAM you have.
>
> > Does dropping packets means that it is actually dropping the packets or
> > just truncating the file /proc/net/ip_conntrack , does this affect my
> > client's connections???
>
> Well, it means that the state mechanism has no space to insert a
> conntrack entry, meaning, that the --state ESTABLISHED,RELATED works only
> to a limited number of currently tracked connections.
>
> Depending on your setup, it may do different things, but most probably it
> does whatever your POLICY instructs them to do. DROP ? Most certainly.
>
> In other words, it means that the --state rule will not match on the
> packet. It will not get accepted by this rule.
>
> Regards,
> Maciej Soltysiak

-- 
Best regards,


Vicky Shrestha
System Administrator
WorldLink Communications Pvt.Ltd
Jawalakhel, Kathmandu, Nepal.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet.
  2002-10-31  6:40   ` Vicky Shrestha
@ 2002-11-01  2:02     ` Jet
  0 siblings, 0 replies; 14+ messages in thread
From: Jet @ 2002-11-01  2:02 UTC (permalink / raw)
  To: mail, Maciej Soltysiak; +Cc: netfilter

No I guess the maximum value is 64K.

Yes. It did crash my machine.
Just FYI, I tried this before on my 64M RAM linux box.
The default is 4K connection max.
But I tried to increase it to 64K.
End up when the number of connections grow to 13K (based on
/proc/net/ip_conntrack),
it first starts killing my other processes including klogd, syslog-ng,
snort.
At this time, you can see the kernel start killing the process from your
syslog (before syslog died)
After a while my linux box hang. And wait for reboot
I guess this is related to OOM (out-of-memory) bug in the kernel (I'm using
2.4.18-xfs).

.//Jet

>
> If I increase the value what negative effect does it have??? Can I
increase it
> to say 3276800 ???? Hope It doesnot crash my machine.
>
>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* ip_conntrack: table full, dropping packet.
  2003-01-20 14:49       ` Evan Borgstrom
@ 2003-01-20 15:01         ` hare ram
  2003-01-20 15:13           ` Maciej Soltysiak
  0 siblings, 1 reply; 14+ messages in thread
From: hare ram @ 2003-01-20 15:01 UTC (permalink / raw)
  To: Netfiler E-Mail List

Hi

iam getting this error
what is the problem

when i do dmesg in redhat

ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
NET: 1 messages suppressed.
ip_conntrack: table full, dropping packet.
NET: 3 messages suppressed.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
NET: 10 messages suppressed.
ip_conntrack: table full, dropping packet.
NET: 7 messages suppressed.
ip_conntrack: table full, dropping packet.
NET: 5 messages suppressed.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
NET: 2 messages suppressed.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
NET: 2 messages suppressed.
ip_conntrack: table full, dropping packet.
NET: 5 messages suppressed.
ip_conntrack: table full, dropping packet.
NET: 3 messages suppressed.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
ip_conntrack: table full, dropping packet.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.
61.218.53.226 sent an invalid ICMP error to a broadcast.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet.
  2003-01-20 15:01         ` ip_conntrack: table full, dropping packet hare ram
@ 2003-01-20 15:13           ` Maciej Soltysiak
  0 siblings, 0 replies; 14+ messages in thread
From: Maciej Soltysiak @ 2003-01-20 15:13 UTC (permalink / raw)
  To: hare ram; +Cc: Netfiler E-Mail List

> iam getting this error
> what is the problem
The conntrack table is full and your machine can not store
more connection tracking information, as each tracked connection
takes up some memory.

Increase your
/proc/sys/net/ipv4/ip_conntrack_max

as described in the FAQ. The FAQ shows how to calculate the value
for your system.

Regards,
Maciej Soltysiak



^ permalink raw reply	[flat|nested] 14+ messages in thread

* ip_conntrack: table full, dropping packet.
@ 2004-09-24  4:01 www.piratehosting.net
  2004-09-24  7:02 ` Jason Opperisano
  2004-09-26 20:34 ` Jose Maria Lopez
  0 siblings, 2 replies; 14+ messages in thread
From: www.piratehosting.net @ 2004-09-24  4:01 UTC (permalink / raw)
  To: netfilter

ip_conntrack: table full, dropping packet.

i have been using
echo "4008192" > /proc/sys/fs/file-max
echo 4008192 > /proc/sys/net/ipv4/ip_conntrack_max
to increase the limits to avoid this dropping of packets.
can i just clear the list from
/proc/net/ip_conntrack
or something

some info
ip_conntrack_ftp       70576  0
ip_conntrack_irc       70064  0
ip_conntrack           24968  4
iptable_nat,ip_conntrack_ftp,ip_conntrack_irc,ipt_state


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet.
  2004-09-24  4:01 www.piratehosting.net
@ 2004-09-24  7:02 ` Jason Opperisano
  2004-09-26 20:34 ` Jose Maria Lopez
  1 sibling, 0 replies; 14+ messages in thread
From: Jason Opperisano @ 2004-09-24  7:02 UTC (permalink / raw)
  To: netfilter

On Fri, 2004-09-24 at 00:01, www.piratehosting.net wrote:
> ip_conntrack: table full, dropping packet.
> 
> i have been using
> echo "4008192" > /proc/sys/fs/file-max
> echo 4008192 > /proc/sys/net/ipv4/ip_conntrack_max
> to increase the limits to avoid this dropping of packets.
> can i just clear the list from
> /proc/net/ip_conntrack
> or something
> 
> some info
> ip_conntrack_ftp       70576  0
> ip_conntrack_irc       70064  0
> ip_conntrack           24968  4
> iptable_nat,ip_conntrack_ftp,ip_conntrack_irc,ipt_state

how much physical RAM is in this machine and how many simultaneous
connections are you trying to support?

-j

-- 
Jason Opperisano <opie@817west.com>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* ip_conntrack: table full, dropping packet
@ 2004-09-24  8:07 www.piratehosting.net
  2004-09-24 15:19 ` Stephen J Smoogen
  0 siblings, 1 reply; 14+ messages in thread
From: www.piratehosting.net @ 2004-09-24  8:07 UTC (permalink / raw)
  To: netfilter

512mb ram
about 150,000 connections
its a ircd server with 15 clients at 1024 users each.
i have to keep moving it up as the conntrack doesnt empty


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet
  2004-09-24  8:07 www.piratehosting.net
@ 2004-09-24 15:19 ` Stephen J Smoogen
  0 siblings, 0 replies; 14+ messages in thread
From: Stephen J Smoogen @ 2004-09-24 15:19 UTC (permalink / raw)
  To: www.piratehosting.net; +Cc: netfilter

www.piratehosting.net wrote:
> 512mb ram
> about 150,000 connections
> its a ircd server with 15 clients at 1024 users each.
> i have to keep moving it up as the conntrack doesnt empty
> 


Depending on the linux kernel you are using.. this is a 'known' bug. Red 
Hat Linux for the 7,8,9 series has a patch from netfilter experimental 
that does not let go connections. There is also another kernel version 
that seems to have this issue (2.4.18?) but I cant remember which one it 
was. Putting on the latest 2.4.x kernel with a clean netfilter patch 
fixed the problem on our boxes.

-- 
Stephen John Smoogen	        | CCN-5 Security Team
LANL SIRT Team Leader           | SMTP:  smoogen@lanl.gov
Los Alamos National Laboratory  | Voice: 505.664.0645
Ta-03 SM-1498 MS: B255 DP 10S   | FAX:   505.665.7793
Los Alamos, NM 87545            |


^ permalink raw reply	[flat|nested] 14+ messages in thread

* ip_conntrack: table full, dropping packet
@ 2004-09-24 15:55 www.piratehosting.net
  2004-09-26 20:34 ` Jose Maria Lopez
  0 siblings, 1 reply; 14+ messages in thread
From: www.piratehosting.net @ 2004-09-24 15:55 UTC (permalink / raw)
  To: netfilter

can i get a url for the patch.
i have the latest kernal


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet
  2004-09-24 15:55 ip_conntrack: table full, dropping packet www.piratehosting.net
@ 2004-09-26 20:34 ` Jose Maria Lopez
  0 siblings, 0 replies; 14+ messages in thread
From: Jose Maria Lopez @ 2004-09-26 20:34 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

El vie, 24 de 09 de 2004 a las 17:55, www.piratehosting.net escribió:
> can i get a url for the patch.
> i have the latest kernal

Have you tried to change the /proc/sys/net/ipv4/ip_conntrack_max?
It should solve your problem if the table is full.

-- 
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ip_conntrack: table full, dropping packet.
  2004-09-24  4:01 www.piratehosting.net
  2004-09-24  7:02 ` Jason Opperisano
@ 2004-09-26 20:34 ` Jose Maria Lopez
  1 sibling, 0 replies; 14+ messages in thread
From: Jose Maria Lopez @ 2004-09-26 20:34 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

El vie, 24 de 09 de 2004 a las 06:01, www.piratehosting.net escribió:
> ip_conntrack: table full, dropping packet.
> 
> i have been using
> echo "4008192" > /proc/sys/fs/file-max
> echo 4008192 > /proc/sys/net/ipv4/ip_conntrack_max
> to increase the limits to avoid this dropping of packets.
> can i just clear the list from
> /proc/net/ip_conntrack
> or something
> 
> some info
> ip_conntrack_ftp       70576  0
> ip_conntrack_irc       70064  0
> ip_conntrack           24968  4
> iptable_nat,ip_conntrack_ftp,ip_conntrack_irc,ipt_state

Yes, you can clear the list using hping2 and sending RST to
both parts of the connection, but it will close the connections
if you do it that way.

The command would be something like this:

hping2 $DSTIP -R -s $SRCPORT -p $DSTPORT -a $SRCIP -k -c 1 -n
hping2 $SRCIP -R -s $DSTPORT -p $SRCPORT -a $DSTIP -k -c 1 -n

I have a script that does just that in my bastion-firewall
program. I can mail it to you if you want it.

-- 
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-09-26 20:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-24 15:55 ip_conntrack: table full, dropping packet www.piratehosting.net
2004-09-26 20:34 ` Jose Maria Lopez
  -- strict thread matches above, loose matches on Subject: below --
2004-09-24  8:07 www.piratehosting.net
2004-09-24 15:19 ` Stephen J Smoogen
2004-09-24  4:01 www.piratehosting.net
2004-09-24  7:02 ` Jason Opperisano
2004-09-26 20:34 ` Jose Maria Lopez
2003-01-19 21:35 Strange setup Evan Borgstrom
2003-01-19 22:31 ` Peter Johnson
2003-01-20  0:45   ` Evan Borgstrom
2003-01-20  7:50     ` Peter Johnson
2003-01-20 14:49       ` Evan Borgstrom
2003-01-20 15:01         ` ip_conntrack: table full, dropping packet hare ram
2003-01-20 15:13           ` Maciej Soltysiak
2002-10-30 13:43 Vicky Shrestha
2002-10-30 16:28 ` Antony Stone
2002-10-30 16:59 ` Maciej Soltysiak
2002-10-31  6:40   ` Vicky Shrestha
2002-11-01  2:02     ` Jet

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.