In our Discourse website(Public Site) some of the moderators are unable to login.
When we analyzed this issue, we were able to identify the error message which said: the ip address is blocked from being accessed.
On further analysis, Discourse has out of box functionality, which runs background jobs that identifies banned ip addresses from the same subnet and if it reaches the threshold, it bans the entire subnet.
The threshold is identified by admin setting : min_ban_entries_for_roll_up which is set to 100 in our production environment.(Which is being reached in a short span of time)
So could anyone please suggest a optimal value for this threshold setting.
סיכום מבוסס בינה מלאכותית
Moderators on a Discourse site are unable to log in due to IP address blocking triggered by the system’s automatic subnet banning feature. This occurs when the number of banned IPs from the same subnet reaches the threshold set by the admin setting min_ban_entries_for_roll_up, which is currently set to 100 in production — a value that is being exceeded quickly. Nareshh_Raja seeks advice on an optimal threshold value. IAmGav asks whether MaxMind geolocation is configured. Ed_S suggests that if the site is behind a CDN (like Cloudflare), many users may appear to originate from the same IP, causing false positives — and recommends using Cloudflare-compatible config files to resolve this. He also notes that he uses a much higher threshold (999) on his smaller site, which avoids the issue without needing infinite tolerance. The discussion highlights the need to adjust the threshold based on traffic patterns and infrastructure, particularly when using CDNs or facing high spam volumes.
do you have MaxMind setup ?
If you have your site behind a CDN, you need to beware that many users may appear to the system as coming from the same IP address. If using cloudflare, there’s an alternative config file which sorts this out. Perhaps see
or How do I reveal real IPs using CloudFlare
I see I’ve set that to 999 - which isn’t infinite, but I don’t have a large site (or a spam problem)