* [patch] tcp.7: Clarify tcp_tw_recycle on Internet-facing hosts
@ 2014-11-23 16:28 Troy Davis
[not found] ` <CALQAp37_DD-sy480u7QfC68GaaNK1yqb23vdEyNwJMK91PmD-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Troy Davis @ 2014-11-23 16:28 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Clarify that tcp_tw_recycle will break communication with many
general-purpose remote Internet hosts (namely, remote NAT devices)
even when the Linux device itself is not behind NAT.
Sources:
- BCP to make NAT implementors aware of this problem (2013):
https://tools.ietf.org/html/draft-penno-behave-rfc4787-5382-5508-bis-04#section-3.1.2
- RFC 1323 (PAWS)
- RFC 6191: Reducing the TIME-WAIT State Using TCP Timestamps
- The many users who unknowingly enabled this option on devices
communicating with the general-purpose Internet:
https://www.google.com/search?q=tcp_tw_recycle%20ip%20nat%20timestamp
Patched against git HEAD as of this email
(ac5ba355d52a5a29f2d26badc96e6da9e48c0097).
diff --git a/man7/tcp.7 b/man7/tcp.7
index e6f5aee..06cc127 100644
--- a/man7/tcp.7
+++ b/man7/tcp.7
@@ -780,10 +780,11 @@ building larger TSO frames.
.TP
.IR tcp_tw_recycle " (Boolean; default: disabled; since Linux 2.4)"
.\" Since 2.3.15
-Enable fast recycling of TIME_WAIT sockets.
-Enabling this option is not
-recommended since this causes problems when working
-with NAT (Network Address Translation).
+Enable fast recycling of TIME_WAIT sockets. Enabling this option is
+not recommended for devices communicating with the general Internet
+or using NAT (Network Address Translation). Since some NAT gateways
+pass through IP timestamp values, one IP can appear to have
+non-increasing timestamps. See RFC 1323 (PAWS), RFC 6191.
.\"
.\" The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
.TP
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] tcp.7: Clarify tcp_tw_recycle on Internet-facing hosts
[not found] ` <CALQAp37_DD-sy480u7QfC68GaaNK1yqb23vdEyNwJMK91PmD-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-01-07 7:49 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-01-07 7:49 UTC (permalink / raw)
To: Troy Davis
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
On 11/23/2014 05:28 PM, Troy Davis wrote:
> Clarify that tcp_tw_recycle will break communication with many
> general-purpose remote Internet hosts (namely, remote NAT devices)
> even when the Linux device itself is not behind NAT.
>
> Sources:
> - BCP to make NAT implementors aware of this problem (2013):
> https://tools.ietf.org/html/draft-penno-behave-rfc4787-5382-5508-bis-04#section-3.1.2
> - RFC 1323 (PAWS)
> - RFC 6191: Reducing the TIME-WAIT State Using TCP Timestamps
> - The many users who unknowingly enabled this option on devices
> communicating with the general-purpose Internet:
> https://www.google.com/search?q=tcp_tw_recycle%20ip%20nat%20timestamp
>
> Patched against git HEAD as of this email
> (ac5ba355d52a5a29f2d26badc96e6da9e48c0097).
>
>
> diff --git a/man7/tcp.7 b/man7/tcp.7
> index e6f5aee..06cc127 100644
> --- a/man7/tcp.7
> +++ b/man7/tcp.7
> @@ -780,10 +780,11 @@ building larger TSO frames.
> .TP
> .IR tcp_tw_recycle " (Boolean; default: disabled; since Linux 2.4)"
> .\" Since 2.3.15
> -Enable fast recycling of TIME_WAIT sockets.
> -Enabling this option is not
> -recommended since this causes problems when working
> -with NAT (Network Address Translation).
> +Enable fast recycling of TIME_WAIT sockets. Enabling this option is
> +not recommended for devices communicating with the general Internet
> +or using NAT (Network Address Translation). Since some NAT gateways
> +pass through IP timestamp values, one IP can appear to have
> +non-increasing timestamps. See RFC 1323 (PAWS), RFC 6191.
> .\"
> .\" The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
> .TP
Hello Troy,
The patch is well described, so I'm just going to take your word on all
of the above. Applied.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-07 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-23 16:28 [patch] tcp.7: Clarify tcp_tw_recycle on Internet-facing hosts Troy Davis
[not found] ` <CALQAp37_DD-sy480u7QfC68GaaNK1yqb23vdEyNwJMK91PmD-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-07 7:49 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).