Networking Forums

Networking Forums > Computer Networking > Linux Networking > tcp timeouts and ip_conntrack

Reply
Thread Tools Display Modes

tcp timeouts and ip_conntrack

 
 
nsa.usa@gmail.com
Guest
Posts: n/a

 
      04-09-2007, 08:44 AM
Hi,

Can anyone tell me how I can lower the TCP timeout? I think its set to
5 days right now which is rediculous and my ip_conntrack is filling up
due to DoS attack. I increased the ip_conntrack_max, but I dont want
to see 8000 dead connections tracked to the same ip-address for 5
days....!
What is a sensible value? my server is serving a few hundred clients
behind NAT.
It's running stock RH9 (and please don't tell me to just upgrade....
that would be no help at all, thanks!).

Regards,
Tobias

 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      04-09-2007, 06:49 PM
Hello,

(E-Mail Removed) a écrit :
>
> Can anyone tell me how I can lower the TCP timeout? I think its set to
> 5 days right now which is rediculous and my ip_conntrack is filling up
> due to DoS attack.


Check /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout*. In recent
2.6 kernels these parameters may have moved to /proc/sys/net/netfilter/.

> I increased the ip_conntrack_max, but I dont want
> to see 8000 dead connections tracked to the same ip-address for 5
> days....!


You may also consider using the 'connlimit' match from a recent
patch-o-matic-ng in order to limit the number of parallel TCP
connections from a client IP address.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NAT keep alive ip_conntrack Andreas Mueller Linux Networking 0 05-02-2009 01:51 PM
iptables + ip_conntrack (required?) Alan Williamson Linux Networking 1 06-24-2008 02:23 PM
ip_conntrack garbage Jim Garrison Linux Networking 6 01-02-2006 01:32 PM
ip_conntrack not full but dropping Patrick Linux Networking 4 04-19-2005 12:29 AM
bridging fw + ip_conntrack didn't work Marco Mueller Linux Networking 1 07-01-2004 04:14 PM



1 2 3 4 5 6 7 8 9 10 11