Download fail2ban config for DNF systems

Add support for downloading fail2ban config on DNF-based systems.
This commit is contained in:
科技lion 2025-09-28 17:50:33 +08:00 committed by GitHub
parent dba36b8f1e
commit 5a189e54f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3038,6 +3038,11 @@ f2b_install_sshd() {
start fail2ban
enable fail2ban

if grep -q 'dnf' /etc/issue; then
cd /etc/fail2ban/jail.d/
curl -sS -O ${gh_proxy}raw.githubusercontent.com/kejilion/config/main/fail2ban/centos-ssh.conf
fi

}

f2b_sshd() {