From deecba131b590f843bdbeb48a4746163bec99415 Mon Sep 17 00:00:00 2001 From: CREATIVE_tg1 Date: Wed, 15 Apr 2026 11:24:35 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20server/ip-blocker.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/ip-blocker.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/ip-blocker.sh b/server/ip-blocker.sh index 130cc43..6ba36ff 100644 --- a/server/ip-blocker.sh +++ b/server/ip-blocker.sh @@ -1,5 +1,12 @@ #!/bin/bash +# Проверяем наличие iptables +if ! command -v iptables >/dev/null 2>&1; then + echo "iptables не найден. Устанавливаю..." + sudo apt update + sudo apt install -y iptables +fi + # Путь для команд BAN_CMD=/usr/local/bin/ban-ip UNBAN_CMD=/usr/local/bin/unban-ip