Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Linux 中使用原始套接字发送 SYN 数据包。响应(SYN+ACK)正在被操作系统拦截,并以 RST 响应。我想阻止操作系统拦截这个数据包,让它由我的应用程序处理。我怎样才能做到这一点?
您可以在 IPtables 中制定规则来过滤传出的 RST 数据包。
iptables -A OUTPUT -p tcp --tcp-flags RST RST -j DROP
以后别忘了禁用它!玩得开心。