diff options
author | jeh <jeh@FreeBSD.org> | 2001-06-19 01:59:10 +0000 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2001-06-19 01:59:10 +0000 |
commit | df4df256b3e63ba0260c0d0b5477bcc316789fb8 (patch) | |
tree | 16ee6b0b17e450a1480bb7d68efe64360ab6c504 /www/mod_extract_forwarded_ap13 | |
parent | 9871433da2b8566cda216c86ab7a6dced522899a (diff) | |
download | FreeBSD-ports-df4df256b3e63ba0260c0d0b5477bcc316789fb8.zip FreeBSD-ports-df4df256b3e63ba0260c0d0b5477bcc316789fb8.tar.gz |
New port of mod_extract_forwarded, an Apache module that can make proxied
requests appear with client IP.
PR: 27998
Submitted by: Anders Nordby <anders@fix.no>
Diffstat (limited to 'www/mod_extract_forwarded_ap13')
-rw-r--r-- | www/mod_extract_forwarded_ap13/Makefile | 37 | ||||
-rw-r--r-- | www/mod_extract_forwarded_ap13/distinfo | 1 | ||||
-rw-r--r-- | www/mod_extract_forwarded_ap13/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_extract_forwarded_ap13/pkg-descr | 13 | ||||
-rw-r--r-- | www/mod_extract_forwarded_ap13/pkg-message | 15 | ||||
-rw-r--r-- | www/mod_extract_forwarded_ap13/pkg-plist | 6 |
6 files changed, 73 insertions, 0 deletions
diff --git a/www/mod_extract_forwarded_ap13/Makefile b/www/mod_extract_forwarded_ap13/Makefile new file mode 100644 index 0000000..3081d06 --- /dev/null +++ b/www/mod_extract_forwarded_ap13/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: mod_extract_forwarded +# Date created: 9 June 2001 +# Whom: Anders Nordby <anders@fix.no> +# +# $FreeBSD$ +# + +PORTNAME= mod_extract_forwarded +PORTVERSION= 1.2 +CATEGORIES= www +MASTER_SITES= http://web.systhug.com/mod_extract_forwarded/ \ + http://www.freenix.no/~anders/ + +MAINTAINER= anders@fix.no + +BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +APXS?= ${LOCALBASE}/sbin/apxs +DOCS= mod_extract_forwarded.html README + +do-build: + cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c + +do-install: + cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so +.if !defined(NOPORTDOCS) + ${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/share/doc/${PORTNAME} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME} +.endfor +.endif + ${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/mod_extract_forwarded_ap13/distinfo b/www/mod_extract_forwarded_ap13/distinfo new file mode 100644 index 0000000..9a61d52 --- /dev/null +++ b/www/mod_extract_forwarded_ap13/distinfo @@ -0,0 +1 @@ +MD5 (mod_extract_forwarded-1.2.tar.gz) = 70ecf6f26f5561377b97ba8cae10e95f diff --git a/www/mod_extract_forwarded_ap13/pkg-comment b/www/mod_extract_forwarded_ap13/pkg-comment new file mode 100644 index 0000000..2b25fe5 --- /dev/null +++ b/www/mod_extract_forwarded_ap13/pkg-comment @@ -0,0 +1 @@ +An Apache module that can make proxied requests appear with client IP diff --git a/www/mod_extract_forwarded_ap13/pkg-descr b/www/mod_extract_forwarded_ap13/pkg-descr new file mode 100644 index 0000000..a1f0912 --- /dev/null +++ b/www/mod_extract_forwarded_ap13/pkg-descr @@ -0,0 +1,13 @@ +mod_extract_forwarded hooks itself into Apache's header parsing phase and looks +for the X-Forwarded-For header which some (most?) proxies add to the proxied +HTTP requests. It extracts the IP from the X-Forwarded-For and modifies the +connection data so to the rest of Apache the request looks like it came from +that IP rather than the proxy IP. + +mod_extract_forwarded can be dangerous for host based access control because +X-Forwarded-For is easily spoofed. Because of this you can configure which +proxies you trust or don't trust. + +WWW: http://web.systhug.com/mod_extract_forwarded/ + +- Anders Nordby <anders@fix.no> diff --git a/www/mod_extract_forwarded_ap13/pkg-message b/www/mod_extract_forwarded_ap13/pkg-message new file mode 100644 index 0000000..de71faa --- /dev/null +++ b/www/mod_extract_forwarded_ap13/pkg-message @@ -0,0 +1,15 @@ +************************************************************ +You've installed mod_extract_forward, an Apache module that +can make proxied requests appear with client IPs. + +Edit your apache.conf or httpd.conf to enable and setup this +module. Have a look at the files in +${PREFIX}/share/doc/mod_extract_forward for information on +how to configure it. + +Then do this to make it work effective: + +# apachectl configtest (see if there are any config errors) +# apachectl restart + +************************************************************ diff --git a/www/mod_extract_forwarded_ap13/pkg-plist b/www/mod_extract_forwarded_ap13/pkg-plist new file mode 100644 index 0000000..57031aa --- /dev/null +++ b/www/mod_extract_forwarded_ap13/pkg-plist @@ -0,0 +1,6 @@ +libexec/apache/mod_extract_forwarded.so +@exec %D/sbin/apxs -e -A -n extract_forwarded %D/%F +@unexec %D/sbin/apxs -e -A -n extract_forwarded %D/%F +%%PORTDOCS%%share/doc/mod_extract_forwarded/mod_extract_forwarded.html +%%PORTDOCS%%share/doc/mod_extract_forwarded/README +%%PORTDOCS%%@dirrm share/doc/mod_extract_forwarded |