May 2024
Beginner to intermediate
194 pages
5h 32m
English
Some common ports and protocols are described in Table A-1. See Internet Assigned Numbers Authority (IANA) for the definitive reference. It’s worth noting that IANA will frequently assign both the TCP and UDP ports to the same protocol even though the protocol only uses one or the other. DNS is a common exception because it uses both UDP and TCP in regular operations. Unless otherwise noted, I’ve included the more common protocol (TCP or UDP) here.
| Protocol | Port(s) | Description |
|---|---|---|
| SMTP | TCP/25, TCP/465, TCP/587 | Simple Mail Transfer Protocol used for transferring mail between Mail Transfer Agents (MTAs) such as mail servers. Ports 465 and 587 are SSL-protected (SMTPS) ports. |
| DNS | UDP/53 and TCP/53 | Domain Name System protocol is responsible for hostname to IP and IP to hostname resolution along with providing information for a domain such as its mail exchange (MX) records for email and other information. TCP is typically used for zone transfers between authoritative primary and secondary DNS servers. The /etc/hosts file overrides DNS resolution on a given machine. |
| HTTP/HTTPS | TCP/80 and TCP/443 | Hypertext Transfer Protocol without SSL uses port 80, while the SSL/TLS version uses port 443. |
| DHCP | UDP/67 and UDP/68 | Dynamic Host Configuration Protocol is used to assign IP address, netmask, and other basic network stack information to clients on the local network. |
| SSH | TCP/22 | Secure Shell is the primary means ... |
Read now
Unlock full access