Security+ ports and protocols: the chart, the secure pairs and a quiz
Every protocol the CompTIA Security+ SY0-701 objectives name, with its port number, TCP or UDP, what it does and its secure replacement. Sort the chart, print it, then quiz yourself until the numbers stick.
Published 2026-11-12 · by DMBI, makers of Security+ Refresher. The protocol list comes from CompTIA's published Security+ SY0-701 Exam Objectives, version 5.0 (the body text and its acronym list). The objectives do not print port numbers, so the numbers come from the IANA port registry and the protocol RFCs.
Short answer: the ports most worth memorizing are FTP 20/21, SSH and SFTP 22, SMTP 25, DNS 53, DHCP 67/68, HTTP 80, POP 110, NTP 123, IMAP 143, SNMP 161/162, LDAP 389, HTTPS 443, SMTPS 465, LDAP over TLS 636, IMAP and POP over TLS 993 and 995, TACACS+ 49, RADIUS 1812/1813, RDP 3389 and IKE 500/4500. The exam cares just as much about the pairs: HTTP to HTTPS, FTP to SFTP or FTPS, LDAP to LDAP over TLS, SNMP v1/v2c to SNMPv3, RTP to SRTP, SSL to TLS.
The chart
Tap a column heading to sort. “IP proto” means an IP protocol number, not a port.
| Protocol | Port(s) | TCP / UDP | What it does | Secure choice |
|---|---|---|---|---|
| FTP (File Transfer Protocol) | 20, 21 | TCP | File transfer; 21 is control, 20 is data (active mode). Sends credentials in clear text. | SFTP or FTPS |
| SFTP (Secured File Transfer Protocol) | 22 | TCP | File transfer inside an SSH session. | Already secure |
| FTPS (Secured File Transfer Protocol) | 989, 990 | TCP | FTP over TLS. Implicit FTPS uses 990 (control) and 989 (data); explicit FTPS starts on 21 and upgrades. | Already secure |
| SSH (Secure Shell) | 22 | TCP | Encrypted remote command line, tunneling and file transfer. | Already secure |
| TACACS+ | 49 | TCP | AAA for network devices; encrypts the whole payload. | Already secure |
| SMTP (Simple Mail Transfer Protocol) | 25 | TCP | Sends and relays email between servers. | SMTPS (or STARTTLS) |
| DNS (Domain Name System) | 53 | UDP, TCP | Name to IP address lookups; TCP for zone transfers and large answers. SPF, DKIM and DMARC records are published in DNS. | DNS filtering helps; protect zone transfers |
| DHCP (Dynamic Host Configuration Protocol) | 67, 68 | UDP | Hands out IP addresses; 67 is the server, 68 the client. | No secure version; guard against rogue DHCP servers |
| HTTP (Hypertext Transfer Protocol) | 80 | TCP | Web traffic in clear text. | HTTPS |
| POP (Post Office Protocol, POP3) | 110 | TCP | Downloads email from a mailbox. | POP over TLS (995) |
| NTP (Network Time Protocol) | 123 | UDP | Keeps clocks in sync, which log correlation and many authentication systems depend on. | Use trusted, authenticated time sources |
| IMAP (Internet Message Access Protocol) | 143 | TCP | Reads email while it stays on the server. | IMAP over TLS (993) |
| SNMP (Simple Network Management Protocol) | 161, 162 | UDP | Monitors and manages devices; 161 for queries, 162 for traps. | SNMPv3 (adds authentication and encryption) |
| BGP (Border Gateway Protocol) | 179 | TCP | Routing between networks on the internet. | Authenticate peers; filter routes |
| LDAP (Lightweight Directory Access Protocol) | 389 | TCP, UDP | Directory lookups and authentication, often behind single sign-on. | LDAP over TLS (LDAPS, 636) |
| HTTPS (HTTP Secure) | 443 | TCP (UDP for HTTP/3) | HTTP over TLS. Also the usual port for TLS VPNs. | Already secure |
| SMTPS (SMTP Secure) | 465 | TCP | Mail submission over TLS from the first byte. | Already secure |
| IKE (Internet Key Exchange) | 500, 4500 | UDP | Sets up IPSec tunnels; 4500 is NAT traversal. | Already secure |
| LDAPS (LDAP over TLS) | 636 | TCP | LDAP wrapped in TLS. | Already secure |
| IMAP over TLS (IMAPS) | 993 | TCP | IMAP wrapped in TLS. | Already secure |
| POP over TLS (POP3S) | 995 | TCP | POP3 wrapped in TLS. | Already secure |
| L2TP (Layer 2 Tunneling Protocol) | 1701 | UDP | VPN tunnel with no encryption of its own. | Pair it with IPSec |
| PPTP (Point-to-Point Tunneling Protocol) | 1723 | TCP (plus GRE) | Old VPN protocol with weak, broken authentication. | IPSec or a TLS VPN |
| RADIUS | 1812, 1813 | UDP | AAA; 1812 authentication, 1813 accounting. Common back end for 802.1X and Wi-Fi Enterprise. | Protect the shared secret; TACACS+ for device admin |
| RDP (Remote Desktop Protocol) | 3389 | TCP, UDP | Windows remote desktop. A favorite target when left open to the internet. | Put it behind a VPN; require MFA |
| RTP (Real-time Transport Protocol) | Dynamic | UDP | Carries voice and video (VoIP); ports are negotiated per call. | SRTP |
| SRTP (Secure Real-Time Protocol) | Dynamic | UDP | RTP with encryption and message authentication. | Already secure |
| ESP (Encapsulating Security Payload) | IP proto 50 | Neither (IP protocol) | IPSec encryption of the packet payload. | Already secure |
| AH (Authentication Header) | IP proto 51 | Neither (IP protocol) | IPSec integrity and authentication, no encryption. | Use ESP when you need confidentiality |
| OSPF (Open Shortest Path First) | IP proto 89 | Neither (IP protocol) | Routing inside an organization. | Enable OSPF authentication |
| ICMP (Internet Control Message Protocol) | IP proto 1 | Neither (IP protocol) | Ping and error messages; no ports at all. | Filter what you don't need |
Secure vs insecure pairs
Many Security+ questions are really one question: which protocol should replace this one? These are the pairs to know cold.
| Insecure | Port | Secure replacement | Port |
|---|---|---|---|
| HTTP | 80 | HTTPS (HTTP over TLS) | 443 |
| FTP | 20, 21 | SFTP (over SSH) or FTPS (over TLS) | 22 / 989, 990 |
| SMTP | 25 | SMTPS (or STARTTLS on the same port) | 465 |
| POP | 110 | POP over TLS | 995 |
| IMAP | 143 | IMAP over TLS | 993 |
| LDAP | 389 | LDAP over TLS (LDAPS) | 636 |
| SNMP v1 and v2c (community strings in clear text) | 161, 162 | SNMPv3 | 161, 162 |
| RTP | Dynamic | SRTP | Dynamic |
| PPTP | 1723 | IPSec (IKE) or a TLS VPN | 500, 4500 / 443 |
| SSL | — | TLS | — |
| Telnet * | 23 | SSH | 22 |
* Telnet is not named in the SY0-701 objectives or their acronym list, but it is the classic example of a clear-text protocol and many study guides still use it.
Things that are not ports
TLS and SSL are not ports: they wrap other protocols, and that is why HTTPS, SMTPS, LDAPS and the rest get their own port numbers. SSL is deprecated; TLS replaced it. 802.1X and EAP work at the network edge before a device gets an IP address, and usually hand off to a RADIUS server. S/MIME protects the message itself, whatever port carried it. SPF, DKIM and DMARC are email-security records published in DNS. ESP, AH, OSPF and ICMP are IP protocol numbers, not TCP or UDP ports, which is a favorite trick in practice questions. SAML and OAuth ride on HTTPS.
Quiz yourself
Tap Show answer, then be honest. The quiz is in your browser only; nothing is sent anywhere. Want it graded? Take the multiple-choice Security+ ports quiz.
Questions
Which ports do I need to know for Security+ SY0-701?
Know the well-known ports of the protocols the objectives name: FTP 20/21, SSH and SFTP 22, SMTP 25, DNS 53, DHCP 67/68, HTTP 80, POP 110, NTP 123, IMAP 143, SNMP 161/162, LDAP 389, HTTPS 443, SMTPS 465, LDAP over TLS 636, IMAP over TLS 993, POP over TLS 995, TACACS+ 49, RADIUS 1812/1813, RDP 3389, IKE 500/4500, L2TP 1701 and PPTP 1723. Just as important is knowing which protocol is the secure replacement for which.
Do the Security+ objectives list port numbers?
No. The SY0-701 objectives (version 5.0) name the protocols, in the body and in the acronym list, and ask you to apply protocol selection, port selection and firewall rules for ports and protocols. They do not print port numbers. The numbers on this page are the standard IANA assignments.
What is the secure version of FTP?
Two protocols replace plain FTP (TCP 20 and 21, which sends passwords in clear text). SFTP is file transfer over SSH on TCP 22. FTPS is FTP over TLS, either implicit on TCP 990 (989 for data) or explicit, where the session starts on 21 and upgrades to TLS.
What port does HTTPS use?
HTTPS uses port 443, normally over TCP. It is HTTP over TLS, the secure replacement for plain HTTP on port 80. HTTP/3 also runs on port 443, over UDP.
What is the difference between SFTP and FTPS?
SFTP is a separate file-transfer protocol that runs inside an SSH session on TCP 22, so it needs only one port. FTPS is the original FTP protected with TLS, on TCP 990 and 989 (implicit) or 21 (explicit), and it still uses separate control and data connections, which is harder on firewalls.
Is Telnet on the Security+ SY0-701 exam?
Telnet is not named in the SY0-701 objectives or their acronym list, though many study guides still cover it. It runs on TCP 23 and sends everything, passwords included, in clear text. SSH on TCP 22 replaced it for remote command-line access.
Which ports do VPNs use?
IPSec VPNs use IKE on UDP 500 and UDP 4500 for NAT traversal, and carry traffic in ESP (IP protocol 50) or authenticate it with AH (IP protocol 51); ESP and AH are IP protocols, not ports. L2TP uses UDP 1701 and is normally paired with IPSec. The older PPTP uses TCP 1723 plus GRE and is considered insecure. TLS VPNs usually run on TCP 443.
What is the difference between explicit and implicit FTPS?
Implicit FTPS starts TLS the moment the client connects, on TCP 990 for control and 989 for data, so a client that does not speak TLS cannot connect at all. Explicit FTPS connects on the normal FTP port, TCP 21, and the client then upgrades the session with the AUTH TLS command. Explicit is the standard modern form; implicit is older but still found.
What is the difference between AH and ESP in IPSec?
AH, the Authentication Header, proves a packet's integrity and origin but does not encrypt it. ESP, the Encapsulating Security Payload, encrypts the payload and can authenticate it too, which is why almost every IPSec VPN uses ESP. AH also fails through NAT, because it protects IP header fields that NAT rewrites.
How do SPF, DKIM and DMARC work together?
SPF is a DNS record listing the mail servers allowed to send email for a domain. DKIM adds a digital signature to each message, which the receiver checks against a public key published in DNS. DMARC is a DNS policy that tells receivers what to do when a message fails those checks, such as quarantine or reject, and where to send reports. Together they make it much harder to spoof a domain.
Is this chart from CompTIA?
No. DMBI wrote it from the published SY0-701 exam objectives and the IANA port registry. It is not affiliated with or endorsed by CompTIA, and it does not contain real exam questions.
Security+ Refresher drills all five SY0-701 domains with original practice questions, instant feedback and mastery tracking. It is free to use; Pro is a one-time $9.95 and adds the last 10 questions (2 per domain) for all 139. No account needed.
This page is an independent study aid from D M Breault, Inc. It is not affiliated with or endorsed by CompTIA, and it contains no real exam questions. CompTIA and Security+ are trademarks of CompTIA, Inc., used here only to name the exam. SY0-701 is the version CompTIA calls Security+ V7; CompTIA launched Security+ V8 (SY0-801) on November 17, 2026; the English SY0-701 exam retires June 11, 2027.