How to Configure Your Firewall for cPanel Services

How to Configure Your Firewall for cPanel Services

Generally WHM & cPanel servers are used for shared hosting environment where security is most important. So for best security practices, we should always block all unnecessary ports in firewall for unauthorized access. In this article you will find all ports used by WHM & cPanel server, so you can open correct ports in your firewall.

Ports to Open for WHM & cPanel Server

Below is the list of all ports we need to Open for WHM & cPanel server in firewall. Open port for TCP or TCP/UDP protocols as per given below.

==================================================================================
PORT            PROTOCOL        SERVICE ON PORT
==================================================================================
20		TCP/UDP		FTP data
21		TCP/UDP		FTP command
22		TCP/UDP		SSH (Secure Shell)
25		TCP		SMTP (Simple Mail Transfer Protocol)
53		TCP/UDP		DNS (Domain Name System)
80		TCP/UDP		HTTP (Hypertext Transfer Protocol)
110		TCP		POP3 (Post Office Protocol v3)
143		TCP		IMAP (Internet Message Access Protocol)
443		TCP		HTTPS (Hypertext Transfer Protocol over SSL/TLS)
465		TCP		SMTP over SSL
993		TCP		IMAPS (Internet Message Access Protocol over SSL)
995		TCP		POP3S (Post Office Protocol 3 over TLS/SSL)
2077		TCP		Webdisk (cPanel Specific)
2078		TCP		Webdisk with SSL (cPanel Specific)
2082		TCP		CPanel default (cPanel Specific)
2083		TCP		CPanel default SSL (cPanel Specific)
2086		TCP		WHM (cPanel Specific)
2087		TCP		WHM with SSL (cPanel Specific)
2095		TCP		CPanel Web mail	(cPanel Specific)
2096		TCP		CPanel Web mail with SSL (cPanel Specific)
==================================================================================

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!
 
Enjoyed this video?
How to Configure Your Firewall for cPanel Services
"No Thanks. Please Close This Box!"