Common Ports

Quick answer: port numbers run 0–65535 in three ranges: 0–1023 are well-known (assigned by IANA, usually needing admin privileges to bind), 1024–49151 are registered, and 49152–65535 are dynamic/ephemeral — the range your OS picks for outbound connections.

Web and remote access

22SSHtcpEncrypted shell and file transfer. Never expose password login to the internet; use keys.
53DNStcp/udpName resolution. Open resolvers get abused for amplification attacks.
80HTTPtcpPlaintext web. Fine behind a redirect to 443; never serve logins here.
443HTTPStcpTLS-encrypted web. The default for anything user-facing.
8080HTTP alternatetcpCommon for dev servers and proxies. Easy to forget open in production.

Email

25SMTPtcpServer-to-server mail relay. An open relay will be found and abused within hours.
465SMTPStcpMail submission over implicit TLS.
587SMTP submissiontcpAuthenticated client submission with STARTTLS.
993IMAPStcpMailbox sync over TLS.
995POP3StcpMail download over TLS.

Databases and caches

1433SQL ServertcpBind to private networks only; a favorite ransomware target.
1521OracletcpBind to private networks only.
3306MySQL / MariaDBtcpNever expose to the internet; use a VPN or SSH tunnel instead.
5432PostgreSQLtcpSame rule: private network or tunnel only.
6379RedistcpNo built-in auth by default. Publicly exposed Redis instances get hijacked routinely.
27017MongoDBtcpOlder versions defaulted to no auth; always require credentials and bind privately.

Messaging and infra

5672AMQP (RabbitMQ)tcpMessage broker. 15672 is its management UI — restrict both.
9092KafkatcpEvent streaming. 9093 is the TLS variant.
2375Docker (plain)tcpUnauthenticated Docker API. If this is open to the network, the host is owned. Use 2376 with TLS.
6443Kubernetes APItcpCluster control plane. Restrict to admin networks.
9200ElasticsearchtcpSearch API. Exposed instances leak entire datasets; bind privately.

File transfer and legacy

20/21FTPtcpPlaintext credentials and data. Prefer SFTP (over SSH) or HTTPS.
69TFTPudpNo auth at all. LAN provisioning only.
139/445SMBtcpWindows file sharing. The vector behind WannaCry; block at the perimeter.
3389RDPtcpRemote desktop. Brute-forced constantly; put it behind a VPN or gateway.

Working with port ranges and firewalls

Firewall rules and security groups are usually expressed in CIDR blocks plus port ranges. If you need to check which addresses a rule covers, the CIDR calculator expands a block into its network, broadcast, and host range, and the IP range calculator converts an explicit start–end range into minimal CIDR blocks.

References