Are you tired of feeling like your cPanel is locked away, inaccessible to the world? Do you want to unleash the full potential of your website and let the world in? Look no further! In this article, we’ll show you how to configure cPanel ports on Google Cloud Platform (GCP), giving you the freedom to manage your website with ease.
The Importance of Ports
Before we dive into the nitty-gritty of configuring ports, let’s talk about why they’re so important. Ports are like the gates of a castle, controlling who can enter and exit. In the case of cPanel, several ports need to be configured to allow access to the control panel, email services, FTP, and other features. Without these ports configured, you’ll be stuck outside, unable to manage your website.
cPanel Ports: The Complete List
Here is the complete list of cPanel ports that need to be configured:
- 2082: cPanel Web Interface (HTTP)
- 2083: cPanel Web Interface (HTTPS)
- 2086: WHM Web Interface (HTTP)
- 2087: WHM Web Interface (HTTPS)
- 2095: Webmail (HTTP)
- 2096: Webmail (HTTPS)
- 21: FTP (File Transfer Protocol)
- 22: SSH (Secure Shell)
- 25: SMTP (Simple Mail Transfer Protocol)
- 53: DNS (Domain Name System)
- 80: HTTP (Hypertext Transfer Protocol)
- 110: POP3 (Post Office Protocol version 3)
- 143: IMAP (Internet Message Access Protocol)
- 443: HTTPS (Hypertext Transfer Protocol Secure)
- 465: SMTPS (Simple Mail Transfer Protocol Secure)
- 587: Submission (Mail Submission Agent)
- 993: IMAPS (Internet Message Access Protocol Secure)
- 995: POP3S (Post Office Protocol version 3 Secure)
Step 1: Create a New Firewall Rule
To start, you’ll need to create a new firewall rule in GCP. This will allow you to configure the ports for your cPanel instance. To create a new firewall rule, navigate to the GCP Console and select “VPC Network” from the navigation menu. Then, click on “Firewall rules” and select “Create firewall rule”.
Step 2: Configure the Firewall Rule
Now that you’ve created a new firewall rule, it’s time to configure it. To do this, enter the following information:
- Name: Give your firewall rule a name, e.g. “cPanel Ports”
- Network: Select the network associated with your instance
- Priority: Set the priority of the firewall rule, e.g. 1000
- Direction: Select “Ingress” to allow incoming traffic
- Action: Select “Allow” to allow traffic to flow in
- Protocols: Select “tcp” as the protocol
- Ports: Enter the port range you want to open, e.g. 2082-2083, 2086-2087, etc.
Step 3: Configure the cPanel Ports
This is the moment you’ve been waiting for! It’s time to configure the cPanel ports. To do this, click on the “Add” button and enter the following information:
- Protocol: TCP
- Port range: [insert the port range you want to open, e.g. 2082-2083, 2086-2087, etc.]
- Source IP ranges: Enter “0.0.0.0/0” to allow traffic from anywhere in the world
Step 4: Save the Changes
Once you’ve configured the cPanel ports, it’s time to save the changes. To do this, click on the “Create” button. This will apply the changes to your firewall rule and configure the cPanel ports.
Step 5: Verify the Ports are Configured
To verify that the ports are configured, you can use a tool like Telnet or Nmap. These tools will allow you to test the ports and make sure they’re open.
Example Code:
Here’s an example of how to use the GCP CLI to configure the cPanel ports:
gcloud compute firewall-rules create cpanel-ports --network default --allow tcp:2082-2083,tcp:2086-2087,tcp:2095-2096
Conclusion
Configuring cPanel ports on GCP is a straightforward process that can be completed in just a few steps. By following this guide, you’ll be able to unlock the gates of your cPanel and manage your website with ease. Remember to always keep your ports secure and up-to-date to ensure the security of your website.