Re: [squid-users] Squid running in a gateway machine.

From: Matus UHLAR - fantomas <[email protected]>
Date: Tue, 26 Jul 2005 09:34:42 +0200

On 25.07 17:18, Fernando Lujan wrote:
> My iptables is running as both a gateway and a http-proxy. I route
> every incoming connection from the INTERNET to the 192.168.0.12:8080,
> wich is my web server. From my internal network when I try to access
> the address www.mydomain.com, wich represents my domain in the
> internet, the squid answers with (111) Connection refused message.
>
> I've already tried to use the no_cache option, like:
>
> acl DOMAIN url_reges .*mydomain.*
> no_cache DENY DOMAIN
>
> Can I use this configuration?

if you change url_reges to url_regex, you can.
however using regex for domain is very ineffective: "dstdomain .mydomain.com"
should work good.

But it will not help you with this problem. Your problem is that your squid
can not connect to the webserver, so disabling caching doesn't help at all.
You should either set up routing from squid to allow connections from squid
to webserver or set up clients to connect directly to 192.168.0.12.

You should probably put "www.mydomain.com" with IP 192.168.0.12 to squid
hosts table (or /etc/hosts on the server)

-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
(R)etry, (A)bort, (C)ancer
Received on Tue Jul 26 2005 - 01:34:45 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:03 MDT