squid and SQUID_FOLLOW_XFF

John Nielsen john at jnielsen.net
Thu Apr 27 20:17:41 UTC 2006


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


More information about the freebsd-questions mailing list