Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Capturing Packets With tcpdump

A client called Checkout on the wrong port and failed at once:

Output:

curl: (7) Failed to connect to 10.0.0.2 port 8081 after 10 ms: Couldn't connect to server

The message says that the connection failed, but not why. A firewall that silently drops packets, a server that is down, and a port with no listener can all produce a failed connection. The difference between them exists only in the packets, and in this case there were exactly two: the client's request to connect, and a reset from the server 5 ms later.

This page shows how to record packets with `tcpdump

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content