This is what happened:
client - send syn
server - send icmp (unreachable host [i also try to add code =10] ) wait for 100 ms send syn-ack
client - send ack in response to the syn-ack.
Dosnt the client should reset the tcp handshake ,when icmp of unreachable host was sent? Is there any way to cause the client to reset the connection by sending some kind of ICMP?
The test was done on 2 Ubunto machine connected directly. In wireshark i see that icmp was revived before syn-ack and the connection was not reset. The client run telnet (on port 80) to server. In server run apache. I simulate the icmp before the synack by using python scapy.
Thank you