CompTIA Network+ & Security+ Port Numbers Cheat Sheet (2026 Reference)
Complete searchable TCP/UDP port numbers sheet covering SSH, DNS, DHCP, NTP, LDAPS, SNMPv3, Syslog, RADIUS, TACACS+, and SMB with exam security notes.
Exam Code: N10-009 / SY0-701 | Track: Networking & Infrastructure | Recommended Course: CompTIA Network+ (N10-009) Live Bootcamp
Core Infrastructure, Remote Access & File Transfer Ports
Must-memorize TCP/UDP port numbers tested heavily on CompTIA Network+ (N10-009) and Security+ (SY0-701).
| Port & Transport | Protocol | Security Status | Exam Tip / Architecture Note |
|---|---|---|---|
20 / 21 (TCP) | FTP (Data / Control) | Unencrypted | Legacy cleartext file transfer; replace with SFTP (22) or FTPS (990) |
22 (TCP) | SSH / SCP / SFTP | Encrypted (Asymmetric + AES) | Key-based auth beats passwords; blocks sniffing vs Telnet/FTP |
23 (TCP) | Telnet | Cleartext (Legacy) | Never use in production; switch remote CLI to SSH port 22 |
53 (UDP / TCP) | DNS | Cleartext (UDP) · DoT 853 | UDP 53 for standard lookups; TCP 53 for Zone Transfers (AXFR) & large replies |
67 / 68 (UDP) | DHCP | Unauthenticated Broadcast | Port 67 Server / Port 68 Client (DORA handshake); mitigate rogues via DHCP Snooping |
69 (UDP) | TFTP | Unencrypted | Minimal overhead; PXE boot images and router config staging |
80 / 443 (TCP) | HTTP / HTTPS (TLS) | HTTPS Encrypted (443) | QUIC/HTTP3 adds UDP 443; enforce HSTS + TLS 1.3 |
123 (UDP) | NTP | Authenticated optional (NTS) | Prevents Kerberos clock-skew failures and keeps SIEM logs correlated |
161 / 162 (UDP) | SNMP / SNMP Trap | SNMPv3 authPriv Encrypted | 161 Manager polling; 162 Agent asynchronous trap alerts |
445 (TCP) | SMB / CIFS | SMB 3.x Signed/Encrypted | Windows file sharing; primary ransomware lateral-movement vector (block at WAN) |
3389 (TCP / UDP) | RDP | TLS / NLA Protected | Never expose directly to WAN; restrict behind Azure Bastion / VPN + MFA |
Identity, Directory, Email & SIEM Logging Ports
Enterprise Active Directory, encrypted messaging, and security telemetry ports.
| Port & Transport | Protocol | Security Mode | Key Operational Detail |
|---|---|---|---|
25 (TCP) | SMTP | Opportunistic TLS | Server-to-server mail relay; 587 for authenticated client submission |
88 (TCP / UDP) | Kerberos | Ticket-based (AES) | Active Directory SSO authentication; sensitive to NTP drift >5 mins |
143 / 993 (TCP) | IMAP / IMAPS | TLS on TCP 993 | Synchronizes mail folders across multiple devices securely on 993 |
389 / 636 (TCP) | LDAP / LDAPS | TLS on TCP 636 | 636 prevents plaintext Active Directory bind credential exposure |
514 (UDP) / 6514 (TCP) | Syslog / Secure Syslog | TLS on TCP 6514 | Forwards firewall, switch, and Linux host logs to enterprise SIEM |
1812 / 1813 (UDP) | RADIUS Auth / Acct | Shared Secret / RadSec | UDP-based 802.1X wireless & VPN AAA; TACACS+ uses TCP 49 |
49 (TCP) | TACACS+ | Full Payload Encrypted | Cisco/network device CLI AAA separating Auth, Authz, and Accounting |
Frequently Asked Questions
Why do both CompTIA Network+ and Security+ test unencrypted vs encrypted port pairs?
Performance-based questions frequently ask you to harden firewall ACLs by disabling plaintext ports (`21 FTP`, `23 Telnet`, `389 LDAP`, `80 HTTP`) and permitting secure encrypted equivalents (`22 SFTP/SSH`, `636 LDAPS`, `443 HTTPS`).