---
name: ap22-mod_extract_forwarded
version: 2.0.2_4
origin: www/mod_extract_forwarded
comment: An Apache module that can make proxied requests appear with client IP
arch: freebsd:9:x86:64
www: http://www.openinfo.co.uk/apache/
maintainer: kuriyama@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 29860
desc: |
  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://www.openinfo.co.uk/apache/
deps:
  apache22: {origin: www/apache22, version: 2.2.25}
  expat: {origin: textproc/expat2, version: 2.1.0}
  perl: {origin: lang/perl5.14, version: 5.14.4}
  pcre: {origin: devel/pcre, version: 8.33}
  gettext: {origin: devel/gettext, version: 0.18.3}
  apr: {origin: devel/apr1, version: 1.4.8.1.5.2}
  gdbm: {origin: databases/gdbm, version: 1.10}
  db42: {origin: databases/db42, version: 4.2.52_5}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories:
- www
shlibs_provided:
- mod_extract_forwarded.so
options: {YOSHFUJI: off}
files:
  /usr/local/libexec/apache22/mod_extract_forwarded.so: aa2a7a89c6aff7e9c625b334a6b88f378110d85651db869f1d052818c608bd73
  /usr/local/share/doc/mod_extract_forwarded/INSTALL: 0edc43ec8cf31f924747500c2e45d9af2c6294ca4e6506ad99f4b0d6e47356ee
  /usr/local/share/doc/mod_extract_forwarded/README: fc52152cb1b648564fcd8385bed09c4342a05e55a2cde0749cf0232be226392f
directories:
  /usr/local/share/doc/mod_extract_forwarded/: n
scripts:
  post-install: |
    /usr/local/sbin/apxs -e -A -n extract_forwarded /usr/local/libexec/apache22/mod_extract_forwarded.so
  pre-deinstall: |
    /usr/bin/sed -i '' -E '/LoadModule[[:blank:]]+extract_forwarded_module/d' /usr/local/etc/apache22/httpd.conf
    echo "Don't forget to remove all mod_extract_forwarded-related directives in your httpd.conf"
message: |
  ************************************************************
  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

  ************************************************************
