Help Center

How to open and close ports using CSF in WHM?

Blocking and enabling ports on a server are fundamental functions to ensure the security and proper functioning of applications and services. Ports serve as entry and exit points for information on a server, facilitating communication between different devices and applications.

Port blocking is used to restrict unauthorized access to certain services or applications. By blocking unused ports or those posing a security risk, the attack surface is reduced, and the server is protected against potential intrusions or exploitation attempts.

On the other hand, enabling ports allows for external access to specific services that need to be used from the outside. This is especially useful when allowing external connections to applications or services such as web servers, databases, or email services.

It is important to configure port blocking and enabling carefully, following security best practices. This involves assessing risks, allowing only necessary ports, implementing authentication and encryption measures, and maintaining constant vigilance to detect and mitigate potential security threats.

Before making any changes to port configurations, it is essential to understand how to open and close ports in WHM using the ConfigServer Security & Firewall (CSF). This tutorial will guide you through the necessary steps to manage your server's ports securely and efficiently.

  1. Access your WHM account using your administrator credentials.
  2. In the main menu, look for the "Plugins" section and click on "ConfigServer Security & Firewall."
  3. Within CSF, scroll down to the "Firewall Configuration" section.
  4. You will find a list of allowed and blocked TCP and UDP ports. To open a port, simply add the port number and click "Save."
  5. If you want to close a port, remove the port number from the list and save the changes.
  6. Verify that the changes have been applied correctly by checking the list of allowed and blocked ports.
  7. Repeat steps 4 to 6 for each port you wish to open or close.
  8. Once finished, review and confirm that the ports are configured according to your needs.

Always remember to make firewall configuration changes carefully and follow security best practices.

Last updated: 25 de abril de 2024

Estimated reading time: 3 minutes

Did this article help you?
Let's Do It!

Start TODAY for only $2.45/month

Includes a web builder, 30GB of cloud storage, +200 Apps, and professional email.

Sign Up Now