Skip to content

docs(admin): explain relationship between bruteforcesettings and fail2ban#14909

Merged
skjnldsv merged 3 commits into
masterfrom
fix/bruteforce-vs-fail2ban-comparison
May 19, 2026
Merged

docs(admin): explain relationship between bruteforcesettings and fail2ban#14909
skjnldsv merged 3 commits into
masterfrom
fix/bruteforce-vs-fail2ban-comparison

Conversation

@skjnldsv

@skjnldsv skjnldsv commented May 19, 2026

Copy link
Copy Markdown
Member

☑️ Resolves

Summary

The documentation for Nextcloud's built-in brute force protection and for fail2ban
existed in separate pages with no cross-reference or explanation of how they relate.
Admins frequently wonder whether to use one or both.

Added a Brute force protection vs fail2ban section to bruteforce_configuration.rst
explaining:

  • Nextcloud brute force protection (application layer): rate-limits suspicious IPs
    transparently, no OS configuration required
  • fail2ban (OS/network layer): drops packets in the firewall before they reach the
    web server, reducing resource consumption
  • They are complementary — using both is recommended for production servers

Also added a missing .. _setup_fail2ban: reference label to the fail2ban section in
harden_server.rst so the new cross-reference link resolves correctly.

cc @FernandoMarques-Santos @paolosg

🖼️ Screenshots

image

✅ Checklist

  • I have built the documentation locally and reviewed the output
  • Screenshots are included for visual changes (N/A — text only)
  • I have not moved or renamed pages (or added a redirect if I did)
  • I have run codespell or similar and addressed any spelling issues

Admins frequently ask whether to use Nextcloud's built-in brute force
protection or fail2ban, and whether both are needed. Added a new section
to bruteforce_configuration.rst that explains the layer each operates on
(application vs OS/network) and why they are complementary rather than
mutually exclusive.

Also added a missing RST reference label to the fail2ban section in
harden_server.rst so it can be cross-referenced.

Fixes #11425

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@github-actions

github-actions Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

📄 2 changed documentation pages

Last updated: Tue, 19 May 2026 19:54:56 GMT

Comment thread admin_manual/configuration_server/bruteforce_configuration.rst Outdated
The bruteforcesettings app only provides the admin UI and exclusion
settings. The actual brute force protection is implemented in Nextcloud
Server core and runs regardless of whether the app is enabled.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv requested a review from provokateurin May 19, 2026 12:45
@skjnldsv

Copy link
Copy Markdown
Member Author

Added screenshot

… BFP

The protection is built into Nextcloud Server core and is always active.
Disabling the app only removes the ability to manage brute force settings
from the Web interface.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv force-pushed the fix/bruteforce-vs-fail2ban-comparison branch from 618b442 to 6c16092 Compare May 19, 2026 12:49
@skjnldsv

Copy link
Copy Markdown
Member Author

/backport to stable34

@skjnldsv

Copy link
Copy Markdown
Member Author

/backport to stable33

@skjnldsv skjnldsv merged commit a913ad2 into master May 19, 2026
25 checks passed
@skjnldsv skjnldsv deleted the fix/bruteforce-vs-fail2ban-comparison branch May 19, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bruteforcesettings vs fail2ban

3 participants