Concepts / TCP connections

TCP connections

TCP reset

Also called RST, connection refused

A TCP packet that aborts a connection; the answer to a SYN for a port with no listener.

A reset is an answer; a drop is silence
A reset is an answer; a drop is silence

With no program on the port, the server answers the SYN with a reset and the client fails at once with connection refused. When a firewall drops the SYN, nothing comes back, so the client retries and then times out.

A TCP reset (RST) is a packet that aborts a connection at once. A machine sends one in answer to a SYN for a port where nothing listens, and the client fails immediately with connection refused. A dropping firewall gives silence and a timeout instead; a rejecting one may forge a reset in the server's name. A reset can also kill an open connection: connection reset by peer.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab