Free tech learning for everyone, from basics to pro

Common network ports

The ports every network and security engineer should know, with what each one does and how to secure it.

These are the ports every network and security engineer should know: for the CCNA, Network+ and Security+ exams, for firewall rules and for spotting risky services in a scan. Click a port for what it does, its security risks and how to secure it.

PortTransportServiceFull nameEncrypted
20-21TCPFTPFile Transfer ProtocolNo
22TCPSSHSecure Shell (also SFTP and SCP)Yes
23TCPTelnetTelnet remote terminalNo
25TCPSMTPSimple Mail Transfer Protocol (server to server)Optional (STARTTLS)
53UDP/TCPDNSDomain Name SystemNo (DoT and DoH add encryption)
67-68UDPDHCPDynamic Host Configuration ProtocolNo
69UDPTFTPTrivial File Transfer ProtocolNo
80TCPHTTPHypertext Transfer ProtocolNo
88TCP/UDPKerberosKerberos authenticationYes (tickets are encrypted)
110TCPPOP3Post Office Protocol version 3No
123UDPNTPNetwork Time ProtocolNo (NTS adds security)
135TCPMS-RPCMicrosoft RPC endpoint mapperNo
137-139UDP/TCPNetBIOSNetBIOS name, datagram and session servicesNo
143TCPIMAPInternet Message Access ProtocolOptional (STARTTLS)
161-162UDPSNMPSimple Network Management ProtocolOnly in SNMPv3
179TCPBGPBorder Gateway ProtocolNo (TCP-AO or MD5 protect sessions)
389TCP/UDPLDAPLightweight Directory Access ProtocolOptional (StartTLS)
443TCP, plus UDP for HTTP/3HTTPSHTTP over TLSYes
445TCPSMBServer Message BlockOptional (SMB 3 encryption)
500/4500UDPIPsec IKEInternet Key Exchange for IPsec VPNsYes
514UDPSyslogSystem logging protocolNo (TLS on 6514)
587TCPSMTP submissionMail submission for email clientsYes (STARTTLS)
636TCPLDAPSLDAP over TLSYes
853TCPDNS over TLSDNS over TLS (DoT)Yes
993TCPIMAPSIMAP over TLSYes
995TCPPOP3SPOP3 over TLSYes
1433TCPSQL ServerMicrosoft SQL ServerOptional (TLS)
1812UDPRADIUSRemote Authentication Dial-In User ServicePartial (passwords obscured)
3306TCPMySQLMySQL and MariaDB databaseOptional (TLS)
3389TCP and UDPRDPRemote Desktop ProtocolYes
5060UDP/TCPSIPSession Initiation Protocol (VoIP)No (SIP over TLS uses 5061)
5432TCPPostgreSQLPostgreSQL databaseOptional (TLS)
5900TCPVNCVirtual Network ComputingOften no
8080TCPHTTP alternateAlternative HTTP portNo (unless configured)

Ports that should never face the internet

Ransomware gangs and botnets scan the whole internet for these services every day. Keep them behind a VPN or firewall: Telnet (23), SMB (445), RDP (3389), NetBIOS (137-139), SNMP (161), VNC (5900) and databases such as SQL Server (1433) and MySQL (3306).

Need a port that is not listed? Search hundreds more in the port lookup tool.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown