LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid problem ... blocking some websites (https://www.linuxquestions.org/questions/linux-networking-3/squid-problem-blocking-some-websites-434059/)

rickyinman 04-11-2006 08:06 AM

Squid problem ... blocking some websites
 
I have a Slackware 10.2 box set up using Squid and Webmin. I also let the server act as a DHCP server and have it assign the IP of the server as the gateway for all of the computers on our network.

My problem is strange because some (if not most), but not all of the machines can not access MSN and other websites when the gateway is assigned as the server. Other websites are loading, but without pictures. Still again, some sites are loaded with no problems at all. As stated earlier, this is not true for all machines on the network. If I change the DHCP server to assign our main router as the gateway, everything works fine.

I have set up one other server the same way (I thought), and it is working fine at another location. I have looked at both configurations to see what was the difference, everything seems to be the same (except for IP addresses). Any suggestions?

scuffell 04-11-2006 08:30 AM

Does iptables route every request from every port to localhost:3128 ?

win32sux 04-11-2006 12:03 PM

could you post your squid.conf and iptables script??

maybe even the output of ifconfig...

rickyinman 04-11-2006 12:21 PM

I got the answer after I posted this question. I thought that I would post it so that others might benefit. I had to go into Misc. Options in Squid (via Webmin) and change HTTP Accel uses Host Header to "yes". This fixed it. Thanks for your responses.

win32sux 04-11-2006 12:26 PM

in fact, if you're using squid transparently, check that you have these other options set:
Code:

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on



All times are GMT -5. The time now is 05:43 PM.