FTP Port and Wireshark Filtering


FTP Port and Wireshark Filtering

Anna
Alright, Simon, let's dive into common network protocols and their port numbers. You know how crucial this is for Wireshark analysis, right?

Simon
Absolutely! I remember FTP uses port 21 for control. And it's clear text, so we can see the login and password right in the packet.

Anna
Exactly. When filtering in Wireshark, using the port number like 'tcp.port == 21' shows the TCP handshake and all packets, while just 'ftp' only shows application data. That's a key distinction.

Simon
Good point. And FTP uses a second port for data transfer, usually 20 or a negotiated one. Now SSH on port 22 is encrypted, so we only see the handshake and version info in Wireshark.

Anna
Right, SSH encryption keeps our remote sessions secure. Unlike Telnet on port 23, which sends everything in clear text. In Wireshark, you can follow the TCP stream and see the entire login sequence.

Simon
That's why Telnet is rarely used now. SMTP on port 25 can be unencrypted or use TLS. You can see a clear-text email or an encrypted session, depending on whether STARTTLS is used.

Anna
And don't forget secure SMTP on port 587. Now DNS usually runs over UDP port 53, acting like the internet's phonebook, resolving names to IP addresses.

Simon
DHCP uses UDP ports 67 and 68—server and client. The four-step process: Discover, Offer, Request, Acknowledge. It assigns IP addresses and other settings.

Anna
Then there's TFTP on UDP port 69, a simpler file transfer protocol. It uses a control exchange on port 69 and then data on higher ports.

Simon
HTTP on port 80 is clear text, so we can see GET requests and server responses. But HTTPS on port 443 encrypts everything after the TLS handshake.

Anna
POP3 retrieves emails on port 110 unencrypted, but secure POP3 uses port 995. IMAP is similar—port 143 for unencrypted, 993 for encrypted with TLS.

Simon
NTP on UDP port 123 synchronizes time across devices. And SNMP on UDP port 161 lets us monitor network devices from a central management system.

Anna
LDAP on port 389 handles directory services and authentication. Finally, SMB on port 445 is used for file sharing in Windows environments.

Simon
We've covered a lot! Remember, in Wireshark, changing the time display format to time of day helps when analyzing merged captures from different periods.

Anna
Great summary. Knowing these protocols and ports is essential for network analysis and certification exams. Practice with traces to really cement the concepts.

Ask anything
We've read this whole study set, so questions about it get the best answers.