From 50e52fa01bcdc4817dea7bf669d9ef45128ae287 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sun, 10 Dec 2023 17:01:45 +0100 Subject: [PATCH] Update install.sh journalctl --vacuum-size=500M --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 127c0913..4cd5962b 100644 --- a/install.sh +++ b/install.sh @@ -17,6 +17,9 @@ sudo sed -i '/^\[sshd\]$/a enabled = true\nmaxretry = 3\nfindtime = 600\nbantime # Restart Fail2Ban to apply changes sudo systemctl restart fail2ban +# Run journalctl vacuum +sudo journalctl --vacuum-size=500M + sudo ipset create blacklist hash:ip sudo systemctl enable nginx