Browse Source

suricata rsyslog

135-suricata
Steven Foerster 5 years ago
parent
commit
cb2be0a7b0
  1. 2
      scripts/conf/20-suricata.conf
  2. 11
      scripts/subinstallers/suricata.sh

2
scripts/conf/20-suricata.conf

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
$template SuricataTemplate, "<%PRI%>%syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%"
user.alert /var/log/suricata.log;SuricataTemplate

11
scripts/subinstallers/suricata.sh

@ -36,6 +36,11 @@ else @@ -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
Loading…
Cancel
Save