Common Wireshark filter commands

Source: Internet
Author: User

We use Wireshark to capture packets, but we do not know how to analyze these packets. We cannot extract the data we need from a large number of packages. The following describes the wireshark filtering rules.

  1. Filter source IP addresses and destination IP addresses. In the filter rule box of Wireshark, enter the filter conditions. For example, find the package whose destination address is 192.168.101.8, IP. dst = 192.168.101.8, and IP. src = 1.1.1.1;

  2. Port filtering. For example, if port 80 is filtered, enter TCP. Port = 80 in the filter. This rule filters out both the source port and target port 80. Use TCP. dstport = 80 to filter packets whose destination port is 80 and TCP. srcport = 80 to filter packets whose source port is 80;

  3. Protocol filtering is relatively simple. You can directly enter the protocol name in the filter box, such as filtering the HTTP protocol;

  4. Http mode filtering. Such as filtering get packets, HTTP. Request. Method = "get", filtering post packets, HTTP. Request. Method = "Post ";

  5. The use of the connector and. When filtering two conditions, use and connection. For example, if the IP address is 192.168.101.8 and the IP address is HTTP, IP. src = 192.168.101.8 and HTTP.

Common Wireshark filter commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.