📝 Installed fail2ban with default settings

This commit is contained in:
z3rOR0ne 2022-07-22 09:22:22 -07:00
parent fad8c1d0fa
commit 8617bcaa41
2 changed files with 18 additions and 0 deletions

6
jail.local Normal file
View file

@ -0,0 +1,6 @@
[DEFAULT]
# here you can overwrite some defaults:
[sshd]
maxretry = 5
enabled = true

View file

@ -39,6 +39,18 @@ rustup update
https://unixcop.com/basic-setup-of-apparmor-on-arch-linux/ https://unixcop.com/basic-setup-of-apparmor-on-arch-linux/
https://forum.artixlinux.org/index.php/topic,3823.msg24770.html#msg24770 https://forum.artixlinux.org/index.php/topic,3823.msg24770.html#msg24770
***Install fail2ban
doas pacman -S fail2ban fail2ban-runit
doas ln -s /etc/runit/sv/fail2ban /run/runit/service/
doas cp ~/Documents/notes/jail.local /etc/fail2ban/
doas sv start fail2ban
## copy into short walkthrough:
***Set up apparmor (basic security measure) ***Set up apparmor (basic security measure)
doas pacman -S apparmor apparmor-runit audit audit-runit python-notify2 python-psutil doas pacman -S apparmor apparmor-runit audit audit-runit python-notify2 python-psutil