User Tools

Site Tools


networking:firewall:common_ports

Commonly Used TCP Ports

The following TCP ports are used to provide common network services such as e-mail and remote access. UDP is a connectionless protocol that is not frequently forwarded.

These are some of the most common ports that might be to be forwarded to an internal server from an external 'gateway/router/firewall' device.

:!: In the interest of security, a person would normally only forward secure (encrypted) ports to an inside host. For example, you might forward port 995 (POPS) instead of port 110 (POP) as the standard POP protocol passes passwords across the Internet in plain text, whereas POPS is an (SSL) encrypted protocol.

:!: You should only forward the ports for the services you want to expose to the outside (Internet).

PortNameDescriptionNotes
20FTP DataFile Transfer ProtocolServer → Client Data Connection. You don't need to forward port 21 if your clients use the common “Passive Mode”.
21FTP ControlFile Transfer ProtocolClient → Server Control Connection
22SSHSecure ShellEncrypted secure shell and secure file transfers (SFTP)
25SMTPSimple Mail Transfer ProtocolUsed to transfer mail between mail servers and for mail submitted by mail clients. May be secured with TLS.
80HTTPHypertext Transfer ProtocolThe common WWW protocol used by web browsers
110POP3Post Office Protocol v3Mail retrieval. Client-based message store.
143IMAPInternet Mail Access ProtocolMail retrieval. Server-based message store.
443HTTPSHTTP over SSLEncrypted web traffic
465SMTPSSMTP over SSLEncrypted mail traffic
587SubmissionSMTP on alternate portUsed with SMTP protocol to submit mail from mail clients. May be secured with TLS. Often used when ISP blocks port 25.
993IMAPSIMAP over SSLEncrypted mail retrieval. Client-based message store.
995POPSPOP over SSLEncrypted mail retrieval. Server-based message store.
1723PPTPMicrosoft Point-to-Point Tunnelling ProtocolPPTP also requires forwarding of the GRE Protocol. Check the documentation for the device you are using on forwarding of protocols.
3389RDPRemote Desktop ProtocolNewer versions of RDP are more secure and support more features.
5900VNCVirtual Network ComputingThis remote control protocol may also be used on other ports such as 5901, 5902, etc.
networking/firewall/common_ports.txt · Last modified: 2012/01/12 12:01 by gcooper