Use this guide to add all HetrixTools monitoring IPs to your CSF whitelist to ensure accurate uptime monitoring and avoid blocking their requests.
1. Download the Latest HetrixTools Monitoring IP List
Open a terminal (SSH) and run:
wget -O hetrixtools.txt https://hetrixtools.com/resources/uptime-monitor-ips.txt
2. Generate CSF Whitelist Commands
Use awk
to format the IP list into CSF allow commands:
awk '{print "csf -a", $2, $1}' hetrixtools.txt | sort -r
This command reads the IPs from the downloaded file and formats them for CSF. Output will look like:
csf -a 96.126.106.201 wk1-1.hetrixtools.com
csf -a 95.179.193.59 wk4-2.hetrixtools.com
csf -a 95.179.139.97 wk3.hetrixtools.com
csf -a 94.72.181.90 wk4-8.hetrixtools.com
csf -a 94.16.112.18 wk5-2.hetrixtools.com
csf -a 94.154.159.133 wk1-9.hetrixtools.com
csf -a 91.242.215.225 wk8-6.hetrixtools.com
csf -a 91.239.130.97 wk5-6.hetrixtools.com
csf -a 84.17.55.195 wk12-2.hetrixtools.com
csf -a 79.127.243.80 wk1-11.hetrixtools.com
csf -a 78.46.88.58 wk5-1.hetrixtools.com
csf -a 77.247.126.141 wk2-7.hetrixtools.com
csf -a 70.34.249.133 wk12-1.hetrixtools.com
csf -a 70.34.248.245 wk12-5.hetrixtools.com
csf -a 69.67.149.243 wk2-6.hetrixtools.com
csf -a 67.213.120.27 wk1-8.hetrixtools.com
csf -a 66.42.97.101 wk2-10.hetrixtools.com
csf -a 66.206.25.250 wk5-7.hetrixtools.com
csf -a 66.206.13.170 wk1-10.hetrixtools.com
csf -a 66.165.247.154 wk1-4.hetrixtools.com
csf -a 66.165.225.34 wk2-4.hetrixtools.com
csf -a 65.20.70.55 wk11-4.hetrixtools.com
csf -a 52.67.204.189 wk9.hetrixtools.com
csf -a 52.65.182.14 wk8.hetrixtools.com
csf -a 52.59.92.96 wk5.hetrixtools.com
csf -a 52.56.73.124 wk4.hetrixtools.com
csf -a 52.52.33.209 wk2-1.hetrixtools.com
csf -a 52.23.120.125 wk1-2.hetrixtools.com
csf -a 52.221.91.160 wk6.hetrixtools.com
csf -a 52.207.41.187 wk1.hetrixtools.com
csf -a 52.199.17.123 wk10.hetrixtools.com
csf -a 51.89.47.4 wk5-11.hetrixtools.com
csf -a 51.89.144.57 wk4-10.hetrixtools.com
csf -a 51.79.212.229 wk6-8.hetrixtools.com
csf -a 51.79.156.91 wk6-4.hetrixtools.com
csf -a 51.38.143.147 wk12-4.hetrixtools.com
csf -a 51.195.46.219 wk5-3.hetrixtools.com
csf -a 51.195.149.151 wk4-4.hetrixtools.com
csf -a 51.158.156.63 wk3-5.hetrixtools.com
csf -a 51.15.61.222 wk3-1.hetrixtools.com
csf -a 45.76.202.144 wk10-1.hetrixtools.com
csf -a 45.76.150.238 wk6-3.hetrixtools.com
csf -a 45.76.120.140 wk8-1.hetrixtools.com
csf -a 45.32.204.172 wk7-1.hetrixtools.com
csf -a 45.158.39.210 wk9-5.hetrixtools.com
csf -a 43.230.163.178 wk10-4.hetrixtools.com
csf -a 37.48.96.90 wk3-3.hetrixtools.com
csf -a 35.154.5.38 wk11.hetrixtools.com
csf -a 2.56.188.250 wk7-4.hetrixtools.com
csf -a 23.239.7.4 wk2.hetrixtools.com
csf -a 23.227.169.50 wk7-2.hetrixtools.com
csf -a 23.106.61.94 wk4-5.hetrixtools.com
csf -a 23.106.230.203 wk10-3.hetrixtools.com
csf -a 23.106.180.172 wk2-5.hetrixtools.com
csf -a 23.106.120.205 wk6-5.hetrixtools.com
csf -a 217.195.155.50 wk3-7.hetrixtools.com
csf -a 216.238.100.86 wk9-3.hetrixtools.com
csf -a 210.16.67.82 wk6-7.hetrixtools.com
csf -a 209.222.107.178 wk1-7.hetrixtools.com
csf -a 207.188.6.20 wk7-5.hetrixtools.com
csf -a 203.96.179.194 wk8-5.hetrixtools.com
csf -a 199.254.199.6 wk10-5.hetrixtools.com
csf -a 194.49.53.65 wk3-6.hetrixtools.com
csf -a 194.126.173.238 wk3-4.hetrixtools.com
csf -a 192.248.181.140 wk5-5.hetrixtools.com
csf -a 189.1.173.35 wk9-4.hetrixtools.com
csf -a 188.166.79.172 wk3-2.hetrixtools.com
csf -a 185.38.148.144 wk4-9.hetrixtools.com
csf -a 185.174.110.102 wk4-6.hetrixtools.com
csf -a 181.41.142.138 wk11-3.hetrixtools.com
csf -a 178.62.11.90 wk4-3.hetrixtools.com
csf -a 178.162.208.86 wk5-4.hetrixtools.com
csf -a 172.241.24.83 wk7-3.hetrixtools.com
csf -a 172.241.23.225 wk1-6.hetrixtools.com
csf -a 172.235.62.113 wk2-9.hetrixtools.com
csf -a 172.105.37.103 wk11-2.hetrixtools.com
csf -a 172.105.249.219 wk5-9.hetrixtools.com
csf -a 172.105.168.58 wk8-3.hetrixtools.com
csf -a 172.104.99.63 wk10-2.hetrixtools.com
csf -a 164.92.161.215 wk5-8.hetrixtools.com
csf -a 159.89.159.134 wk2-3.hetrixtools.com
csf -a 152.53.124.134 wk5-10.hetrixtools.com
csf -a 151.115.89.218 wk12-3.hetrixtools.com
csf -a 149.28.50.248 wk1-5.hetrixtools.com
csf -a 149.28.212.239 wk2-2.hetrixtools.com
csf -a 148.113.25.248 wk11-6.hetrixtools.com
csf -a 148.113.2.135 wk11-1.hetrixtools.com
csf -a 146.59.0.13 wk12.hetrixtools.com
csf -a 139.99.233.44 wk8-7.hetrixtools.com
csf -a 139.99.169.250 wk8-2.hetrixtools.com
csf -a 139.162.228.62 wk4-1.hetrixtools.com
csf -a 139.162.22.205 wk6-1.hetrixtools.com
csf -a 138.197.17.201 wk1-3.hetrixtools.com
csf -a 128.199.187.77 wk6-2.hetrixtools.com
csf -a 121.127.40.34 wk7-6.hetrixtools.com
csf -a 107.155.75.66 wk6-6.hetrixtools.com
csf -a 104.41.61.219 wk9-1.hetrixtools.com
csf -a 104.237.139.48 wk7.hetrixtools.com
csf -a 104.194.8.169 wk2-8.hetrixtools.com
csf -a 103.88.233.41 wk9-2.hetrixtools.com
csf -a 103.50.32.15 wk4-7.hetrixtools.com
csf -a 103.101.130.73 wk8-4.hetrixtools.com
3. Whitelist the IPs in CSF
To actually apply the whitelist, you can pipe the results directly into the shell:
awk '{print "csf -a", $2, $1}' hetrixtools.txt | sort -r | bash
Note: Ensure CSF and LFD are installed and running. You must also run this command as
root
.
4. Verify
You can confirm the IPs were added by viewing your CSF allow list:
csf -g 96.126.106.201
Repeat as needed for other IPs.
5. Automate (Optional)
To keep HetrixTools IPs up-to-date, consider setting up a weekly cron job:
crontab -e
Add:
@weekly wget -qO- https://hetrixtools.com/resources/uptime-monitor-ips.txt | awk '{print "csf -a", $2, $1}' | sort -r | bash
Done!
You’ve successfully whitelisted HetrixTools’ IPs in CSF. This ensures monitoring checks will not be blocked by your firewall.