summaryrefslogtreecommitdiff
path: root/pcr/snort/snort@.service
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/snort/snort@.service')
-rw-r--r--pcr/snort/snort@.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/pcr/snort/snort@.service b/pcr/snort/snort@.service
new file mode 100644
index 000000000..b78d543d4
--- /dev/null
+++ b/pcr/snort/snort@.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Snort IDS system listening on '%I'
+
+[Service]
+Type=simple
+ExecStartPre=/usr/sbin/ip link set up dev %I
+ExecStart=/usr/bin/snort --daq-dir /usr/lib/daq/ -A fast -b -p -u snort -g snort -c /etc/snort/snort.conf -i %I
+
+[Install]
+Alias=multi-user.target.wants/snort@eth0.service