mirror of
https://github.com/kejilion/sh.git
synced 2025-10-03 23:34:20 +08:00
Download fail2ban config for DNF systems
Add support for downloading fail2ban config on DNF-based systems.
This commit is contained in:
parent
dba36b8f1e
commit
5a189e54f2
1 changed files with 5 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue