ports/129942: [NEW PORT] www/mod_ip_count: DoS prevention apache2 module
Gea-Suan Lin
gslin at gslin.org
Fri Dec 26 07:30:02 UTC 2008
>Number: 129942
>Category: ports
>Synopsis: [NEW PORT] www/mod_ip_count: DoS prevention apache2 module
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 26 07:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Gea-Suan Lin
>Release: FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD host-1.pixnet.tw 7.0-STABLE FreeBSD 7.0-STABLE #1: Wed Jul 16 13:00:27 CST 2008
>Description:
mod_ip_count is a DoS prevention apache2 module. It works by
restricting the number of requests that a given client can issue to a
server pool.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- mod_ip_count-r32.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mod_ip_count
# mod_ip_count/pkg-descr
# mod_ip_count/Makefile
# mod_ip_count/pkg-plist
# mod_ip_count/distinfo
# mod_ip_count/files
# mod_ip_count/files/patch-apr_memcache.c
#
echo c - mod_ip_count
mkdir -p mod_ip_count > /dev/null 2>&1
echo x - mod_ip_count/pkg-descr
sed 's/^X//' >mod_ip_count/pkg-descr << 'f0f39495fc4223f215bf3cf5aef630fa'
Xmod_ip_count is a DoS prevention apache2 module. It works by
Xrestricting the number of requests that a given client can issue to a
Xserver pool.
f0f39495fc4223f215bf3cf5aef630fa
echo x - mod_ip_count/Makefile
sed 's/^X//' >mod_ip_count/Makefile << 'cb1f38e9a3b879a9f5773a54a71f1a95'
X# New ports collection makefile for: mod_ip_count
X# Date created: 2008-12-26
X# Whom: Gea-Suan Lin <gslin at gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mod_ip_count
XDISTVERSION= r32
XCATEGORIES= www
XMASTER_SITES= http://staff.pixnet.tw/~gslin/files/
X
XMAINTAINER= gslin at gslin.org
XCOMMENT= DoS prevention apache2 module
X
XGNU_CONFIGURE= yes
XUSE_APACHE= 20+
XUSE_BZIP2= yes
XWRKSRC= ${WRKDIR}/${PORTNAME}
X
X.include <bsd.port.mk>
cb1f38e9a3b879a9f5773a54a71f1a95
echo x - mod_ip_count/pkg-plist
sed 's/^X//' >mod_ip_count/pkg-plist << 'c4fd5b8e2117f25ebf248db0e54adf2a'
X at comment $FreeBSD$
X%%APACHEMODDIR%%/mod_ip_count.so
c4fd5b8e2117f25ebf248db0e54adf2a
echo x - mod_ip_count/distinfo
sed 's/^X//' >mod_ip_count/distinfo << '82784d1debba780e0542a03ec82e5eca'
XMD5 (mod_ip_count-r32.tar.bz2) = 52863f9c5c15bfb350f994b067175dda
XSHA256 (mod_ip_count-r32.tar.bz2) = 17c2fe7113b86c1ac801a9c35064dff40f17a187266e772939a70e42d1c61b75
XSIZE (mod_ip_count-r32.tar.bz2) = 240761
82784d1debba780e0542a03ec82e5eca
echo c - mod_ip_count/files
mkdir -p mod_ip_count/files > /dev/null 2>&1
echo x - mod_ip_count/files/patch-apr_memcache.c
sed 's/^X//' >mod_ip_count/files/patch-apr_memcache.c << 'b474030fdb372ed7fbbe6947926c298f'
X--- apr_memcache.c.orig 2008-12-26 14:40:09.000000000 +0800
X+++ apr_memcache.c 2008-12-26 14:40:17.000000000 +0800
X@@ -246,7 +246,7 @@
X
X conn->p = np;
X
X- rv = apr_socket_create(&conn->sock, APR_INET, SOCK_STREAM, np);
X+ rv = apr_socket_create(&conn->sock, APR_INET, SOCK_STREAM, APR_PROTO_TCP, np);
X
X if (rv != APR_SUCCESS) {
X return rv;
b474030fdb372ed7fbbe6947926c298f
exit
--- mod_ip_count-r32.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list