blob: 675fc5ede0d2c6ea6429db9d72c46a4fecf3ded6 [file] [log] [blame]
Henrik Nordstromc2794132004-01-22 15:04:24 +00001This target allows to alter the MSS value of TCP SYN packets, to control
2the maximum size for that connection (usually limiting it to your
Jan Engelhardte24815d2008-02-14 03:02:55 +01003outgoing interface's MTU minus 40 for IPv4 or 60 for IPv6, respectively).
4Of course, it can only be used
Henrik Nordstromc2794132004-01-22 15:04:24 +00005in conjunction with
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01006\fB\-p tcp\fP.
Patrick McHardydbbcf272005-12-05 01:22:50 +00007It is only valid in the
8.BR mangle
9table.
Henrik Nordstromc2794132004-01-22 15:04:24 +000010.br
11This target is used to overcome criminally braindead ISPs or servers
Jan Engelhardte24815d2008-02-14 03:02:55 +010012which block "ICMP Fragmentation Needed" or "ICMPv6 Packet Too Big"
13packets. The symptoms of this
Henrik Nordstromc2794132004-01-22 15:04:24 +000014problem are that everything works fine from your Linux
15firewall/router, but machines behind it can never exchange large
16packets:
17.PD 0
18.RS 0.1i
19.TP 0.3i
201)
21Web browsers connect, then hang with no data received.
22.TP
232)
24Small mail works fine, but large emails hang.
25.TP
263)
27ssh works fine, but scp hangs after initial handshaking.
28.RE
29.PD
30Workaround: activate this option and add a rule to your firewall
31configuration like:
32.nf
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010033 iptables \-t mangle \-A FORWARD \-p tcp \-\-tcp\-flags SYN,RST SYN \\
34 \-j TCPMSS \-\-clamp\-mss\-to\-pmtu
Henrik Nordstromc2794132004-01-22 15:04:24 +000035.fi
36.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010037\fB\-\-set\-mss\fP \fIvalue\fP
Henrik Nordstromc2794132004-01-22 15:04:24 +000038Explicitly set MSS option to specified value.
39.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010040\fB\-\-clamp\-mss\-to\-pmtu\fP
41Automatically clamp MSS value to (path_MTU \- 40 for IPv4; \-60 for IPv6).
Jan Engelhardtaeafdb82008-08-12 11:42:04 +020042.PP
Henrik Nordstromc2794132004-01-22 15:04:24 +000043These options are mutually exclusive.