Cybersecurity-Mastery

Home › Cheatsheets › Networking and Ports Cheatsheet

Networking and Ports Cheatsheet

Common ports, protocol flags, subnetting and quick references. Printable: use your browser's Print → Save as PDF.

Domain: Networking · Last updated 2026-08-12

Quick reference

This cheatsheet is a fast recall aid, not a tutorial — learn the concepts in the Manual, then keep this beside you while you work.

Common ports

PortServicePortService
20/21FTP143/993IMAP/IMAPS
22SSH161/162SNMP
23Telnet389/636LDAP/LDAPS
25/587SMTP443HTTPS
53DNS445SMB
67/68DHCP3306MySQL
69TFTP3389RDP
80HTTP5432PostgreSQL
88Kerberos5985/5986WinRM
110/995POP3/POP3S6379Redis
123NTP8080HTTP-alt

TCP flags & handshake

SYN → SYN/ACK → ACK (open). FIN/ACK (close). RST (reset). Half-open SYN scan never completes the ACK.

Subnetting quick table

CIDRMaskHosts
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/30255.255.255.2522

Private ranges (RFC 1918)

10.0.0.0/8 · 172.16.0.0/12 · 192.168.0.0/16 · link-local 169.254.0.0/16 · loopback 127.0.0.0/8

Cybersecurity-Mastery — interactive security learning · runs locally