Wireshark is a free and open-source packet analyzer. It is used for network troubleshooting, analysis, software and communications protocol development, and education. Originally named Ethereal, in May 2006 the project was renamed Wireshark due to trademark issues.
Thepackage has been split into the CLI version and GTK frontend, which depends on the CLI.
Capturing as normal user
- Add yourself to the wireshark group
# gpasswd -a "username" wireshark
- Log out and log in
A few capturing techniques
There are a number of different ways to capture exactly what you are looking for in Wireshark, by applying filters.
Filtering TCP packets
If you want to see all the current TCP packets, type
tcp into the "Filter" bar.
Filtering UDP packets
If you want to see all the current UDP packets, type
udp into the "Filter" bar.
Filter packets to a specific IP Address
- If you would like to see all the traffic going to a specific address, enter
ip.dst == 188.8.131.52, replacing
184.108.40.206with the IP address the outgoing traffic is being sent to.
- If you would like to see all the incoming traffic for a specific address, enter
ip.src == 220.127.116.11, replacing
18.104.22.168with the IP address the incoming traffic is being sent to.