WIFIHELL - 科技改变生活

 找回密码
 注册WIFIHELL

QQ登录

只需一步,快速开始

开启左侧

[ASUS通用] iptables clamp-mss-to-pmtu

[复制链接]
222ba 发表于 2018-1-5 16:14:56 | 显示全部楼层 |阅读模式

注册WIFIHELL,浏览更多技术贴!

您需要 登录 才可以下载或查看,没有账号?注册WIFIHELL

x
Hi,

I'm on ADSL and  !important]Netalyzr claims I can't send fragmented UDP traffic, that is, until I move the clamp-mss-to-pmtu rule to the mangle table.

I have the following firewall-start script which fixes the problem:

  1. #!/bin/sh
  2. iptables -D FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
  3. iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS -o ppp0 --clamp-mss-to-pmtu
复制代码



OpenWRT decided to move the rule to the mangle table. There are a few OpenWRT discussions about this. Now, putting the rule in FORWARD or POSTROUTING seems to be a great debate, but in my case, fixed some things.

https://lists.openwrt.org/piperm ... ebruary/014129.html

Netalyzr is also claiming that ICMP too big packets are blocked, which could explain why the fix is necessary to start with. Is there a ICMP blocking rule on Asuswrt or (most probably) my ISP is blocking them?
WIFIHELL | 万丰乐活 2020开启新的征程,好货不断!
关闭

站点推荐上一条 /1 下一条

万丰乐活

GMT+8, 2024-4-28 03:41

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表