Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I filter SQL Server traffic between app and DB servers using Wireshark?

I'm trying to identify the source of some ill-timed connection resets. I'm trying to use Wireshark to capture the traffic that goes between the application server and database server. How do I set up a filter for this in Wireshark?

like image 393
scott8035 Avatar asked Apr 01 '10 18:04

scott8035


People also ask

How does Wireshark filter traffic?

To only display packets containing a particular protocol, type the protocol name in the display filter toolbar of the Wireshark window and press enter to apply the filter.

Which clause of SQL query can be used to filter?

HAVING CLAUSE When there is a need for filtering in SQL, the result of a query, we use a where clause along with it.

Which of the record is used for the filtering in SQL?

Explanation: Filtering records is done with the WHERE clause. It's used to retrieve only the records that meet a set of criteria. In SQL, the WHERE clause specifies that a SQL Data Manipulation Language (DML) statement should only affect rows that fulfill certain criteria.


1 Answers

Wireshark has display filters and capture filters. The capture filter captures only certain packets, resulting in a small capture file. Capture filters are set in Capture Options (ctrl-K). An example to capture SQL Server traffic would be:

host <sql-server-ip> and port <sql-server-port>

A display filter is set in the toolbar. A display filter does not reduce the size of the capture. You can change a display filter while the capture is running. An example display filter:

 ip.addr == <sql-server-ip> && tcp.port == <sql-server-port>

The default SQL Server port is 1433.

like image 166
Andomar Avatar answered Sep 30 '22 19:09

Andomar