修改 SYN+ACK 报文的窗口大小过移动墙

十一月 18, 2024 / 3ku / 5阅读 / 0评论

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"

文章作者:3ku

文章链接:http://nanodesu.net/archives/53

版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 4.0 许可协议,转载请注明出处!


评论