Networking Forums

Networking Forums > Computer Networking > Linux Networking > Transparent proxy with Squid and Apache problem

Reply
Thread Tools Display Modes

Transparent proxy with Squid and Apache problem

 
 
Tobias Skytte
Guest
Posts: n/a

 
      11-21-2003, 08:20 AM
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
client source address with squid transparent proxy awrightus@gmail.com Linux Networking 0 12-31-2008 01:42 PM
debian Etch transparent squid proxy error messages Olaf Petzold Linux Networking 9 10-11-2006 10:22 PM
Transparent proxy configuration problem. Eng. Fawzy Ibrahim Linux Networking 3 06-19-2006 09:06 AM
transparent proxy - iptables+ squid+2 routers Igor Linux Networking 3 10-13-2005 03:54 AM
FC3/Kernel 2.6, Fast Switching, Transparent Proxy, Squid, WCCP Help!!!!! swoolley@adstelecom.com Linux Networking 0 05-19-2005 01:03 AM



1 2 3 4 5 6 7 8 9 10 11