Skip to content
GDPR compliant. Hosted in the EU.
14-day free trial →
FirewallWAFMonitoring
Monitoring 11 min read 17 Apr 2026

Firewall Whitelist for Monitoring: Correctly Configure Fail2Ban, ModSecurity & WAFs

How to prevent Fail2Ban, ModSecurity or Cloudflare from misinterpreting your monitoring checks as attacks and producing silent outages.

X

XICTRAQ® Team

XICTRAQ®

FirewallFail2BanModSecurityWAFMonitoringSecurity
99.938%
WAF accuracy
28%
Traffic loss Dec 2025
5min
Auto-sync whitelist
WAF whitelist for monitoring nodes Request log (last 60 sec.) Source-IP UA / Target Action Rule 213.133.103.239xictraq-monitorALLOWwhitelist 89.167.106.0xictraq-monitorALLOWwhitelist 193.32.x.xcurl/7.88 — /wp-loginBLOCK949110 45.155.x.xscanner (ZGrab)BLOCK913100 2a01:4f8:a0:935d::3xictraq-monitorALLOWwhitelist 185.220.x.xTor-ExitBLOCKiprep 91.98.179.200xictraq-monitorALLOWwhitelist 141.98.x.xSSH brute-forceBLOCKfail2ban 2a01:4f8:2210:23d9::2xictraq-monitorALLOWwhitelist 48 Requests · 36 Allow · 12 Block Auto-Whitelist (Live) xictraq-nodes · as of 2026-11-04 n0 · Nuremberg n1 · Helsinki n2 · Falkenstein 213.133.103.2292a01:4f8:a0:935d::2 213.133.103.2392a01:4f8:a0:935d::3 89.167.106.02a01:4f9:c012:730b::1 91.98.179.2002a01:4f8:2210:23d9::2 Source: /api/public/nodes Auto-sync: every 5 min Nodes (as of 2026-11-04) 3 Addresses to allow 8 Without whitelist: monitoring outages, false alarms, silent outages · OWASP CRS 949110 (inbound-anomaly) blocks legit scanners · Fail2Ban rule "http-get-dos" catches fast polls as DDoS · Cloudflare rate limit: 1 req/sec default is too low · Spamhaus IP reputation can wrongly flag cloud IPs
Your website is up. Alerts stay silent. Then a customer reports the site has been down for hours. In the background your firewall wasn't fending off attackers — it was blocking your own uptime monitoring. This scenario is more common than many operators think: an OWASP CRS rule classifies the monitoring scanner as a bot, Fail2Ban bans the IP after three queries per second, Cloudflare activates a challenge the daemon can't solve. The result: silent outages without alerts, false positives on well-functioning sites, and an ops team spending hours chasing ghosts because the monitoring itself is the problem. This guide shows the most common sources of false blocking — Fail2Ban, ModSecurity with OWASP CRS, Cloudflare WAF and iptables — and how to configure your firewall so legitimate monitoring gets through without waving in real attacks.

Why firewalls block monitoring traffic

Modern Web Application Firewalls work with signature-based and behavior-based rules. A typical uptime check sends one HTTP request per minute from the same IP, with a non-browser User-Agent, no cookie and no referrer. To a WAF ruleset these are exactly the hallmarks of an automated scanner. The Cloudflare WAF achieved 99.938% accuracy on legitimate traffic detection in 2024 (openappsec WAF benchmark, 2024) — but the flip side is: one in roughly 1,600 legitimate requests gets blocked. With a 30-second monitoring interval from a single node that's statistically about 54 false blocks per day.

The consequences go beyond sporadic false alarms. On 5 December 2025, a misconfigured Cloudflare WAF rule caused a 25-minute, 28% outage of global HTTP traffic (Cloudflare Blog, December 2025). Zoom, LinkedIn and others were affected — along with the monitoring dashboards of Cloudflare customers that were supposed to flag the outage. A well-known monitoring service's EU monitoring region collapsed in August 2025 by 45% of its capacity, triggering cascades of false alarms for thousands of users (industry incident report, August 2025). The lesson: monitoring infrastructure must be explicitly whitelisted in firewall rules, otherwise it becomes a single-point-of-failure itself.

Warning: Typical symptoms of blocked monitoring

· Sudden uptime drop to 95–97% without any server-side incident · HTTP 403 or 429 errors in monitoring history while the browser loads fine · Response-time spikes landing on exactly 3,000 or 10,000 milliseconds (= challenge-page timeout) · Contradictory reports: customer support says 'up', monitor says 'down'

Fail2Ban: the most common misconfigurations

Fail2Ban reads web server logs and bans IPs that trigger certain patterns in a short time. The default apache-botsearch filter or the nginx-http-auth jail kicks in on failed authentication — but also on the typical monitoring workflow with 401 responses on protected paths. Custom http-get-dos filters that ban any IP with more than X requests per minute are especially problematic. A monitoring setup with 30-second interval hits 2,880 requests per day — well above typical thresholds.

The clean fix: add monitoring IPs to ignoreip in the Fail2Ban main config. This entry applies globally to all jails and fully exempts the monitoring nodes from surveillance.

# /etc/fail2ban/jail.local
# Addresses as of 2026-11-04 from api.xictraq.com/api/public/nodes
# (Nuremberg, Helsinki, Falkenstein) – fetch again before use
[DEFAULT]
ignoreip = 127.0.0.1/8 ::1
           213.133.103.229 213.133.103.239
           2a01:4f8:a0:935d::2 2a01:4f8:a0:935d::3
           89.167.106.0 2a01:4f9:c012:730b::1
           91.98.179.200 2a01:4f8:2210:23d9::2
# After changes: systemctl restart fail2ban

Important: the addresses in the example are as of 4 November 2026 (api.xictraq.com/api/public/nodes): currently three nodes with eight addresses in total. The list changes when nodes are added or removed, and one node can have several addresses — the node in Nuremberg registers with the platform via one address and checks your website via another. If you enter only the first address per node, you lock out that node's checks. XICTRAQ® publishes the current list as a JSON endpoint that can be polled automatically; the section on automated whitelist maintenance below shows how.

ModSecurity and OWASP Core Rule Set 4.x

ModSecurity with OWASP CRS is the standard WAF on many Apache and nginx installations. The Core Rule Set in 4.x was fundamentally overhauled after eight years and leans more toward blocking over alerting — the trade-off: higher security quality, lower detection quality (Linux Compatible, 2024). Translated: more legitimate traffic gets blocked along with threats. For monitoring tools three rules are particularly critical:

Rule IDPurposeRisk for monitoring
913100Scanner detectionClassifies every non-browser UA as a scanner
920350Host header missing/invalidMay fire on direct IP access
949110Inbound anomaly score exceededCatch-all: cumulative score > threshold → block

Instead of disabling individual rules — which reduces protection against real attackers — monitoring IPs should be selectively removed from the rule engine via IP match. The following exception rule runs in phase 1 and disables the entire rule engine for the addresses in a file. A call to the endpoint writes that file, so it stays in line with the list:

# Write the address list from the endpoint (repeat on every sync)
curl -fsS https://api.xictraq.com/api/public/nodes \
  | jq -r '.nodes[] | (.ipv4[], .ipv6[])' > /tmp/xictraq-nodes.txt
[ -s /tmp/xictraq-nodes.txt ] && mv /tmp/xictraq-nodes.txt /etc/modsecurity/xictraq-nodes.txt
# Then reload the web server: ModSecurity reads the file at startup

# /etc/modsecurity/crs-setup.conf or conf.d/xictraq-whitelist.conf
SecRule REMOTE_ADDR \
    "@ipMatchFromFile /etc/modsecurity/xictraq-nodes.txt" \
    "id:1000,phase:1,pass,nolog,ctl:ruleEngine=Off"

Rule ID 1000 is a free slot (OWASP CRS uses 900000–999999). For ISPConfig, Plesk or Cloudpanel setups there is typically a UI input for custom ModSecurity rules where this block can be stored without editing files.

Cloudflare WAF and rate limiting

Cloudflare sits between visitor and origin for many websites — every monitoring request hits the Cloudflare edge first. Managed Rules, Bot-Fight Mode, Rate Limits and IP Reputation all apply there. Under Security → WAF → Tools → IP Access Rules in the Cloudflare dashboard IPs can be set to 'Allow' — they then skip all subsequent security rules for the zone.

For more complex scenarios a custom rule is recommended that explicitly exempts the monitor IP range from rate limiting. The Cloudflare expression language allows multiple IPs in a bracketed list:

# Cloudflare WAF Custom Rule (Security → WAF → Custom rules → Create)
# Field:  IP Source Address
# Operator: is in
# Value (as of 2026-11-04 from api.xictraq.com/api/public/nodes, fetch again before entering):
# {213.133.103.229 213.133.103.239 2a01:4f8:a0:935d::2 2a01:4f8:a0:935d::3
#  89.167.106.0 2a01:4f9:c012:730b::1 91.98.179.200 2a01:4f8:2210:23d9::2}
# Action: Skip → All remaining custom rules, Managed rules, Rate limiting
# Description: xictraq-monitoring-whitelist
Note: Bot-Fight Mode and 'I'm Under Attack'

Both modes serve a JavaScript challenge that no regular HTTP-client monitoring can solve. If you enable these modes during an attack, your monitoring stays blind for the entire activation period. A Custom Rule with Skip does not skip Bot-Fight Mode; it does not trigger, however, if an IP Access Rule with 'Allow' matches the request first (Cloudflare). Add the monitoring addresses as an IP Access Rule as well and run an on-demand scan afterwards to check that the checks get through.

iptables, nginx and Apache — native configuration

Besides the big WAFs there are setups where the firewall acts at the network or web-server layer. Key configs:

# iptables / ip6tables with ipset — create the sets once and insert Allow rules BEFORE DROP
ipset create xictraq4 hash:ip family inet -exist
ipset create xictraq6 hash:ip family inet6 -exist
# Ports 80 and 443; add further monitored ports
iptables  -I INPUT -p tcp -m multiport --dports 80,443 -m set --match-set xictraq4 src -j ACCEPT
ip6tables -I INPUT -p tcp -m multiport --dports 80,443 -m set --match-set xictraq6 src -j ACCEPT
# Load the addresses from the endpoint into the sets (repeat on every sync)
if curl -fsS https://api.xictraq.com/api/public/nodes -o /tmp/xictraq-nodes.json; then
  jq -r '.nodes[].ipv4[]' /tmp/xictraq-nodes.json | xargs -r -I{} ipset -exist add xictraq4 {}
  jq -r '.nodes[].ipv6[]' /tmp/xictraq-nodes.json | xargs -r -I{} ipset -exist add xictraq6 {}
fi
# Removed addresses stay in the sets: to clean up, empty them first with ipset flush
# Persist with: netfilter-persistent save (plus ipset-persistent for the sets)

For nginx a variable is recommended that sets different rate-limit keys depending on source IP — legitimate monitors run without limit, everyone else hits the standard cap. The geo block reads the addresses from a file written by a call to the endpoint:

# Write the address list from the endpoint (repeat on every sync)
curl -fsS https://api.xictraq.com/api/public/nodes \
  | jq -r '.nodes[] | (.ipv4[], .ipv6[]) | "\(.) 1;"' > /tmp/xictraq-geo.conf
[ -s /tmp/xictraq-geo.conf ] && mv /tmp/xictraq-geo.conf /etc/nginx/xictraq-nodes.conf \
  && nginx -t && systemctl reload nginx

# /etc/nginx/conf.d/xictraq-whitelist.conf
geo $xictraq_node {
    default 0;
    include /etc/nginx/xictraq-nodes.conf;
}
map $xictraq_node $limit_req_key {
    0 $binary_remote_addr;
    1 "";
}
limit_req_zone $limit_req_key zone=default:10m rate=10r/s;

Apache allows IP allow lists via <RequireAll> blocks in the vhost or .htaccess. Important: order matters — Require all granted must come before the IP entries, otherwise only the allowlist passes.

Automated whitelist maintenance with the XICTRAQ® endpoint

Every hand-maintained whitelist becomes stale as soon as a node is added, removed or reports another address. XICTRAQ® currently checks from three nodes (as of 4 November 2026): Nuremberg and Falkenstein in Germany, Helsinki in Finland. The public endpoint /api/public/nodes publishes the current list as JSON, with every reported IPv4 and IPv6 address per node. A cron job every 5 minutes polls it and regenerates the firewall config.

A minimal Fail2Ban example — the cron generates the ignoreip line in a separate file under jail.d that Fail2Ban picks up on reload. When a node is added or removed, the next run updates the line with zero admin effort. If the request fails or the list is empty, the previous file stays in place:

#!/bin/bash
# /usr/local/bin/sync-xictraq-whitelist.sh
set -euo pipefail
NODES=$(curl -fsS https://api.xictraq.com/api/public/nodes \
        | jq -r '.nodes[] | (.ipv4[], .ipv6[])' | tr '\n' ' ')
# Request failed or list empty: keep the previous file
[ -n "${NODES// /}" ] || exit 1
cat > /etc/fail2ban/jail.d/99-xictraq.local <<EOF
[DEFAULT]
ignoreip = 127.0.0.1/8 ::1 $NODES
EOF
systemctl reload fail2ban

The same run can also rewrite the ModSecurity and nginx files and the ipset sets for iptables from the sections above. The XICTRAQ® docs under Firewall whitelist show the same list as a table, loaded live from the endpoint when the page opens.

What happens on a rule collision?

Firewall rules are processed sequentially. An Allow rule placed after a Block rule no longer takes effect. Common pitfalls: in Fail2Ban ignoreip entries are processed before all jail filters — that works. In iptables the ACCEPT rule must be before DROP rules, otherwise DROP fires first. In Cloudflare WAF custom rules execute in the order they were created — the whitelist rule should be at the top with action 'Skip → All remaining custom rules, Managed rules, Rate limiting'. In ModSecurity ID order drives processing — the whitelist rule should have a low ID (e.g. 1000) so it runs before CRS rules (900000+).

Positive: Validation before rollout

After every whitelist change, open the website in XICTRAQ® and check the result per node in the 'Node consensus' card. If one node shows 'Down' while the others get through, the allow rule for one of its addresses is not active or the rule order is wrong.

Checklist for new setups

  1. Fetch current monitoring IPs and take every address per node: curl https://api.xictraq.com/api/public/nodes
  2. Set Fail2Ban ignoreip and run systemctl reload fail2ban
  3. Add ModSecurity exception rule with ID 1000 to CRS setup
  4. On Cloudflare: create Custom Rule with IP Source match + Skip action
  5. Insert iptables/ip6tables Allow rules before DROP rules and persist
  6. Configure nginx rate-limit bypass via geo and map
  7. In XICTRAQ®, check in the 'Node consensus' card that every node reaches the site
  8. Set up cron auto-sync every 5 minutes for automatic node expansion

Set up the monitoring whitelist now

A clean firewall configuration is the precondition for your monitoring to tell the truth. XICTRAQ® publishes the current node list as a public JSON endpoint, and the examples in this guide read it directly for ModSecurity, iptables, nginx and the Fail2Ban sync. Start free and have your site checked without your WAF getting in the way; your plan sets the shortest check interval.

Frequently asked

Which IPs do I need to whitelist?
All addresses the endpoint api.xictraq.com/api/public/nodes returns, IPv4 and IPv6 — and every entry per node, not just the first. Currently that is three nodes with eight addresses in total (as of 4 November 2026): Nuremberg, Helsinki and Falkenstein. The list is cached for 5 minutes; a new node appears there once it has registered with the platform.
Is the whitelist a security risk?
The risk usually stays manageable if you allow only the individual addresses from the list (no subnet) and keep the exception as narrow as needed: in the web server skip only rate limiting and WAF rules, in iptables open only the ports of the monitored services. Keep in mind: an allow rule applies to all traffic from these addresses, not only to XICTRAQ® checks.
Why not just whitelist the User-Agent?
User-Agents are trivial to spoof. An attacker sets the same UA and bypasses the rule. IP-based whitelists are more robust because IP addresses are assigned by the carrier, not set by the sender. With reputable EU cloud providers the host and region can additionally be verified via WHOIS.
What happens when XICTRAQ® adds new nodes?
A new node appears in the /api/public/nodes endpoint once it has registered with the platform; a node that stops reporting drops out again. A 5-minute cron sync on your firewall picks up the change and updates the whitelist. The list in the endpoint is what counts.
Does the whitelist work behind Cloudflare?
Yes, with two entries. A Custom Rule with Skip exempts the monitoring addresses from Managed Rules and Rate Limits. It does not skip Bot-Fight Mode; that mode does not trigger if an IP Access Rule with 'Allow' matches the request first (Cloudflare). Real attackers still hit all defenses. The endpoint /api/public/nodes supplies the addresses, the rule itself is in the Cloudflare section above.
My hosting panel (Plesk, cPanel) has no direct rule input — what to do?
Plesk and cPanel typically offer a module for Custom ModSecurity rules or direct access to config files. In Plesk: Extensions → ModSecurity → Custom rules; in cPanel: ModSecurity Tools → Rules List. Alternatively the whitelist rule can be written to a dedicated .conf file in conf.d that gets picked up on webserver reload.
Note: Sources

This article is based on data from: (Cloudflare), (OWASP), (api.xictraq.com/api/public/nodes, as of 4 November 2026).

Related in XICTRAQ®

First scan usually in under a minute

Let XICTRAQ® watch your website.

Free plan with no fixed term available. No credit card, no installation, no hidden fees.