Port reference for security
What runs on common ports, whether each should face the internet, the attacks it is known for and what it means when it shows up in your logs: RDP, SMB, SSH, Redis, Docker and more.
Runs in your browser. Nothing you paste is uploaded, stored or logged.
57 of 57 ports
| Port | Service | Transport | Internet exposure |
|---|---|---|---|
| 21 | FTP | TCP | Restrict |
| 22 | SSH | TCP | Restrict |
| 23 | Telnet | TCP | Never expose |
| 25 | SMTP | TCP | Public by design |
| 53 | DNS | TCP/UDP | Restrict |
| 69 | TFTP | UDP | Never expose |
| 80 | HTTP | TCP | Public by design |
| 88 | Kerberos | TCP/UDP | Never expose |
| 110 | POP3 | TCP | Restrict |
| 123 | NTP | UDP | Restrict |
| 135 | Microsoft RPC endpoint mapper | TCP | Never expose |
| 137 | NetBIOS Name Service | UDP | Never expose |
| 139 | NetBIOS Session (SMB over NetBIOS) | TCP | Never expose |
| 143 | IMAP | TCP | Restrict |
| 161 | SNMP | UDP | Never expose |
| 389 | LDAP | TCP/UDP | Never expose |
| 443 | HTTPS | TCP | Public by design |
| 445 | SMB | TCP | Never expose |
| 465 | SMTPS (implicit TLS submission) | TCP | Public by design |
| 500 | IKE (IPsec VPN) | UDP | Public by design |
| 514 | Syslog | UDP | Never expose |
| 587 | SMTP submission | TCP | Public by design |
| 636 | LDAPS | TCP | Never expose |
| 873 | rsync | TCP | Never expose |
| 993 | IMAPS | TCP | Public by design |
| 995 | POP3S | TCP | Public by design |
| 1080 | SOCKS proxy | TCP | Never expose |
| 1194 | OpenVPN | UDP | Public by design |
| 1433 | Microsoft SQL Server | TCP | Never expose |
| 1521 | Oracle Database listener | TCP | Never expose |
| 1723 | PPTP VPN | TCP | Never expose |
| 1883 | MQTT | TCP | Never expose |
| 1900 | SSDP / UPnP | UDP | Never expose |
| 2049 | NFS | TCP/UDP | Never expose |
| 2375 | Docker API (unencrypted) | TCP | Never expose |
| 3128 | Squid HTTP proxy | TCP | Never expose |
| 3268 | Active Directory Global Catalog | TCP | Never expose |
| 3306 | MySQL / MariaDB | TCP | Never expose |
| 3389 | RDP | TCP/UDP | Never expose |
| 4444 | Metasploit default listener | TCP | Never expose |
| 4500 | IPsec NAT traversal | UDP | Public by design |
| 5060 | SIP | TCP/UDP | Restrict |
| 5432 | PostgreSQL | TCP | Never expose |
| 5601 | Kibana | TCP | Never expose |
| 5900 | VNC | TCP | Never expose |
| 5985 | WinRM (HTTP) | TCP | Never expose |
| 6379 | Redis | TCP | Never expose |
| 6443 | Kubernetes API server | TCP | Restrict |
| 8080 | HTTP alternate | TCP | Restrict |
| 8443 | HTTPS alternate | TCP | Restrict |
| 9050 | Tor SOCKS proxy | TCP | Never expose |
| 9200 | Elasticsearch | TCP | Never expose |
| 10250 | Kubernetes kubelet API | TCP | Never expose |
| 11211 | Memcached | TCP/UDP | Never expose |
| 27017 | MongoDB | TCP | Never expose |
| 50050 | Cobalt Strike team server | TCP | Never expose |
| 51820 | WireGuard | UDP | Public by design |
How it works
Firewall logs, IDS alerts and scan results all come down to ports. Each page covers what normally listens on a port, whether it should ever face the internet, the attacks it is known for and what it usually means when it appears in logs, written for analysts triaging alerts and for anyone reviewing what they expose.
Questions
Which ports should never be open to the internet?
Administrative and internal services: SMB (445), RDP (3389), WinRM (5985), Telnet (23), databases such as MySQL (3306), SQL Server (1433), PostgreSQL (5432), MongoDB (27017) and Redis (6379), and management APIs such as Docker (2375) and the Kubernetes kubelet (10250). Put them behind a VPN or restrict them to known networks.
Does traffic on a port prove which service it is?
No. Port numbers are conventions: any service can run on any port, and attackers often use common ones such as 443 to blend in. Treat the port as a starting point, and confirm with the protocol, the TLS certificate or the service banner.
What does “Restrict” mean here?
The service has legitimate remote uses, but should only be reachable from specific networks, through a VPN or with strong authentication, not from the whole internet.