mirror of
https://gitlab.com/cyber5k/mistborn.git
synced 2022-06-09 18:03:35 +03:00
suricata rsyslog
This commit is contained in:
2
scripts/conf/20-suricata.conf
Normal file
2
scripts/conf/20-suricata.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
$template SuricataTemplate, "<%PRI%>%syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%"
|
||||
user.alert /var/log/suricata.log;SuricataTemplate
|
||||
@@ -36,6 +36,11 @@ else
|
||||
fi
|
||||
|
||||
# iptables
|
||||
#sudo iptables -A INPUT -j NFQUEUE
|
||||
#sudo iptables -I FORWARD -j NFQUEUE
|
||||
#sudo iptables -I OUTPUT -j NFQUEUE
|
||||
sudo iptables -A INPUT -j NFQUEUE
|
||||
sudo iptables -I FORWARD -j NFQUEUE
|
||||
sudo iptables -I OUTPUT -j NFQUEUE
|
||||
|
||||
# rsyslog to create /var/log/suricata.log
|
||||
sudo cp ./scripts/conf/20-suricata.conf /etc/rsyslog.d/
|
||||
sudo chown root:root /etc/rsyslog.d/20-suricata.conf
|
||||
sudo systemctl restart rsyslog
|
||||
Reference in New Issue
Block a user