DEV Community

Cover image for How to Install Wireshark on Windows, Linux, and macOS
Lorenzo Fazioli
Lorenzo Fazioli

Posted on Edited on Originally published at snorty.space

How to Install Wireshark on Windows, Linux, and macOS

Installing Wireshark on Windows

  1. Visit the official Wireshark website.
  2. Download the latest Windows installer.
  3. Run the installer as Administrator.
  4. Install Npcap when prompted (required for packet capture).
  5. Finish the installation and launch Wireshark.

Installing Wireshark on Ubuntu/Debian

Update your system:

sudo apt update
Enter fullscreen mode Exit fullscreen mode

Install Wireshark:

sudo apt install wireshark
Enter fullscreen mode Exit fullscreen mode

Allow non-root users to capture packets:

sudo dpkg-reconfigure wireshark-common
Enter fullscreen mode Exit fullscreen mode

Add your user to the Wireshark group:

sudo usermod -aG wireshark $USER
Enter fullscreen mode Exit fullscreen mode

Log out and log back in.


Installing Wireshark on Fedora

sudo dnf install wireshark
Enter fullscreen mode Exit fullscreen mode

Installing Wireshark on macOS

Install Homebrew if necessary, then run:

brew install --cask wireshark
Enter fullscreen mode Exit fullscreen mode

First Packet Capture

After launching Wireshark:

  1. Select your network interface.
  2. Click Start Capturing Packets.
  3. Browse a website.
  4. Stop the capture.
  5. Analyze the collected traffic.

Useful Display Filters

HTTP traffic:

http
Enter fullscreen mode Exit fullscreen mode

DNS traffic:

dns
Enter fullscreen mode Exit fullscreen mode

TCP only:

tcp
Enter fullscreen mode Exit fullscreen mode

Traffic from one IP:

ip.addr == 192.168.1.100
Enter fullscreen mode Exit fullscreen mode

Conclusion

Wireshark is one of the most powerful networking tools available. Learning how to install and use it is an essential step for anyone interested in networking or cybersecurity.


Originally published by Lorenzo Fazioli at Snorty.

Top comments (0)