добавил проверку конфигурации перед перезагрузкой сервиса
This commit is contained in:
joker2013 2022-04-11 10:05:57 +03:00 committed by GitHub
parent cc7d93173d
commit 1c0f49fefc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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