mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
- optional pcap filter in rc.conf.
Example: snort_expression="not net after.nat.addr.ess/24" - bump PORTREVISION PR: ports/113551 Submitted by: Tomoyuki Sakurai <cherry_AT_trombik dot org>
This commit is contained in:
parent
74f223bdab
commit
9da0f9fbc8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193441
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= snort
|
||||
PORTVERSION= 2.6.1.4
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.snort.org/dl/current/
|
||||
|
||||
|
@ -15,6 +15,12 @@
|
||||
# Default: ""
|
||||
# snort_conf (str): Snort configuration file
|
||||
# Default: ${PREFIX}/etc/snort/snort.conf
|
||||
# snort_expression (str): filter expression
|
||||
# If your expression is very long, set
|
||||
# kern.ps_arg_cache_limit sysctl variable
|
||||
# to large value. Otherwise, snort won't
|
||||
# restart!
|
||||
# Default: ""
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
@ -33,5 +39,6 @@ load_rc_config $name
|
||||
[ -n "$snort_interface" ] && snort_flags="$snort_flags -i $snort_interface" \
|
||||
&& pidfile="/var/run/snort_${snort_interface}.pid"
|
||||
[ -n "$snort_conf" ] && snort_flags="$snort_flags -c $snort_conf"
|
||||
[ -n "$snort_expression" ] && snort_flags="$snort_flags $snort_expression"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user