aboutsummaryrefslogtreecommitdiffstats
path: root/community/fwsnort/fwsnort.update
diff options
context:
space:
mode:
Diffstat (limited to 'community/fwsnort/fwsnort.update')
-rw-r--r--community/fwsnort/fwsnort.update15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/fwsnort/fwsnort.update b/community/fwsnort/fwsnort.update
new file mode 100644
index 0000000000..41dc608f6d
--- /dev/null
+++ b/community/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
+