1 minute read

DNS, TCP, and Filters! Things are coming together!

Highlights

  • Added Filters for Ports, IP addresses, and Protocols
  • Added TCP and DNS Views

The Long Story

For my Network Packet Analyzer project, I added views to analyze TCP and DNS traffic on the Streamlit dashboard and the ability to filter by protocol, IP address, and port. The filters have lists generated by the packets captured in descending order of frequency. This part of the project helped me dive into DNS and TCP protocols in a way that reading a textbook wouldn’t cover, and there’s still more for me to learn! For example, I didn’t realize how many different types of DNS queries existed beyond IPv4 (A), IPv6 (AAAA), mail exchange (MX), and name server (NS) queries. Just look at the chart.

DNS Query Dashboard

PTR is a DNS pointer. It is used for reverse DNS lookup, so instead of starting with a domain name, like colorado.edu, it starts with the IP address.

This is from Cloudflare:

“While DNS A records are stored under the given domain name, DNS PTR records are stored under the IP address — reversed, and with “.in-addr.arpa” added. For example, the PTR record for the IP address 192.0.2.255 would be stored under “255.2.0.192.in-addr.arpa”.”

In the Ultimate Capture File, a capture file I found online, shows the number of TCP connections, including handshakes and the result of the connection (closed, reset, or still open) by the end of the capture.

TCP Connections Dashboard

This week will be a heavy testing week. I’ll be generating traffic to see if my expectation matches what was captured. I predict there’s going to be a few bugs to sort out. I also need to check over places in the code that have been hard-coded for my machine and need to be fixed for a more universal user experience. I think the window has closed for using Dash to build my dashboard has closed, for now. I may revisit it after this semester so I can fix and improve the analyer’s functionality.

I’m not feeling anything is blocking my path forward and, at the moment, feel generally good about where my project is heading. But I feel like I could improve on building test cases as I develop code. I fear I might be undertesting, but next week will help to address that for this project, and I’ve learned my lesson moving forward.