Study tools

Security+ ports cheat sheet

Every port and protocol Security+ expects you to know, with the secure alternative for each cleartext protocol. Searchable, with a quick quiz.

By the CertPine editorial team5 min read

Security+ expects you to recognise the common ports and, more importantly, to know which protocols send data in cleartext and what replaces them. Search the table below, filter to the cleartext protocols, or test yourself with the quiz underneath it.

The cheat sheet

41 of 41 ports

PortProtocolWhat it doesSecure alternative
20, 21TCPFTPcleartextFile Transfer ProtocolFile transfer: 21 carries commands, 20 carries data in active mode.SFTP (22) or FTPS (989/990)
22TCPSSH / SFTP / SCPSecure ShellEncrypted remote administration, and file transfer over SSH.—
23TCPTelnetcleartextTelnetCleartext remote terminal. Credentials travel unencrypted.SSH (22)
25TCPSMTPcleartextSimple Mail Transfer ProtocolServer-to-server mail relay.SMTPS (465) or submission with STARTTLS (587)
49TCPTACACS+Terminal Access Controller Access-Control System PlusAAA for network device administration; encrypts the whole payload.—
53TCP/UDPDNScleartextDomain Name SystemName resolution (UDP); zone transfers and large replies (TCP).DNSSEC for integrity; DoT (853) or DoH (443) for privacy
67, 68UDPDHCPDynamic Host Configuration ProtocolAutomatic IP addressing: 67 server, 68 client.—
69UDPTFTPcleartextTrivial File Transfer ProtocolSimple file transfer with no authentication, often for device configs and PXE boot.—
80TCPHTTPcleartextHypertext Transfer ProtocolUnencrypted web traffic.HTTPS (443)
88TCP/UDPKerberosKerberosTicket-based authentication, as used by Active Directory.—
110TCPPOP3cleartextPost Office Protocol v3Downloads mail from a server to a client.POP3S (995)
123UDPNTPNetwork Time ProtocolClock synchronisation, which log correlation and Kerberos depend on.—
135TCPMS RPCMicrosoft Remote Procedure CallWindows RPC endpoint mapper.—
137–139TCP/UDPNetBIOScleartextNetBIOS name, datagram and session servicesLegacy Windows naming and file sharing.—
143TCPIMAPcleartextInternet Message Access ProtocolMail access that keeps messages on the server.IMAPS (993)
161, 162UDPSNMPcleartextSimple Network Management ProtocolDevice monitoring: 161 for queries, 162 for traps. v1 and v2c use cleartext community strings.SNMPv3 (same ports, with authentication and encryption)
389TCP/UDPLDAPcleartextLightweight Directory Access ProtocolDirectory queries, for example against Active Directory.LDAPS (636)
443TCPHTTPSHTTP over TLSEncrypted web traffic; also carries many VPNs and DNS over HTTPS.—
445TCPSMBServer Message BlockWindows file and printer sharing. A frequent worm and ransomware target.—
465TCPSMTPSSMTP over implicit TLSEncrypted mail submission.—
500UDPIKE / ISAKMPInternet Key ExchangeNegotiates IPsec VPN security associations.—
514UDPSyslogcleartextSyslogSends log events to a collector or SIEM, unencrypted.Syslog over TLS (6514)
587TCPSMTP submissionMail submissionClient mail submission, upgraded to TLS with STARTTLS.—
636TCPLDAPSLDAP over TLSEncrypted directory queries.—
853TCPDoTDNS over TLSEncrypted DNS queries.—
989, 990TCPFTPSFTP over TLSFTP with TLS encryption: 990 control, 989 data.—
993TCPIMAPSIMAP over TLSEncrypted mailbox access.—
995TCPPOP3SPOP3 over TLSEncrypted mail download.—
1433TCPMS SQLMicrosoft SQL ServerDatabase connections. Should never face the internet.—
1521TCPOracleOracle database listenerDatabase connections.—
1701UDPL2TPLayer 2 Tunneling ProtocolVPN tunnelling; paired with IPsec for encryption.—
1723TCPPPTPcleartextPoint-to-Point Tunneling ProtocolLegacy VPN with broken encryption.IPsec or TLS-based VPN
1812, 1813UDPRADIUSRemote Authentication Dial-In User ServiceAAA for network access and 802.1X: 1812 authentication, 1813 accounting.—
3268, 3269TCPGlobal CatalogActive Directory Global CatalogForest-wide directory searches; 3269 over TLS.—
3306TCPMySQLMySQL / MariaDBDatabase connections.—
3389TCP/UDPRDPRemote Desktop ProtocolWindows remote desktop. A top target for brute force when exposed.—
4500UDPIPsec NAT-TIPsec NAT traversalCarries IPsec through NAT devices.—
5060, 5061TCP/UDPSIPSession Initiation ProtocolVoIP call set-up: 5060 cleartext, 5061 over TLS.—
5985, 5986TCPWinRMWindows Remote ManagementPowerShell remoting: 5985 HTTP, 5986 HTTPS.—
6514TCPSyslog over TLSSecure syslogEncrypted log forwarding.—
8080TCPHTTP alternateHTTP alternateWeb proxies and application servers.—

Quiz yourself

See a port number, pick the protocol. Runs in your browser; nothing is saved.

Insecure protocol, secure replacement

Many questions come down to one move: swap a cleartext protocol for its encrypted version. These are the pairs to know cold.

Instead ofUseWhy
Telnet (23)SSH (22)Telnet sends credentials and commands in cleartext.
HTTP (80)HTTPS (443)TLS encrypts the session and authenticates the server.
FTP (20, 21)SFTP (22) or FTPS (989, 990)FTP sends the password in cleartext.
LDAP (389)LDAPS (636)Directory binds can expose credentials.
SNMP v1/v2c (161, 162)SNMPv3 (161, 162)v3 adds authentication and encryption; v1 and v2c use cleartext community strings.
POP3 (110) / IMAP (143)POP3S (995) / IMAPS (993)Mailbox logins and messages are encrypted.
Syslog (514)Syslog over TLS (6514)Logs can carry sensitive data and need integrity.
PPTP (1723)IPsec (500, 4500) or a TLS VPN (443)PPTP's encryption is broken.
DNS (53)DNSSEC, DoT (853), DoH (443)DNSSEC proves answers are genuine; DoT and DoH keep queries private.

How the exam asks about ports

  • Scenario: an auditor finds administrators managing switches over port 23. What should replace it? (SSH.)
  • Firewall rules: allow only encrypted web and mail traffic to a DMZ server. Performance-based questions can ask you to complete a rule table with ports, protocols and actions. See what PBQs look like.
  • Log analysis: repeated failed connections to 3389 from one external address point to an RDP brute-force attempt.
  • Hardening: disable unneeded services, such as SMB (445) facing the internet or TFTP (69) on a server that does not need it.

How to memorise them

  • Learn ports in pairs: the cleartext one and its secure replacement. That halves the work and matches how the exam asks.
  • Group by job: web (80, 443), mail (25, 110, 143, 465, 587, 993, 995), remote access (22, 23, 3389), directory (88, 389, 636), network services (53, 67/68, 123, 161/162, 514).
  • Use the quiz above for five minutes a day rather than one long session. Spaced repetition beats cramming.
  • Then use them in context: our free practice test includes a firewall-rules question that needs this table.

Questions people ask

How many ports do I need to memorise for Security+?
Around 30 to 40 well-known ports. The exam rarely asks for a number on its own; it asks you to spot an insecure protocol in a scenario, pick the secure replacement, or write a firewall rule that allows only what is needed. Learn the number, the protocol and its secure alternative together.
Are the ports different for SY0-701 and SY0-801?
Port numbers are fixed by IANA and do not change between exam versions. Both versions test the same core protocols: web, mail, remote access, directory services, name resolution and logging.
What is the difference between port 465 and port 587?
Both submit mail. Port 465 wraps the whole session in TLS from the start (implicit TLS). Port 587 starts in cleartext and upgrades to TLS with the STARTTLS command. Port 25 is for server-to-server relay.
Does DNS use TCP or UDP?
Both, on port 53. Ordinary lookups use UDP. Zone transfers between DNS servers, and replies too large for one UDP packet, use TCP. Blocking TCP 53 from the internet to your DNS servers is a common way to stop unauthorised zone transfers.

Test yourself

See where you stand with 25 free questions.

Original SY0-701 questions across all five domains, performance-based ones included. Every option is explained. No account needed.

Exam details change. We check this page against CompTIA's published information and date every update; confirm prices and dates on comptia.org before you book.