Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 16:17:33 -0400
From:      John Nielsen <john@jnielsen.net>
To:        freebsd-questions@freebsd.org
Cc:        Miguel <mmiranda@123.com.sv>
Subject:   Re: squid and SQUID_FOLLOW_XFF
Message-ID:  <200604271617.33649.john@jnielsen.net>
In-Reply-To: <44512321.4080603@123.com.sv>
References:  <44512321.4080603@123.com.sv>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 27 April 2006 16:01, Miguel wrote:
> Hi, i just installed squid using ports in 6.1-RC1, i noticed that i
> forgot to enable the SQUID_FOLLOW_XFF flag where configuring the
> options, i want to add it now, how can i do that?
> btw, im using portinstall, and i have tried
>
> portinstall -m '-DSQUID_FOLLOW_XFF' squid
>
>  without luck,  it didnt work out.
>  when i add the lines
>
> acl miguel src 192.168.10.124
> follow_x_forwarded_for deny miguel
>
> i got this error message:
>
> proxy# /usr/local/etc/rc.d/squid restart
> 2006/04/27 13:51:52| parseConfigFile: line 1894 unrecognized:
> 'follow_x_forwarded_for deny miguel' Waiting for PIDS: 432 434.
> Starting squid.
> 2006/04/27 13:51:54| parseConfigFile: line 1894 unrecognized:
> 'follow_x_forwarded_for deny miguel'

This is an option for the port, which you can enable by 
defining "WITH_SQUID_FOLLOW_XFF=yes". e.g.:

portupgrade -f -m "WITH_SQUID_FOLLOW_XFF=yes"
OR (if the port isn't already installed)
cd /usr/ports/www/squid && make WITH_SQUID_FOLLOW_XFF=yes install clean

And actually, squid (and many other ports with multiple compile-time options) 
supports "make config" as well, so you can make your selections from a menu.  
The menu only comes up automatically if there is no stored configuration 
(in /var/db/ports), so you may not be seeing it every time.

I don't know if there is a better way to do it, but I always check for port 
options like this by doing something like:

cd /usr/ports/www/squid
grep -F ".if" Makefile

JN



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604271617.33649.john>