Skip to content

Free tools · CompTIA Security+

Ports cheat sheet + quiz

Every port the CompTIA Security+ (SY0-701) objectives expect you to know, with protocol and job. Then a quiz that drills them the way the exam asks: port plus symptom, pick the service.

PortProtoServiceJob
20TCPFTP (data)FTP active-mode data channel
21TCPFTP (control)File Transfer Protocol control channel; cleartext credentials
22TCPSSHSecure Shell remote administration; also SCP and SFTP
23TCPTelnetCleartext remote terminal; insecure, replace with SSH
25TCPSMTPSimple Mail Transfer Protocol, server-to-server mail relay
49TCP/UDPTACACS+Cisco terminal access AAA; encrypts full payload
53TCP/UDPDNSDomain Name System lookups (UDP) and zone transfers (TCP)
67UDPDHCP (server)DHCP server listens; assigns addresses
68UDPDHCP (client)DHCP client port
69UDPTFTPTrivial FTP; unauthenticated, used for PXE/config backup
80TCPHTTPUnencrypted web traffic
88TCP/UDPKerberosNetwork authentication tickets
110TCPPOP3Post Office Protocol v3 mailbox download
123UDPNTPNetwork Time Protocol; accurate time underpins log correlation
135TCPRPCMicrosoft RPC endpoint mapper
137UDPNetBIOS (name)NetBIOS name service
138UDPNetBIOS (datagram)NetBIOS datagram distribution
139TCPNetBIOS (session)NetBIOS session service / legacy SMB
143TCPIMAPInternet Message Access Protocol mailbox sync
161UDPSNMP (manager)SNMP polling of managed devices
162UDPSNMP (trap)SNMP trap alerts from managed devices
389TCP/UDPLDAPLightweight Directory Access Protocol directory queries
443TCPHTTPSHTTP over TLS
445TCPSMBServer Message Block file/print sharing; common lateral-movement target
465TCPSMTPSSMTP over implicit TLS
500UDPIKEInternet Key Exchange for IPsec VPN setup
514UDPSyslogCentralized log forwarding to SIEM
587TCPSMTP (submission)Authenticated mail client submission (STARTTLS)
636TCPLDAPSLDAP over TLS
993TCPIMAPSIMAP over TLS
995TCPPOP3SPOP3 over TLS
1194TCP/UDPOpenVPNDefault OpenVPN tunnel port
1433TCPMSSQLMicrosoft SQL Server database
1521TCPOracle DBOracle database listener
1812UDPRADIUS (auth)RADIUS authentication (encrypts password only)
1813UDPRADIUS (acct)RADIUS accounting
3306TCPMySQLMySQL/MariaDB database
3389TCP/UDPRDPRemote Desktop Protocol; gatekeep from the internet
4500UDPIPsec NAT-TIPsec NAT traversal encapsulation
5060TCP/UDPSIPSession Initiation Protocol VoIP signaling
5061TCPSIPSSIP over TLS
5432TCPPostgreSQLPostgreSQL database
8080TCPHTTP (alt)Alternate HTTP / proxy port
8443TCPHTTPS (alt)Alternate HTTPS port

44 of 44 ports shown. Port numbers and services verified against the official objectives and IANA assignments.

How to learn ports for the exam

Exams rarely ask "what is port 443?" in isolation. They ask which port to open for a service to work, which to block to stop an attack, or what a firewall log means. Learn each port with its job and its direction:

  • Know the pairs: 20/21 (FTP), 67/68 (DHCP), 80/443 (web), 110/143/993/995 (mail). Pairs are the exam's favorite trap.
  • Know the secure replacements: Telnet 23 → SSH 22, FTP 21 → SFTP 22, HTTP 80 → HTTPS 443, LDAP 389 → LDAPS 636, SNMP 161 → SNMPv3.
  • Say the protocol out loud: DNS is 53 UDP *and* TCP (zone transfers). Kerberos 88, LDAP 389, SMB 445, RDP 3389, syslog 514, NTP 123.

Worked example

A firewall log shows blocked outbound traffic to port 53 UDP and users report "the internet is down, but ping 8.8.8.8 works". DNS resolution is failing. The rule blocks name lookups while raw IP connectivity works. That reasoning pattern (port + symptom → service) is the whole quiz below.

Practice this in the app

Free to start. No card.

Port questions

22 SSH, 23 Telnet, 25 SMTP, 53 DNS, 67/68 DHCP, 69 TFTP, 80 HTTP, 110 POP3, 123 NTP, 143 IMAP, 161 SNMP, 389 LDAP, 443 HTTPS, 445 SMB, 514 syslog, 636 LDAPS, 993/995 secure mail, 1433/1521/3306 databases, 3389 RDP. All on this sheet. Filter by the search box and quiz yourself on the weak ones.

Ports are one row of the firewall lab

In SecLern's topology labs you write real allow/block rules with these ports. Then prove them with ping and port scans. The sheet above becomes muscle memory.

Start studying free

Free tier, no card. Pro starts with a 7-day trial; a card is required and you can cancel before day 7.