Opening ports in cPanel/WHM

Ports in cPanel/WHM

The Linux Firewall is an open source software with which we can allow or deny the traffic of a specific service such as: Data transmission through FTP, POT3 email, DNS and other services that we could offer on our server.

The data transmission of these services are carried out through TCP / UDP protocols, so it is very important to open the necessary ports for the transmission of data of a certain service.

The Linux firewall does not represent a monitoring system with which we can analyze the transmission of packets in active ports and services, detection or blocking of content with malicious scripts and other features offered by antivirus software or paid firewall.

Opening ports in cPanel and WHM

 

Puerto
Servicio
TCP
UDP
Inbound
Outbound
hostname
1 CPAN

check

   

check

 
20 FTP
check
 
check
check
 
21 FTP
check
 
check
check
 
22 SSH
check
 
check
   
25 SMTP
check
 
check
check
 
26 SMTP
check
 
check
check
 
37 rdate
check
   
check
 
43 whois
check
   
check
 
53 DNS
check
check
check
check
 
80 httpd
check
 
check
check
 
110 POP3
check
 
check
   
113 ident
check
   
check
 
143 IMAP
check
 
check
   
443 httpd
check
 
check
check
 
465 SMTP, SSL/TLS
check
check
check
check
 
579 cPHulk

 

       
587  Exim

check

 

check

check

 
783 SpamAssassin
check
check
   

check

873 rsync
check
check
 
check
 
993 IMAP SSL
check
 
check
   
995 POP3 SSL
check
 
check
   
2703 Razor

check

   
check
 
2077 WebDAV
check
 
check
check
 
2078 WebDAV SSL
check
 
check
check
 
2079 CalDAV and CardDAV
check
 
check
check
 
2080 CalDAV and CardDAV (SSL)
check
 
check
check
 
2082 cPanel
check
 
check
   
2083 cPanel SSL
check
 
check
   
2086 WHM
check
 
check
   
2087 WHM SSL
check
 
check
   
2089 cPanel Licensing
check
   
check
 
2095 Webmail
check
 
check
   
2096 Webmail SSL
check
 
check
   
2195 APNs

check

   

check

 
3306 MySQL®
check
 
check
   
6277 DCC
check
check

 

check
 
24441 Pyzor
check
check
 
check
 

 

To open the necessary ports for cPanel/WHM we will follow the following steps with administrator user privileges:
We check that our firewall is active with the following command:

# systemctl status firewalld

It is necessary that our firewall be active to open the list of necessary ports of cPanel / WHM, copy and paste the following list in your command console.

firewall-cmd --zone=public --add-port=1/tcp --permanent
firewall-cmd --zone=public --add-port=20/tcp --permanent
firewall-cmd --zone=public --add-port=21/tcp --permanent
firewall-cmd --zone=public --add-port=22/tcp --permanent
firewall-cmd --zone=public --add-port=25/tcp --permanent
firewall-cmd --zone=public --add-port=26/tcp --permanent
firewall-cmd --zone=public --add-port=37/tcp --permanent
firewall-cmd --zone=public --add-port=43/tcp --permanent
firewall-cmd --zone=public --add-port=53/tcp --permanent
firewall-cmd --zone=public --add-port=53/udp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=110/tcp --permanent
firewall-cmd --zone=public --add-port=113/tcp --permanent
firewall-cmd --zone=public --add-port=143/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=465/tcp --permanent
firewall-cmd --zone=public --add-port=465/udp --permanent
firewall-cmd --zone=public --add-port=587/tcp --permanent
firewall-cmd --zone=public --add-port=783/tcp --permanent
firewall-cmd --zone=public --add-port=783/udp --permanent
firewall-cmd --zone=public --add-port=873/tcp --permanent
firewall-cmd --zone=public --add-port=873/udp --permanent
firewall-cmd --zone=public --add-port=993/tcp --permanent
firewall-cmd --zone=public --add-port=995/tcp --permanent
firewall-cmd --zone=public --add-port=2703/tcp --permanent
firewall-cmd --zone=public --add-port=2077/tcp --permanent
firewall-cmd --zone=public --add-port=2078/tcp --permanent
firewall-cmd --zone=public --add-port=2079/tcp --permanent
firewall-cmd --zone=public --add-port=2080/tcp --permanent
firewall-cmd --zone=public --add-port=2082/tcp --permanent
firewall-cmd --zone=public --add-port=2083/tcp --permanent
firewall-cmd --zone=public --add-port=2086/tcp --permanent
firewall-cmd --zone=public --add-port=2087/tcp --permanent
firewall-cmd --zone=public --add-port=2089/tcp --permanent
firewall-cmd --zone=public --add-port=2095/tcp --permanent
firewall-cmd --zone=public --add-port=2096/tcp --permanent
firewall-cmd --zone=public --add-port=2195/tcp --permanent
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --zone=public --add-port=6277/tcp --permanent
firewall-cmd --zone=public --add-port=6277/udp --permanent
firewall-cmd --zone=public --add-port=24441/tcp --permanent
firewall-cmd --zone=public --add-port=24441/udp --permanent

Once the execution of the previous commands is finished we restart our firewall so that the changes are applied, with the following command:

# systemctl restart firewalld

If you have any questions, do not hesitate to contact the Picaraza Domains support team 24/7/365.

Was this answer helpful?

Related Articles

Accessing cPanel from a dynamic IP address

If you get logged out from cPanel and get an error ‘The IP has changed’, then it is possible that...

cPanel installation requirements

Before you install cPanel & WHM or cPanel DNSONLY™, make certain that your system meets all...

Installation of cPanel and WHM in RHEL/CentOS 7

cPanel is a well-known, more reliable and intuitive commercial control panel for web hosting...

Puertos principales de cPanel & WHM

Puertos en cPanel/WHM El Firewall de Linux es un software de código abierto con la que podremos...

How to install IonCube Loaders in cPanel and WHM

What is IonCube Loaders? ionCube Ltd. is a software company based near Canterbury Kent, UK....