From owner-freebsd-questions@FreeBSD.ORG Thu Apr 27 20:17:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F2FC16A401 for ; Thu, 27 Apr 2006 20:17:41 +0000 (UTC) (envelope-from john@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B58843D49 for ; Thu, 27 Apr 2006 20:17:40 +0000 (GMT) (envelope-from john@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id k3RKHYQN047355; Thu, 27 Apr 2006 13:17:35 -0700 (PDT) (envelope-from john@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Thu, 27 Apr 2006 16:17:33 -0400 User-Agent: KMail/1.9.1 References: <44512321.4080603@123.com.sv> In-Reply-To: <44512321.4080603@123.com.sv> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604271617.33649.john@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Miguel Subject: Re: squid and SQUID_FOLLOW_XFF X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 20:17:41 -0000 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