Hello,
Does anyone have any suggestions for this please?
Surely someone can help? :)
---------- Forwarded Message ----------
Subject: rebuillding centos squid.src.rpm to
support --enable-follow-x-forwarded-for
Date: Thursday, 29 March 2007
From: Divan Santana <Divan.Santana@gmail.com>
To: squid-users@squid-cache.org
Hi Everyone,
This is the first time I am using this mailing list :)
Hoping someone can please help me :)
I have searched different documentation and tried lots but no luck yet.
I want to use Dansguardian with squid and with ACLS with IP addresses but to
my current squid-2.5.STABLE6 rpm build on Centos4.3.
So I need this section to work in squid.conf
----------------------------------------------------------------------------------------------------
# TAG: follow_x_forwarded_for
# Note: This option is only available if Squid is rebuilt with the
# -DFOLLOW_X_FORWARDED_FOR option
----------------------------------------------------------------------------------------------------
What I did was downloaded the src.rpm to /root
Then did:
rpm -Uvh squid-2.5.STABLE6-3.4E.12.src.rpm
vi /usr/src/redhat/SPECS/squid.spec
Add --enable-follow-x-forwarded-for \ to “# Configure the package” section
rpmbuild -bb modified.spec
And then installed the .rpm it created for me.
I edited squid.conf and did this:
acl dansguardian src 127.0.0.1
follow_x_forwarded_for allow dansguardian
follow_x_forwarded_for deny all
acl_uses_indirect_client on
log_uses_indirect_client on
But squid still doesn't recognize this?
Any ideas what I did wrong or didn't do??
In Ubuntu 6.10 I did the following and got it working no problems:
apt-get source squid
apt-get build-dep squid
apt-get install devscripts build-essential fakeroot
cd squid-2.6.1
vim debian/rules
Add --enable-follow-x-forwarded-for \ to “# Configure the package” section
./configure
debuild -us -uc -b
cd ..
dpkg -i squid??? squid-common???
And this worked, just not sure how to do it on the live CentOS server we have?
-- Divan Santana Skype: DivanSantana Gtalk/MSN: Divan.Santana@GMail.com Love God, Love People, Love Life! -------------------------------------------------------Received on Fri Mar 30 2007 - 04:35:45 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:02 MDT