TCP Flags & Reset Forensics
Cheat sheet · https://pcornel.dk/topic.php?topic=281
Answer
TCP flags mark what a segment is for: SYN opens, ACK acknowledges, FIN closes one direction politely, RST aborts the connection at once.
Remember
A reset in answer to a SYN means nothing listens there — or a firewall rejected. A reset after an idle period is a device that forgot the connection. A reset with a different IP TTL from the server's other packets was sent by something in between. Silent drops give timeouts, not resets.
First checks
tcpdump -ni <if> 'tcp[tcpflags] & (tcp-rst) != 0'— only resets.tcpdump -ni <if> -v host <ip> and tcp port <port>— with TTL and IP ID, to compare a reset with the host's other packets.ss -ltnon the server — a listener on the port?- Wireshark:
tcp.flags.reset == 1, then follow the stream.
Commands
ss -ltn
Verify in this order
SYN answered by SYN-ACK → data exchanged with ACKs → each side sends FIN when done → no RST from either end or from a device between them
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=281