This file contains 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
#!/bin/bash | |
set -euxo pipefail | |
dnf install -y fail2ban | |
systemctl enable fail2ban | |
cat > /etc/fail2ban/jail.local<< EOF | |
[DEFAULT] | |
# Ban hosts for one hour: |
OlderNewer