Project

General

Profile

Feature #1149 » suricata.service

god lol, 03/19/2014 11:39 AM

 
[Unit]
Description=Open Source Next Generation Intrusion Detection and Prevention Engine
After=syslog.target network.target

[Service]
Type=forking
ExecStart=/usr/bin/suricata -c /etc/suricata/suricata.conf -q 0 -q 1 -D
ExecStartPost=/sbin/iptables -I INPUT -mark ! --mark 1/1 -j NFQUEUE -–queue-balance 0:1
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/sbin/iptables -D INPUT -j NFQUEUE -–queue-balance 0:1
ExecStopPost=/bin/kill $MAINPID

[Install]
WantedBy=multi-user.target
    (1-1/1)