From 1c0f49fefcb9b1e0f122bd43ed50a77ed92233e7 Mon Sep 17 00:00:00 2001 From: joker2013 Date: Mon, 11 Apr 2022 10:05:57 +0300 Subject: [PATCH] Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit добавил проверку конфигурации перед перезагрузкой сервиса --- update_ip_rep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_ip_rep.sh b/update_ip_rep.sh index b16dbce..a9fda65 100644 --- a/update_ip_rep.sh +++ b/update_ip_rep.sh @@ -3,4 +3,4 @@ rm -Rf /etc/suricata/iprep/reputation.list python3 /opt/OTX-Suricata-master/otx-suricata/suricata.py --key 3f59b21830614df4e88ef727cc576a89a5bd58d831a01856ff34a9f65035b51c --skip-filemd5 --destination-directory /etc/suricata/iprep/ curl -Lo /tmp/talos_ip "http://www.talosintelligence.com/documents/ip-blacklist" sed "s/$/,41,127/" /tmp/talos_ip >> /etc/suricata/iprep/reputation.list -systemctl restart suricata +suricata -T && systemctl restart suricata