* Connection tracking counters increasing
@ 2013-03-07 16:13 Daniel L. Miller
2013-03-07 16:29 ` Jan Engelhardt
0 siblings, 1 reply; 10+ messages in thread
From: Daniel L. Miller @ 2013-03-07 16:13 UTC (permalink / raw)
To: Netfilter-Users
Sorry if this is answered elsewhere - my initial googling didn't show me.
I have an Ubuntu Precise server that is using iptables. I've noticed
that my connection tracking counters keep increasing - and will do so
until failure. I've tried a few different timeout settings to see if
that fixes it - but so far nothing helps except increasing the maximums
and then rebooting prior to failure.
I'm assuming I'm doing something wrong - but I don't even know where to
look. The only things that helps is NOT using iptables - which isn't a
good answer!
--
Daniel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Connection tracking counters increasing
2013-03-07 16:13 Connection tracking counters increasing Daniel L. Miller
@ 2013-03-07 16:29 ` Jan Engelhardt
2013-03-07 17:07 ` Daniel L. Miller
0 siblings, 1 reply; 10+ messages in thread
From: Jan Engelhardt @ 2013-03-07 16:29 UTC (permalink / raw)
To: Daniel L. Miller; +Cc: Netfilter-Users
On Thursday 2013-03-07 17:13, Daniel L. Miller wrote:
> I've noticed that my connection tracking counters keep increasing -
Which counters?
> and will do so until failure.
> I've tried a few different timeout settings to see if that fixes it - but so
> far nothing helps except increasing the maximums and then rebooting prior to
> failure.
>
> I'm assuming I'm doing something wrong - but I don't even know where to look.
> The only things that helps is NOT using iptables - which isn't a good answer!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Connection tracking counters increasing
2013-03-07 16:29 ` Jan Engelhardt
@ 2013-03-07 17:07 ` Daniel L. Miller
2013-03-07 17:16 ` Jan Engelhardt
2013-03-08 9:08 ` Xiong Wu
0 siblings, 2 replies; 10+ messages in thread
From: Daniel L. Miller @ 2013-03-07 17:07 UTC (permalink / raw)
To: Netfilter-Users
On 3/7/2013 8:29 AM, Jan Engelhardt wrote:
> On Thursday 2013-03-07 17:13, Daniel L. Miller wrote:
>
>> I've noticed that my connection tracking counters keep increasing -
> Which counters?
>
/proc/sys/net/netfilter/nf_conntrack_count
and when it reaches /proc/sys/net/netfilter/nf_conntrack_max things break.
--
Daniel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Connection tracking counters increasing
2013-03-07 17:07 ` Daniel L. Miller
@ 2013-03-07 17:16 ` Jan Engelhardt
2013-03-07 17:21 ` Daniel L. Miller
[not found] ` <5138CCB6.3050705@amfes.com>
2013-03-08 9:08 ` Xiong Wu
1 sibling, 2 replies; 10+ messages in thread
From: Jan Engelhardt @ 2013-03-07 17:16 UTC (permalink / raw)
To: Daniel L. Miller; +Cc: Netfilter-Users
On Thursday 2013-03-07 18:07, Daniel L. Miller wrote:
> On 3/7/2013 8:29 AM, Jan Engelhardt wrote:
>> On Thursday 2013-03-07 17:13, Daniel L. Miller wrote:
>>
>>> I've noticed that my connection tracking counters keep increasing -
>> Which counters?
>>
> /proc/sys/net/netfilter/nf_conntrack_count
>
> and when it reaches /proc/sys/net/netfilter/nf_conntrack_max things break.
Could it be you are being DDoSed?
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Connection tracking counters increasing
2013-03-07 17:16 ` Jan Engelhardt
@ 2013-03-07 17:21 ` Daniel L. Miller
2013-03-07 17:44 ` Jan Engelhardt
[not found] ` <5138CCB6.3050705@amfes.com>
1 sibling, 1 reply; 10+ messages in thread
From: Daniel L. Miller @ 2013-03-07 17:21 UTC (permalink / raw)
To: Netfilter-Users
On 3/7/2013 9:16 AM, Jan Engelhardt wrote:
> On Thursday 2013-03-07 18:07, Daniel L. Miller wrote:
>
>> On 3/7/2013 8:29 AM, Jan Engelhardt wrote:
>>> On Thursday 2013-03-07 17:13, Daniel L. Miller wrote:
>>>
>>>> I've noticed that my connection tracking counters keep increasing -
>>> Which counters?
>>>
>> /proc/sys/net/netfilter/nf_conntrack_count
>>
>> and when it reaches /proc/sys/net/netfilter/nf_conntrack_max things break.
> Could it be you are being DDoSed?
Anything's possible - but I don't have a high-visibility site. The
connection counter increments gradually - a new connection every couple
of seconds or so.
Trying to understand what's going on, I installed the "conntrack" tool.
conntrack -S yields:
entries 28752
searched 27822
found 11950927
new 457431
invalid 333
ignore 347677
delete 465404
delete_list 428962
insert 414575
insert_failed 0
drop 0
early_drop 0
icmp_error 0
expect_new 0
expect_create 0
expect_delete 0
search_restart 0
But more confusing is conntrack -L only shows 52 entries.
--
Daniel
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Connection tracking counters increasing
2013-03-07 17:21 ` Daniel L. Miller
@ 2013-03-07 17:44 ` Jan Engelhardt
0 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2013-03-07 17:44 UTC (permalink / raw)
To: Daniel L. Miller; +Cc: Netfilter-Users, Pablo Neira Ayuso
On Thursday 2013-03-07 18:21, Daniel L. Miller wrote:
>>>
>>> I've noticed that my connection tracking counters keep increasing -
>>> /proc/sys/net/netfilter/nf_conntrack_count
>>> and when it reaches /proc/sys/net/netfilter/nf_conntrack_max things break.
>>
>> Could it be you are being DDoSed?
>
> Anything's possible - but I don't have a high-visibility site. The connection
> counter increments gradually - a new connection every couple of seconds or so.
>
> Trying to understand what's going on, I installed the "conntrack" tool.
> conntrack -S yields:
> entries 28752
> searched 27822
> found 11950927
> new 457431
> invalid 333
> ignore 347677
> delete 465404
> delete_list 428962
> insert 414575
> insert_failed 0
> drop 0
> early_drop 0
> icmp_error 0
> expect_new 0
> expect_create 0
> expect_delete 0
> search_restart 0
>
> But more confusing is conntrack -L only shows 52 entries.
You need to count in entries from different conntrack tables
too. I see something similar, however:
18:42 ares07:/home/jengelh # conntrack -L >/dev/null; conntrack -L expect
>/dev/null; cat /proc/sys/net/netfilter/nf_conntrack_count
conntrack v1.4.0 (conntrack-tools): 32 flow entries have been shown.
conntrack v1.4.0 (conntrack-tools): 0 expectations have been shown.
43
18:42 ares07:/home/jengelh # conntrack -L >/dev/null; conntrack -L expect
>/dev/null; cat /proc/sys/net/netfilter/nf_conntrack_count
conntrack v1.4.0 (conntrack-tools): 31 flow entries have been shown.
conntrack v1.4.0 (conntrack-tools): 0 expectations have been shown.
42
That might be connections in state DYING, but perhaps Pablo has an idea
what could be going on w.r.t. different numbers.
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <5138CCB6.3050705@amfes.com>]
* Re: Connection tracking counters increasing
2013-03-07 17:07 ` Daniel L. Miller
2013-03-07 17:16 ` Jan Engelhardt
@ 2013-03-08 9:08 ` Xiong Wu
2013-03-08 12:19 ` Daniel L. Miller
[not found] ` <5139D769.8040606@amfes.com>
1 sibling, 2 replies; 10+ messages in thread
From: Xiong Wu @ 2013-03-08 9:08 UTC (permalink / raw)
To: Daniel L. Miller; +Cc: Netfilter-Users
Hi Daniel,
Do you try to turn off nf_conntrack_tcp_loose as below:
echo 0 > /proc/sys/net/netfilter/nf_conntrack_tcp_loose
Thanks,
Xiong
On Thu, 2013-03-07 at 09:07 -0800, Daniel L. Miller wrote:
> On 3/7/2013 8:29 AM, Jan Engelhardt wrote:
> > On Thursday 2013-03-07 17:13, Daniel L. Miller wrote:
> >
> >> I've noticed that my connection tracking counters keep increasing -
> > Which counters?
> >
> /proc/sys/net/netfilter/nf_conntrack_count
>
> and when it reaches /proc/sys/net/netfilter/nf_conntrack_max things break.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-03-08 17:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 16:13 Connection tracking counters increasing Daniel L. Miller
2013-03-07 16:29 ` Jan Engelhardt
2013-03-07 17:07 ` Daniel L. Miller
2013-03-07 17:16 ` Jan Engelhardt
2013-03-07 17:21 ` Daniel L. Miller
2013-03-07 17:44 ` Jan Engelhardt
[not found] ` <5138CCB6.3050705@amfes.com>
[not found] ` <9C84D171-3207-4A02-81BC-9652F50A254B@alex.org.uk>
2013-03-07 18:22 ` Daniel L. Miller
2013-03-08 9:08 ` Xiong Wu
2013-03-08 12:19 ` Daniel L. Miller
[not found] ` <5139D769.8040606@amfes.com>
[not found] ` <17135FC4-FCB8-4E44-843E-3AF0E80C8400@alex.org.uk>
2013-03-08 17:42 ` Daniel L. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox