diff options
author | erwin <erwin@FreeBSD.org> | 2006-09-12 18:38:42 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2006-09-12 18:38:42 +0800 |
commit | f347b1b49ef21a89a7e799fa6f286079901a3113 (patch) | |
tree | 1daf4f5aa4bbe9dfb49372a4ce2ace1bace10d2a /security | |
parent | 82c76cf8fb43a0cbf8970d2e9f3cf745fb6b4029 (diff) | |
download | freebsd-ports-gnome-f347b1b49ef21a89a7e799fa6f286079901a3113.tar.gz freebsd-ports-gnome-f347b1b49ef21a89a7e799fa6f286079901a3113.tar.zst freebsd-ports-gnome-f347b1b49ef21a89a7e799fa6f286079901a3113.zip |
Add a file missed in the last commit which:
- Add p0f (passive OS fingerprinting) to OPTIONS and an rc.d script for p0fanalyzer
PR: 102944
Submitted by: Gabor Kovesdan <gkovesdan@t-hosting.hu> (maintainer)
Noticed by: Henrik Schack <henrik@schack.dk>
Diffstat (limited to 'security')
-rw-r--r-- | security/amavisd-new/files/p0fanalyzer.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/security/amavisd-new/files/p0fanalyzer.sh b/security/amavisd-new/files/p0fanalyzer.sh new file mode 100644 index 000000000000..77bb4a1f5042 --- /dev/null +++ b/security/amavisd-new/files/p0fanalyzer.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: p0fanalyzer +# REQUIRE: DAEMON +# BEFORE: amavisd +# KEYWORD: FreeBSD + +p0fanalyzer_enable="${p0fanalyzer_enable-NO}" + +. /etc/rc.subr + +name="p0fanalyzer" +rcvar=`set_rcvar` + +start_cmd=p0fanalyzer_start +stop_cmd=p0fanalyzer_stop + +p0fanalyzer_start() { + checkyesno p0fanalyzer_enable && echo "Starting p0f-analyzer." && \ + /usr/sbin/daemon -p /var/run/p0fanalyzer1.pid \ + /usr/local/bin/p0f -i bge0 -l 'tcp dst port 25' 2>&1 | \ + /usr/sbin/daemon -p /var/run/p0fanalyzer2.pid \ + /usr/local/sbin/p0f-analyzer.pl 2345 +} + +p0fanalyzer_stop() { + /bin/kill `cat /var/run/p0fanalyzer2.pid` + /bin/kill `cat /var/run/p0fanalyzer1.pid` +} + +load_rc_config $name +run_rc_command "$1" |