-
Install Fail2Ban: sudo apt install -y fail2ban```
-
Create
/etc/fail2ban/jail.d/sshd.conf:[sshd] enabled = true port = 22 filter = sshd logpath = /var/log/auth.log maxretry = 3
-
Create
/etc/fail2ban/jail.d/openvpn.conf:[openvpn] enabled = true port = 1194 protocol = udp filter = openvpn logpath = /var/log/openvpn.log maxretry = 3
-
Restart fail2ban
sudo systemctl restart fail2ban
Created
May 16, 2019 16:08
-
-
Save cyrex562/ba8a80ba00de1cd0c15d93ec4c82c63d to your computer and use it in GitHub Desktop.
setup fail2ban on linux hosts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment