aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fwsnort/fwsnort.update
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fwsnort/fwsnort.update')
-rw-r--r--testing/fwsnort/fwsnort.update15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/fwsnort/fwsnort.update b/testing/fwsnort/fwsnort.update
new file mode 100644
index 0000000000..41dc608f6d
--- /dev/null
+++ b/testing/fwsnort/fwsnort.update
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# update fwsnort rules / psad signatures
+/usr/sbin/fwsnort --update-rules
+#generate iptables ruleset
+/usr/sbin/fwsnort
+#splice rules into iptables
+/var/lib/fwsnort/fwsnort.sh
+
+if ps aux | grep psad; then
+ psad --sig-update
+ echo "running 'psad -H'"
+ psad -H
+fi
+