Site icon Cody Paste

Whitelist IP in WHM

To whitelist an IP address in WHM (Web Host Manager), follow these steps:

Step-by-Step Guide:

  1. Log into WHM:
    • Open your WHM panel by visiting https://your-server-ip:2087.
    • Log in using your root credentials.
  2. 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.
  3. 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.
  4. 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.
  5. 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:

  1. Navigate to Security Center.
  2. Select Host Access Control.
  3. Enter the Service (e.g., whostmgrd for WHM, sshd for SSH, etc.).
  4. In the Allow field, enter the IP address you want to whitelist.
  5. Leave the Deny field blank and click Save.

This will whitelist the IP and allow it to access WHM or the specified service.

Exit mobile version