aboutsummaryrefslogtreecommitdiffstats
path: root/community/fwsnort/fwsnort.update
blob: 41dc608f6de53c1689a41abeef6a86065cfa8ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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