All of lore.kernel.org
 help / color / mirror / Atom feed
* conntrack idle timeout
@ 2003-02-26  3:09 Scott Lamb
  2003-02-26  3:42 ` Joel Newkirk
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Lamb @ 2003-02-26  3:09 UTC (permalink / raw)
  To: netfilter

Is there a way to control the time it takes for an idle, established TCP 
session to be purged from conntrack's state tables? I'm looking for the 
something like "ipchains -M -S". I saw at 
<http://www.syrlug.org/contrib/ipmasq.html> that there is no iptables 
equivalent, but I'm hoping it's changed since then. Maybe there's a 
sysctl or something?

The problem I'm experiencing is pretty simple. I leave ssh sessions open 
for a while (possibly several hours). I come back to them and get a 
"Connection reset by peer" error and have to open a new session. Back 
when I used ipchains, "iptables -M -S 86400 10 60" or similar solved the 
problem for me.

Thanks,
Scott Lamb



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

* Re: conntrack idle timeout
  2003-02-26  3:09 conntrack idle timeout Scott Lamb
@ 2003-02-26  3:42 ` Joel Newkirk
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Newkirk @ 2003-02-26  3:42 UTC (permalink / raw)
  To: Scott Lamb, netfilter

On Tuesday 25 February 2003 10:09 pm, Scott Lamb wrote:
> Is there a way to control the time it takes for an idle, established
> TCP session to be purged from conntrack's state tables? I'm looking
> for the something like "ipchains -M -S". I saw at
> <http://www.syrlug.org/contrib/ipmasq.html> that there is no iptables
> equivalent, but I'm hoping it's changed since then. Maybe there's a
> sysctl or something?

/proc/sys/net/ipv4/netfilter/ip_ct_tcp_timeout_established does this, if 
you have tcp-window-tracking from patch-o-matic installed.  However, the 
default timeout apparently is 5 days, so I doubt this is the source of 
the problem.

j

> The problem I'm experiencing is pretty simple. I leave ssh sessions
> open for a while (possibly several hours). I come back to them and get
> a "Connection reset by peer" error and have to open a new session.
> Back when I used ipchains, "iptables -M -S 86400 10 60" or similar
> solved the problem for me.
>
> Thanks,
> Scott Lamb



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

end of thread, other threads:[~2003-02-26  3:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-26  3:09 conntrack idle timeout Scott Lamb
2003-02-26  3:42 ` Joel Newkirk

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.