Fix Fail2ban recidive jail logpath and re-enable on openSUSE
This commit is contained in:
@@ -31,9 +31,9 @@ install_fail2ban() {
|
||||
;;
|
||||
opensuse)
|
||||
handle_error sudo zypper install -y fail2ban
|
||||
# On openSUSE, Fail2ban has issues with systemd backend, skip it for now
|
||||
log_warning "Fail2ban on openSUSE may have compatibility issues. Consider manual configuration."
|
||||
return 0
|
||||
# On openSUSE, create a basic log file for Fail2ban to monitor
|
||||
sudo touch /var/log/fail2ban.log
|
||||
sudo chmod 644 /var/log/fail2ban.log
|
||||
;;
|
||||
*)
|
||||
log_error "Unsupported Linux distribution: $DISTRO"
|
||||
@@ -129,6 +129,7 @@ enabled = false
|
||||
|
||||
[recidive]
|
||||
enabled = true
|
||||
logpath = /var/log/fail2ban.log
|
||||
EOF
|
||||
|
||||
handle_error sudo systemctl enable fail2ban
|
||||
|
||||
Reference in New Issue
Block a user