diff options
author | M0Rf30 | 2022-06-17 02:20:27 +0200 |
---|---|---|
committer | M0Rf30 | 2022-06-17 02:20:27 +0200 |
commit | f6ffcda4f5863e338c0961ecd5cdb51d87a266bc (patch) | |
tree | 8e4889562762db18906aaaa92d55de29353b22d0 /snort.install | |
parent | a2b8a58593c308fa7925aebb2ed972f47732e326 (diff) | |
download | aur-f6ffcda4f5863e338c0961ecd5cdb51d87a266bc.tar.gz |
snort: add amish suggestions
Diffstat (limited to 'snort.install')
-rw-r--r-- | snort.install | 26 |
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: |