This article explains how to close a specific port in the Hostek-supported server firewall. This procedure is available to Server Administrators using WHM and is dependent on your specific hosting plan and product features.
Important: Closing a port will immediately block all traffic through that port. Ensure that the port is not required for active services (such as SSH, web traffic, or mail) before proceeding.
Before you begin
You will need:
Server Administrator access to WHM
A valid Hostek account with the firewall management feature enabled
Closing a port in the server firewall
Log in to WHM.
Navigate to Plugins > ConfigServer Security & Firewall (or the specific firewall management interface provided by Hostek).
Locate the list of active rules or the port configuration section.
Identify the port you wish to close.
Select the rule associated with that port and choose the option to Disable or Delete the rule.
If you are manually editing the configuration file, locate the specific port number and change its status to
closedor remove the corresponding line.Click Save or Restart to apply the changes to the firewall.
Confirm the result
The firewall status page should no longer list the port as "open" or "allowed."
You can verify the change by attempting to connect to the port from an external network; the connection should be refused or timed out.
If you lose access to the server
If you accidentally close a port required for management (such as port 22 for SSH or the port used for WHM access), you may be locked out of the server.
Log in to the Hostek Client Portal.
Open a support ticket or use the live chat to request a firewall override.
Provide the specific port number that was closed by mistake.
Hostek support will manually re-open the port to restore your access.
Limitations
This procedure only applies to ports managed by the Hostek-supported server firewall. It does not affect local application-level firewalls or third-party security software installed within a specific user's account.
