summarylogtreecommitdiffstats
path: root/snort.install
diff options
context:
space:
mode:
authorM0Rf302022-06-17 02:20:27 +0200
committerM0Rf302022-06-17 02:20:27 +0200
commitf6ffcda4f5863e338c0961ecd5cdb51d87a266bc (patch)
tree8e4889562762db18906aaaa92d55de29353b22d0 /snort.install
parenta2b8a58593c308fa7925aebb2ed972f47732e326 (diff)
downloadaur-f6ffcda4f5863e338c0961ecd5cdb51d87a266bc.tar.gz
snort: add amish suggestions
Diffstat (limited to 'snort.install')
-rw-r--r--snort.install26
1 files changed, 8 insertions, 18 deletions
diff --git a/snort.install b/snort.install
index 1bfb39bc09ea..5a5f727a7a1d 100644
--- a/snort.install
+++ b/snort.install
@@ -1,26 +1,16 @@
post_install() {
- getent group snort >/dev/null || groupadd -g 29 snort
- getent passwd snort >/dev/null || useradd -c 'Snort user' -u 29 -g snort -d /var/log/snort -s /bin/false snort
- passwd -l snort &>/dev/null
+ /usr/bin/nohup /usr/bin/pulledpork_update.sh /etc/snort/rules/snort.rules > /dev/null 2>&1 &
+ cat << EOF
+>>> EDIT /etc/snort/homenet.conf file to match your local network.
+>>> Add local rules to /etc/snort/rules/local.rules
- [ -f var/log/snort/alert ] || : >var/log/snort/alert
- chown snort.snort var/log/snort/ -R
-
- cat << _EOF
-
->>> You have to edit the HOME_NET variable in the /etc/snort/snort.conf file to reflect your local network.
->>> If you do not change it, snort may not work.
-
-_EOF
+>>> Note: ALERTs are automatically deleted after 60 days
+>>> use barnyard2 to store them in database
+EOF
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- userdel snort &>/dev/null
- groupdel snort &>/dev/null
+ post_install $1
}
# vim:set ts=2 sw=2 et: