Repository navigation
feat(roles/fail2ban): enable the Apache jails on hosts clients reach directly - #779
Merged
Merged
Conversation
…n the combined format
…directly On hosts with /var/log/httpd the role enables apache-auth, apache-fakegooglebot, apache-modsecurity, apache-nohome, apache-noscript, apache-overflows and php-url-fopen, unless apache_httpd__mod_remoteip_internal_proxy lists a proxy; fail2ban__jails_apache_enabled overrides this. sshd runs the filter in aggressive mode, and a jail without a log file no longer keeps fail2ban from starting (skip_if_nologs). Jails measured against httpd 2.4.37/2.4.62/2.4.63, bash 4.4/5.1/5.2 and OpenSSH 8.0/8.7/9.9 on Rocky 8, 9 and 10; apache-shellshock and selinux-ssh left out (dead, or counting sshd failures twice), apache-badbots and apache-botsearch stay opt-in (unmaintained lists).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
apache-auth,apache-fakegooglebot,apache-modsecurity,apache-nohome,apache-noscript,apache-overflows,php-url-fopen) on hosts with/var/log/httpd. It leaves them out whereapache_httpd__mod_remoteip_internal_proxylists a proxy.fail2ban__jails_apache_enabledoverrides this.mode = aggressive.skip_if_nologs = trueis set.combinedinstead oflinuxfabrikio.Each jail was measured on Rocky 8, 9 and 10. The Molecule
fail2ban/installscenario is green on rocky8 (proxy case), rocky9 and rocky10, andfail2ban/removeis green on rocky10.🤖 Generated with Claude Code