On Sunday, 2013-10-27 at 09:23:34 -0400, Stefan Monnier wrote:
> Every time my home router (running Attitude Adjustment) gets a new IP
> address from its pppoe connection, all existing NAT'ed TCP connections
> from my computers inevitably become instantly "obsolete".  Yet, those
> computers aren't told about it, so those TCP connections don't
> immediately die, instead they freeze and only get some kind of timeout
> after a very long time (2h, maybe?).
 That's the default TCP Keepalive time, i.e. the time between TCP checks
 if the other side is still there on idle connections.

> Is there some way to make it so that when the WAN gets a new IP address,
> all outstanding TCP connections that rely on the old IP address get an
> RST packet?  After all, keeping those connections alive would only make
> sense if there was some hope to re-obtain the previous IP address
> "soonish", which is rather unlikely.

AFAIK, there is nothing you can do in OpenWRT. You will have to lower
the keepalive timeout. Look at openWRT's /etc/sysctl.conf for an example
how to set this permanently. To set it in the running kernel, do this:
sysctl net.ipv4.tcp_keepalive_time=120.

HTH,
Lupe Christoph
-- 
| It is a well-known fact in any organisation that, if you want a job    |
| done, you should give it to someone who is already very busy.          |
| Terry Pratchett, "Unseen Academicals"                                  |
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to