iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o pppoe0 -j TCPMSS --clamp-mss-to-pmtu\r\n\r\nip6tables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o pppoe0 -j TCPMSS --clamp-mss-to-pmtu<\/pre>\n\u624b\u52a8\u6307\u5b9aMSS\uff0c\u5047\u8bbePPPOE\u865a\u63a5\u53e3\u662fpppoe0<\/p>\n
$ iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o pppoe0 -j TCPMSS --set-mss 1452\r\n\r\n$ ip6tables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o pppoe0 -j TCPMSS --set-mss 1432<\/pre>\nRouterOS\u91cc\u8bbe\u7f6eMSS\u7684\u547d\u4ee4\u3002\u5176\u4e2dpppoe-out1\u662fwan\u53e3\uff0c1420\u662f\u8981MSS\u503c\uff0c\u8bf7\u6839\u636e\u9700\u8981\u4fee\u6539\u3002<\/p>\n
\/ipv6 firewall mangle add chain=forward out-interface=pppoe-out1 protocol=tcp tcp-flags=syn action=change-mss new-mss=1420<\/pre>\nUBNT Edgerouter \u7cfb\u5217\u7684MSS\u8bbe\u7f6e\u65b9\u6cd5\uff1a<\/p>\n
set firewall options mss-clamp6 interface-type pppoe\r\n\r\nset firewall options mss-clamp6 mss 1420<\/pre>\n","protected":false},"excerpt":{"rendered":"\u6709\u4e9b\u7528\u6237\u9047\u5230\u5149\u732b\u6216\u8005\u8def\u7531\u5668\u5f00\u542fipv6\u540e\uff0c\u53d1\u73b0\u7535\u8111\u624b\u673a\u624b\u673a\u65e0\u7ebf\u8fde\u63a5wifi\u4e0a\u7f51\u6162\uff0c\u6709\u65f6\u5019\u7f51\u9875\u90fd\u6253\u4e0d\u5f00\u4e86\uff0c\u6bd4\u5982\u4eca\u65e5\u5934\u6761\u3001\u4e91\u95ea\u4ed8\u3001\u4eac\u4e1c\u91d1\u878d\u7684\u90e8\u5206\u9875\u9762\u6162\u5f97\u50cf\u4e4c\u9f9f\u722c\uff0c\u4e91\u95ea\u4ed8\u7b7e\u5230\u9875\u9762\u76f4\u63a5\u6253\u4e0d\u2026<\/p>\n","protected":false},"author":13995,"featured_media":7342,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1459],"tags":[5217,5218,5219,5216],"attr":[],"class_list":{"0":"post-12521","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-modem","8":"tag-ipv6","12":"entry"},"views":5511,"_links":{"self":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts\/12521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/users\/13995"}],"replies":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/comments?post=12521"}],"version-history":[{"count":0,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts\/12521\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/media\/7342"}],"wp:attachment":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/media?parent=12521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/categories?post=12521"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/tags?post=12521"},{"taxonomy":"attr","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/attr?post=12521"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}