Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sockets hping send SYN:如何在收到SYN/ACK后不发送RST?_Sockets_Tcp_Hping - Fatal编程技术网

Sockets hping send SYN:如何在收到SYN/ACK后不发送RST?

Sockets hping send SYN:如何在收到SYN/ACK后不发送RST?,sockets,tcp,hping,Sockets,Tcp,Hping,使用hping,我发送SYN数据包,第二个对等方监听并用SYN/ACK回复,但hping(我猜是linux内核)在收到SYN/ACK后发送RST 在收到SYN/ACK后,是否可以停止我的机器发送RST 谢谢。此命令应删除您的机器将发送到特定目标的带有RST标志设置的任何TCP数据包: iptables -I OUTPUT 1 -d <destination> -p tcp --tcp-flags RST RST -j DROP 要将其还原,请使用: iptables -D OUTP

使用hping,我发送SYN数据包,第二个对等方监听并用SYN/ACK回复,但hping(我猜是linux内核)在收到SYN/ACK后发送RST

在收到SYN/ACK后,是否可以停止我的机器发送RST


谢谢。

此命令应删除您的机器将发送到特定目标的带有
RST
标志设置的任何TCP数据包:

iptables -I OUTPUT 1 -d <destination> -p tcp --tcp-flags RST RST -j DROP
要将其还原,请使用:

iptables -D OUTPUT -d <destination> -p tcp --tcp-flags RST RST -j DROP
iptables -D INPUT -s <source> -p tcp --tcp-flags SYN,ACK SYN,ACK -j DROP
iptables-D INPUT-s-ptcp--tcp标志SYN、ACK SYN、ACK-j DROP

适用于我的
hping3-S-p22

iptables -D INPUT -s <source> -p tcp --tcp-flags SYN,ACK SYN,ACK -j DROP