summaryrefslogtreecommitdiff
path: root/etc.bash
diff options
context:
space:
mode:
authorDenis Chevalier <perso@denischevalier.fr>2026-08-06 12:56:47 +0200
committerDenis Chevalier <perso@denischevalier.fr>2026-08-06 12:56:47 +0200
commitfea9ee54cb9cbaa727bf692c227fe389c49c6551 (patch)
tree79e98c2fc11dc0ae82388bdff915236fd5418db3 /etc.bash
parent144ea2008372126e494aa384c9f2a23248c75d45 (diff)
downloadpostinstall-fea9ee54cb9cbaa727bf692c227fe389c49c6551.tar.gz
postinstall-fea9ee54cb9cbaa727bf692c227fe389c49c6551.tar.bz2
postinstall-fea9ee54cb9cbaa727bf692c227fe389c49c6551.zip
add fail2ban
Diffstat (limited to 'etc.bash')
-rwxr-xr-xetc.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc.bash b/etc.bash
index fcd99a0..80a9310 100755
--- a/etc.bash
+++ b/etc.bash
@@ -25,6 +25,10 @@ sudo ufw logging low
sudo ufw enable
sudo systemctl enable --now ufw
+# fail2ban
+sudo cp ./etc/fail2ban/sshd.local /etc/fail2ban
+sudo systemctl enable --now fail2ban
+
# fs trim
sudo systemctl enable --now fstrim.timer