To whitelist an IP address in WHM (Web Host Manager), follow these steps:
Step-by-Step Guide:
- Log into WHM:
- Open your WHM panel by visiting
https://your-server-ip:2087
. - Log in using your root credentials.
- Open your WHM panel by visiting
- Navigate to the “CSF” or “Firewall” Section:
- In the search bar on the left-hand side, type “ConfigServer Security & Firewall” (CSF).
- If you have CSF installed, click on ConfigServer Security & Firewall.
- If CSF is not installed, you may need to install it, or use the default firewall settings.
- Add IP to Allow List (Whitelist):
- Scroll down to the “Quick Allow” section.
- Enter the IP address you want to whitelist in the IP Address field.
- Click Quick Allow to add the IP to the whitelist.
- Alternatively, Use the “Firewall Allow IPs”:
- Scroll to the “Firewall Allow IPs” section (usually under the “csf.conf” file).
- Add the IP addresses you want to whitelist, one per line.
- Save the changes by clicking on the Save button.
- Restart the Firewall:
- After whitelisting the IP address, you may need to restart the firewall to apply changes.
- Scroll down and click Restart CSF+LFD to restart the firewall and activate the whitelist changes.
Whitelisting in Default WHM Firewall (Without CSF)
If you’re using the default firewall without CSF:
- Navigate to Security Center.
- Select Host Access Control.
- Enter the Service (e.g.,
whostmgrd
for WHM,sshd
for SSH, etc.). - In the Allow field, enter the IP address you want to whitelist.
- Leave the Deny field blank and click Save.
This will whitelist the IP and allow it to access WHM or the specified service.