Hi all,
I have a problem getting squid and apache to work together. Basically
I have Squid set up (and working) as a transparent proxy. But when I
start Apache, neither it nor squid works. If I stop squid I can run
Apache just fine.
I am using RH 7.1 (2.4.2-2) and I have 2 NICs in the server, one with
public ip and one with 192.168.10.x
I told Apache to use port 81 and I have told Squid the following:
httpd_accel_host virtual
httpd_accel_port 81
httpd_accel_with_proxy on
But it doesn't work.
when I don't run apache and instead tell squid this:
httpd_port 80
Then squid works fine as a transparent cache. the problem as I can
understand it is that in order for squid to work as transparent cache
then it must have the http accellerator on (and it *must* use the:
httpd_accel_host virtual option), but if I put the FQDN of the server
instead of the 'virtual' then it doesnt work. So how to overcome that?
I should mention I am using IPCHAINS, and it is set up as follows:
ipchains -A input -J REDIRECT 3128 -p tcp -s 0.0.0.0/0 -d 0.0.0.0/0 80
I also have MASQUERADING turned on for the 'forward' chain in order
for the internal LAN to access the public internet.
The policy is 'ACCEPT' for both input and output chains.
And as you can see squid runs on port 3128.
Any ideas, things to try etc. would be much appreciated. Thanks.
Pls. reply also to tobias @ itservices . co . mz
Tobias Skytte
|