Question
What ports should I open in my network firewall?
Answer
This will depend on what services you make use of. The ports that are used by cPanel services can be found in our documentation. You'll need to review the documentation and determine which ports are needed for the services you want to use. You'll also need to allow traffic for ports used by non-cPanel services you make use of, though non-cPanel service ports will not be listed in the documentation.
The standard ports and network protocols for commonly used services are listed below.
Service/Protocol | Ports | TCP/IP Protocol | In | Out |
FTP | 21 | TCP | ✅ | ✅ |
SSH | 22 | TCP | ✅ | ✅ |
SMTP (Email) | 25, 465, 587 | TCP | ✅ | ✅ |
Time (rdate) | 37 | TCP | ✅ | |
DNS | 53 | UDP, TCP | ✅ | ✅ |
HTTP/HTTPS (Web) | 80, 443 | TCP | ✅ | ✅ |
POP3 (Email) | 110, 995 | TCP | ✅ | |
IMAP (Email) | 143, 993 | TCP | ✅ | |
WebDAV | 2077, 2078 | TCP | ✅ | |
CalDAV and CardDAV | 2079, 2080 | TCP | ✅ | |
cPanel | 2082, 2083 | TCP | ✅ | ✅ |
WHM | 2086, 2087 | TCP | ✅ | ✅ |
Webmail | 2095, 2096 | TCP | ✅ | |
cPanel Licensing | 2089 | TCP | ✅ | |
ActiveSync | 2091 | TCP | ✅ | |
MySQL | 3306 | TCP | ✅ | ✅ |
LiteSpeed WebAdmin Console | 7080 | TCP | ✅ | |
FTP Passive Mode | 49152-65534 | TCP | ✅ | ✅ |