https://v2ex.com/t/921220
未实验
Content generated by AI
#!/usr/sbin/nft -f
# 清空所有规则
flush ruleset
# 定义表
add table ip filter
# 定义链
add chain ip filter OUTPUT { type filter hook output priority 0; policy accept; }
# 添加规则修改 SYN+ACK 报文的窗口大小
add rule ip filter OUTPUT \
tcp flags & (syn|ack) == (syn|ack) \
tcp option window set 8192 \
comment "Modify TCP window size for SYN+ACK packets"