How can I monitor outbound traffic from my Linode?

Linode Staff

The outbound traffic from my Linode is very high and I would like to know more about the traffic. What commands or logs can I check?

1 Reply

One good way to check the current outbound traffic on your Linode is the following command:
sudo netstat -nputw

If you find that most of the traffic is HTTP, you can find more information by tcpdumping the traffic for a bit.

Step 1: Start dumping the traffic
sudo tcpdump -i any -w /tmp/http.log &

Step 2: Run your application or test your webpage

Step 3: Stop tcpdump
sudo killall tcpdump

Step 4: read the log file
sudo tcpdump -A -r /tmp/http.log | less

You may want to look over Daniel Miessler's tcpdump Primer with Examples for more information on tcpdump and the wealth of options available.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct