Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Use tcpdump on Linux

tcpdump is the Linux network scalpel: watch packets live or save a pcap for Wireshark.

Steps

  1. Install tcpdump:

    sudo apt update
    sudo apt install -y tcpdump
  2. List interfaces and capture on one of them:

    ip -br a
    sudo tcpdump -i eth0 - 
  3. Useful filters:

    sudo tcpdump -i eth0 -  port 80
    sudo tcpdump -i eth0 -  host 203.0.113.10
    sudo tcpdump -i eth0 -  'tcp port 443 and host yourdomain.com'
  4. Write to a file and stop with Ctrl+C:

    sudo tcpdump -i eth0 -  -w /tmp/capture.pcap port 22

Tips

  • Do not leave long captures on production hosts — they fill disks and may hold sensitive data.
  • Use -c 100 to limit packets for quick tests.

ext step

Inspect traffic on your own node: Deploy your Cloud VPS.

Related guides