Common Network Ports & Firewall Rules
Standard TCP/UDP port references, vulnerability warnings, and instant UFW/iptables commands for Linux server administrators.
FTP (File Transfer Protocol)
File TransferUsed for transferring computer files between a client and server. Credentials are sent in cleartext.
sudo ufw allow 21/tcp
SSH (Secure Shell) / SFTP
Remote AdministrationEncrypted network protocol for operating network services securely over an unsecured network.
sudo ufw allow 22/tcp
SMTP (Simple Mail Transfer Protocol)
Email RoutingDefault port for mail routing between email servers (MTA to MTA).
sudo ufw allow 25/tcp
DNS (Domain Name System)
Network InfrastructureTranslates human-readable domain names (e.g. prowebtools.online) into IP addresses.
sudo ufw allow 53
HTTP (Hypertext Transfer Protocol)
Web ServicesStandard unencrypted web traffic port. Now primarily used to redirect visitors to HTTPS (443).
sudo ufw allow 80/tcp
POP3 (Post Office Protocol v3)
Email RetrievalUsed by local email clients to retrieve emails from a remote server over an unencrypted connection.
sudo ufw allow 110/tcp
NTP (Network Time Protocol)
Time SyncSynchronizes computer clock times over packet-switched, variable-latency data networks.
sudo ufw allow 123/udp
IMAP (Internet Message Access Protocol)
Email RetrievalRetrieves email messages without downloading the entire inbox to the local device.
sudo ufw allow 143/tcp
HTTPS (HTTP Secure) / HTTP/3 QUIC
Web ServicesSecure, TLS/SSL-encrypted web traffic. HTTP/3 also uses UDP port 443 via QUIC protocol.
sudo ufw allow 443/tcp && sudo ufw allow 443/udp
SMTPS (SMTP over SSL/TLS)
Email SubmissionSecure submission of email messages by end-user email clients (MUAs) to mail servers.
sudo ufw allow 465/tcp
SMTP Submission (STARTTLS)
Email SubmissionEmail message submission port specified by RFC 6409, utilizing STARTTLS upgrade.
sudo ufw allow 587/tcp
IMAPS (IMAP over SSL/TLS)
Email RetrievalEncrypted IMAP protocol for securely retrieving and synchronizing email folders across devices.
sudo ufw allow 993/tcp
POP3S (POP3 over SSL/TLS)
Email RetrievalEncrypted POP3 protocol for downloading inbox emails securely.
sudo ufw allow 995/tcp
Microsoft SQL Server (MS SQL)
DatabasesDefault listener port for Microsoft SQL Server database engine.
sudo ufw allow from 10.0.0.0/8 to any port 1433 proto tcp
MySQL / MariaDB
DatabasesStandard connection port for MySQL and MariaDB relational database management systems.
sudo ufw allow from 10.0.0.5 to any port 3306 proto tcp
RDP (Remote Desktop Protocol)
Remote AdministrationProprietary Microsoft protocol providing graphical interface to connect to Windows servers.
sudo ufw allow from 192.168.1.0/24 to any port 3389 proto tcp
PostgreSQL Database
DatabasesDefault port for PostgreSQL open-source object-relational database system.
sudo ufw allow from 10.0.0.0/16 to any port 5432 proto tcp
Redis In-Memory Cache
Databases & CachingIn-memory key-value data structure store used as a database, cache, and message broker.
sudo ufw allow from 127.0.0.1 to any port 6379 proto tcp
HTTP Alternate / Tomcat / Proxy
Web Services & DevCommon alternative port for web servers (Apache Tomcat, Spring Boot, Jenkins, Node.js staging).
sudo ufw allow 8080/tcp
MongoDB NoSQL Database
DatabasesDefault connection port for MongoDB document database instances.
sudo ufw allow from 10.0.0.0/8 to any port 27017 proto tcp