Introduction:
This guide provides a basic example of restricting access to WHM for all IP addresses save those allowed through WHM's "Host Access Control" interface.
Please note before making changes in this interface, you must ensure that you know how to access your server via the console. If this interface is configured incorrectly, you can completely block yourself from accessing the server. In the event that you have completely blocked yourself from accessing the server, you would need to regain access by using console access. Obtaining and using console access is not supported by cPanel because it is configured and provided by your hosting provider or systems administrator.
Instructions:
- Log into WHM as the ‘
root
’ user. - Navigate to "Home / Security Center / Host Access Control."
- Remove all existing rules unless you know exactly how they will interact with the rules outlined in this guide.
- Enter 2087 in the "Port" textbox.
- Enter your IP address or subnet in the "IP Address/CIDR" textbox.
- Ensure that TCP is selected in the "Protocol" dropdown menu.
- Select ACCEPT from the "Action" dropdown menu.
- Click the "Add Rule" button.
- Enter 2087 in the "Port" textbox.
- Enter ALL in the "IP Address/CIDR" textbox.
- Ensure that TCP is selected in the "Protocol" dropdown menu.
- Select REJECT from the "Action" dropdown menu.
- Click the "Add Rule" button.