Taking a Wireshark trace on Windows and some useful Filters

Taking a Wireshark trace on Windows and some useful Filters

95
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:04 PM


Objective


Wireshark stands as a robust network protocol analyzer employed by Network Administrators and Cybersecurity Experts. Its capability to capture and scrutinize network traffic equips us with essential insights into the inner workings of our network.

Procedure


Capturing and examining network traffic using Wireshark entails a series of steps. Here is a general guide on how to perform a Wireshark trace:

Install Wireshark:

  1. Download and install Wireshark from the official website: https://www.wireshark.org/download.html.
  2. Follow the installation instructions applicable to your operating system.

Run Wireshark: 3. Open Wireshark on your computer.

Select Network Interface: 4. Choose the network interface through which you intend to capture traffic, such as your Wi-Fi adapter or Ethernet interface.

Start Capturing: 5. Click on the chosen interface and initiate the capture by clicking the "Start" button, usually represented by a shark fin icon. Wireshark will commence capturing network traffic.

Reproduce the Issue (if applicable): 6. If you are capturing traffic to diagnose a specific issue, replicate the problem while Wireshark is actively running.

Stop Capturing: 7. Halt the capture process after collecting the necessary data by clicking the "Stop" button, typically denoted by a red square icon.

Save the Capture: 8. Save the capture file, usually with a .pcap or .cap extension, for subsequent analysis.

Analyze the Capture: 9. Review the captured packets to identify issues, anomalies, or specific information pertinent to your objective.

Close Wireshark: 10. Once you have captured and analyzed the required data, close the Wireshark application.

It's important to note that capturing network traffic involves privacy and legal considerations. Ensure that you possess the necessary permissions and comply with relevant regulations before initiating the capture and analysis of network data.


Here are some useful filters that can be used in many day to day troubleshooting scenarios.

Filter packets based on specific conversations between hosts.
Example: ip.src == 192.168.1.1 and ip.dst == 192.168.1.2 filtersĀ 

Filter packets based on source or destination IP addresses.
Example: ip.addr == 192.168.1.1 filters packets where either the source or destination IP address is 192.168.1.1.

You can filter packets based on specific protocols using filters like tcp, udp, icmp, etc.
Example: tcp.port == 443 filters packets using the TCP protocol on port 443.

Display filtersĀ 
Example: To display only HTTP traffic, you can use the display filter http .


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001IFrCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail