Description
- How does it work, and why are my users still blocked*
Steps to Reproduce
- my Power User (Owner and Admin of several phpbb Forums) will be consistently blocked by mod.shield and recidive *
Yesterday evening i´m unblocked him, because he was blocked by mod.shield
After that, i whitelisted him via
cpcmd rampart:whitelist 93.244.x.x
But he was again blocked by mod.shield
so i whitelisted him via
cpcmd scope:set apache.shield-whitelist 93.244.x.x
I´ve verified this…
cpcmd scope:get apache.shield-whitelist
- 127.0.0.1
- 93.244.x.x
But later he was blocked again.
After that in the night he was also blocked by recidive…
I´ve reviewed several times this documentation, to understand the whole implementation…
but… it seams to be outdated:
- mod_evasive mentioned, but not mod.shield
- mentioned, that Whitelisted IPs are “append only” but aren´t written to
/etc/fail2ban/jail.conf
Additional informations:
2026-03-15 11:33:01,727 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 11:33:01
2026-03-15 11:35:44,229 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 11:35:43
2026-03-15 11:35:44,576 fail2ban.actions [1143216]: NOTICE [shield] Ban 93.244.x.x
2026-03-15 11:35:44,580 fail2ban.filter [1143216]: INFO [recidive] Found 93.244.x.x - 2026-03-15 11:35:44
2026-03-15 11:38:43,391 fail2ban.actions [1143216]: NOTICE [shield] Unban 93.244.x.x
2026-03-15 13:27:57,476 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 13:27:57
2026-03-15 13:42:13,226 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 13:42:12
2026-03-15 13:42:13,672 fail2ban.actions [1143216]: NOTICE [shield] Ban 93.244.x.x
2026-03-15 13:42:13,677 fail2ban.filter [1143216]: INFO [recidive] Found 93.244.x.x - 2026-03-15 13:42:13
2026-03-15 13:45:12,100 fail2ban.actions [1143216]: NOTICE [shield] Unban 93.244.x.x
2026-03-15 15:04:09,977 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 15:04:09
2026-03-15 17:45:04,822 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 17:45:03
2026-03-15 17:45:05,293 fail2ban.actions [1143216]: NOTICE [shield] Ban 93.244.x.x
2026-03-15 17:45:05,298 fail2ban.filter [1143216]: INFO [recidive] Found 93.244.x.x - 2026-03-15 17:45:05
2026-03-15 17:48:03,509 fail2ban.actions [1143216]: NOTICE [shield] Unban 93.244.x.x
2026-03-15 20:08:24,378 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 20:08:24
2026-03-15 20:08:43,102 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 20:08:42
2026-03-15 20:08:43,349 fail2ban.actions [1143216]: NOTICE [shield] Ban 93.244.x.x
2026-03-15 20:08:43,354 fail2ban.filter [1143216]: INFO [recidive] Found 93.244.x.x - 2026-03-15 20:08:43
2026-03-15 20:10:37,763 fail2ban.actions [1143216]: NOTICE [shield] Unban 93.244.x.x
2026-03-15 20:16:19,476 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 20:16:19
2026-03-15 20:43:35,228 fail2ban.filter [1143216]: INFO [shield] Found 93.244.x.x - 2026-03-15 20:43:34
2026-03-15 20:43:35,723 fail2ban.actions [1143216]: NOTICE [shield] Ban 93.244.x.x
2026-03-15 20:43:35,727 fail2ban.filter [1143216]: INFO [recidive] Found 93.244.x.x - 2026-03-15 20:43:35
2026-03-15 20:43:35,861 fail2ban.actions [1143216]: NOTICE [recidive] Ban 93.244.x.x
2026-03-15 20:46:34,137 fail2ban.actions [1143216]: NOTICE [shield] Unban 93.244.x.x
[root@webservice log]# ^C
[root@webservice log]# grep 93.244 fail2ban.log
2026-03-16 03:20:44,483 fail2ban.actions [1143216]: NOTICE [recidive] Unban 93.244.x.x
2026-03-16 03:20:49,021 fail2ban.actions [1544953]: NOTICE [recidive] Restore Ban 93.244.x.x
[root@webservice log]# grep 93.244 /etc/fail2ban/jail.conf
[root@webservice log]#
cpcmd rampart:is-banned 93.244.x.x
1
cpcmd scope:get apache.shield-whitelist
- 127.0.0.1
- 93.244.x.x
cpcmd scope:get rampart.fail2ban-whitelist
- 127.0.0.1/8
- 192.168.x.x/32
- 192.168.y.0/24
- 80.151.x.x/32
- x.7.y.z
- y.7.x.z
I understand that rampart:whitelist is before fail2ban-whitelist (as mentioned in the Firewall Documentation)
Why is the IP 93.244.xx banned by recidive at Night / when apiscp Maintenance run but it is whitelisted
Expected Behavior
mod.shield blocks the “Bad Bots” and the whole KI greedy Crawlers, but not my users
Actual Behavior
Users are blocked, very high load by crawlers on the services / too high which results in automatically restarts of the whole server
Environment
ApisCP version: cpcmd misc:cp-version
revision: ca92487ad55c94763dc5ee86356589136e86246e
timestamp: 1762907856
ver_maj: 3
ver_min: 2
ver_patch: 48
ver_pre: ‘’
dirty: false
debug: false
Operating System: uname -r
4.18.0-553.6.1.el8.x86_64