Skip to main content

How to Open a Port in the Hostek-Supported Server Firewall

A Server Administrator can open a specific port in the Hostek-supported server firewall to allow incoming traffic to a specific service or application. This procedure is available on Hostek plans that include a managed server or a dedicated server.

A Server Administrator can open a specific port in the Hostek-supported server firewall to allow incoming traffic to a specific service or application. This procedure is available on Hostek plans that include a managed server or a dedicated server.

Important: This feature is only available on Hostek plans that include a managed server or a dedicated server.

Before you begin

You will need:

  • Server Administrator access to WHM

  • A valid port number (e.g., 80, 443, or a custom application port)

  • The specific IP address or range if you wish to restrict access to a specific source

Opening a port in the firewall

  1. Log in to WHM.

  2. Navigate to Plugins > ConfigServer Security & Firewall (CSF).

  3. Select the Configeration tab.

  4. Locate the TCP_PORTS setting.

  5. Add the desired port to the list of ports. If the port is already in the list, do not add it again.

  6. If you only want to allow a specific IP address to access a port, locate the LF_TCP_PORT setting and enter the IP address followed by the port (e.g., 192.0.2.10:25).

  7. Scroll to the bottom of the page and click Restart to apply the changes.

Confirm the result

  • The firewall will now allow traffic through the specified port.

  • You can verify the port is open by using an external port scanning tool or by attempting to connect to the server via the specified port from a remote machine.

If the port remains closed after restart

If the port does not appear to be open after a restart, verify the following:

  • Check the Port Number: Ensure the port number is correct and is not already in use by another service on the server.

  • Check Local Services: Ensure the application or service intended to use that port is currently running and listening on that port.

  • Check Local Firewall Rules: If you are using a custom local firewall (such as iptables or firewalld) in addition to the Hostek-supported firewall, ensure those rules are not blocking the traffic.

Limitations

  • This procedure only modifies the Hostek-supported server firewall. It does not automatically configure the underlying application or service to listen on that port.

  • Changes to the firewall configuration may take a few moments to propagate through the system.

  • If you are using a third-party firewall or a custom security suite, those settings must be adjusted independently.

Did this answer your question?