Index: security/Makefile =================================================================== --- security/Makefile +++ security/Makefile @@ -1066,6 +1066,7 @@ SUBDIR += snoopy SUBDIR += snort SUBDIR += snort-rep + SUBDIR += snort2pfcd SUBDIR += snortreport SUBDIR += snortsam SUBDIR += snortsnarf Index: security/snort2pfcd/Makefile =================================================================== --- /dev/null +++ security/snort2pfcd/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= snort2pfcd +PORTVERSION= 0.5 +CATEGORIES= security +MASTER_SITES= http://www.tworoutes.com/oss/ + +MAINTAINER= onestsam@gmail.com +COMMENT= Snort alert to pf blocker + +LIB_DEPENDS= libcidr.so:devel/libcidr +RUN_DEPENDS= snort:security/snort + +USES= localbase + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/snort2pfcd ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/snort2pfcd ${STAGEDIR}${PREFIX}/etc/rc.d + ${INSTALL_MAN} ${WRKSRC}/snort2pfcd.8.gz ${STAGEDIR}${MAN8PREFIX}/man/man8 + +.include Index: security/snort2pfcd/distinfo =================================================================== --- /dev/null +++ security/snort2pfcd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1472559141 +SHA256 (snort2pfcd-0.5.tar.gz) = ea2f3df7bfbad5ecce7a266df89c4102cf5e92fa72869615925ca15631064dfe +SIZE (snort2pfcd-0.5.tar.gz) = 9321 Index: security/snort2pfcd/pkg-descr =================================================================== --- /dev/null +++ security/snort2pfcd/pkg-descr @@ -0,0 +1,3 @@ +Analyzes snort alert output and blocks ip addresses using pf for a specified +period of time. A whitelist is specified in CIDR format to exclude local and +trusted ip address from being blocked. Index: security/snort2pfcd/pkg-plist =================================================================== --- /dev/null +++ security/snort2pfcd/pkg-plist @@ -0,0 +1,3 @@ +etc/rc.d/snort2pfcd +man/man8/snort2pfcd.8.gz +sbin/snort2pfcd