Last active
May 7, 2024 20:51
-
-
Save da667/28ed48c59f163aad31623f319851c07c to your computer and use it in GitHub Desktop.
snort3 service file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Snort Daemon | |
| After=syslog.target network.target | |
| [Service] | |
| Type=simple | |
| ProtectHome=true | |
| ProtectKernelTunables=true | |
| ProtectKernelModules=true | |
| ProtectControlGroups=true | |
| ExecStartPre=/usr/sbin/ip link set up promisc on arp off multicast off dev snort_iface1 | |
| ExecStartPre=/usr/sbin/ethtool -K snort_iface1 rx off tx off gro off lro off | |
| ExecStart=/usr/local/bin/snort --plugin-path=/usr/local/lib/snort --plugin-path /usr/local/etc/so_rules/ -c /usr/local/etc/snort/snort.lua -D -u snort -g snort -l /var/log/snort -m 0x1b --create-pidfile -s 65535 -k none -i snort_iface1 | |
| Restart=on-failure | |
| RestartSec=120s | |
| [Install] | |
| WantedBy=multi-user.target |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: For users having problems with shared object rules not loading and want to just forego them entirely, remove the line
--plugin-path /usr/local/etc/so_rules/.You'll also need to re-run pulledpork, commenting out or removing the
distroandsorule_pathdirectives to avoid downloading shared-object rules. Alternatively, usesnort2luaand convert the Emerging Threats ruleset from snort 2.9.x to 3.x