Knowledge Base

How to whitelist CodeGuard in your HostGator Dedicated or VPS/WHM

Overview

By the end of this article, CodeGuard will be able to reach your HostGator Dedicated or Virtual Private Server (VPS) server, and website and database backups will complete without connection errors. The article lists what you need before you start, gives the CodeGuard IP addresses for each region, and then walks through the three places in Web Host Manager (WHM) where the addresses must be whitelisted: HG Firewall Administration, cPHulk Brute Force Protection, and Host Access Control. It closes with how to confirm the change worked and what to do if connections are still blocked.

Prerequisites

  • A HostGator Dedicated or Virtual Private Server (VPS) hosting plan.
  • Root user access to your Web Host Manager (WHM) panel.
  • An active CodeGuard account with the website or database added.

CodeGuard IP Addresses to Whitelist

Use the addresses for the region your CodeGuard account belongs to. Enter the same set of addresses in all three WHM locations described below.

RegionCodeGuard AddressIP Addresses to Whitelist
United Statescodeguard.com
  1. 54.236.233.46 

  1. 54.236.233.28 

  1. 54.174.91.34 

  1. 54.174.153.212 

  1. 54.174.115.171 

Germanyde.codeguard.com
  1. 35.157.245.195 

  1. 18.185.35.20 

United Kingdomuk.codeguard.com
  1. 52.56.56.141 

  1. 35.178.158.59 

Francefr.codeguard.com
  1. 52.47.143.35 

  1. 52.47.91.37 

 

Step 1 — Sign in to WHM

Sign in to your Web Host Manager (WHM) panel as the root user. All three whitelisting locations are reached from the WHM search box at the top of the left menu.

 
Figure 1: WHM sign-in page where the root user enters credentials

Step 2 — Whitelist the Addresses in HG Firewall Administration

HG Firewall Administration is the HostGator firewall interface in WHM. It controls which external addresses may reach the server.

  1. Search for HG Firewall Administration in the WHM search box and open it.
  2. Enter one CodeGuard IP address for your region in the address field.
  3. Select Add IP.
  4. Repeat for each remaining address for your region. The firewall accepts one address at a time.

 

 

 

 
Figure 2,3,4 and 5
: HG Firewall Administration page with the field for adding a single IP address

Step 3 — Whitelist the Addresses in cPHulk Brute Force Protection

cPHulk Brute Force Protection blocks repeated login attempts and can block CodeGuard even when the firewall allows it.

  1. Search for cPHulk Brute Force Protection in the WHM search box and open it.
  2. Select White/black List Management.
  3. Add each CodeGuard IP address for your region to the white list, also shown as the trusted IP list.
  4. Save the list.

 

 

 
Figure 6, 7 & 8
: cPHulk Brute Force Protection White/black List Management page with the trusted IP list

Step 4 — Whitelist the Addresses in Host Access Control

Host Access Control sets per-service access rules. CodeGuard needs an allow rule for each of its addresses.

  1. Search for Host Access Control in the WHM search box and open it.
  2. Add one line for each CodeGuard IP address for your region, using these values:
FieldValue
Daemonsshd
Access ListThe CodeGuard IP address
Actionallow
Comment (optional)CodeGuard
  • Select Save Host Access List at the bottom of the page once every address has its own line.

 

 

Figure 9, 10: Host Access Control page with one allow rule entered per IP address

How to Verify Success

Return to CodeGuard and run a website or database backup for the affected site. A backup that completes without a connection error confirms the addresses are whitelisted in all three WHM locations.

Troubleshooting

Issue: Backups still fail with a connection error after all three locations are updated.

Cause: Another firewall rule elsewhere on the server or network is blocking the connection.

Solution: Contact HostGator support and ask them to identify where CodeGuard connection attempts are being blocked. If HostGator needs further details about the connection, contact CodeGuard support and we will supply them.

Similar Questions

  • How do I whitelist CodeGuard on a HostGator VPS?
  • Why is CodeGuard unable to connect to my HostGator Dedicated server?
  • What are the steps to add CodeGuard IP addresses to WHM?
  • How do I whitelist an IP address in cPHulk and Host Access Control?

Need assistance?

Contact our team for help with your purchase or issuing your certificate.

Live chat

Call us today