Re: [squid-users] Squid not working for me

From: Amos Jeffries <squid3@dont-contact.us>
Date: Thu, 10 Jan 2008 22:29:31 +1300

Dave Coventry wrote:
> On Jan 8, 2008 11:59 AM, Indunil Jayasooriya wrote:
>> my dhcp server assigns both ip addresses and dns servers to clinets.
>
> I have set my Ubuntu box 'Base' up as a DNS Server and tried to use
> squid with partial results. Firefox returns the following:
>
> ERROR
> The requested URL could not be retrieved
> While trying to retrieve the URL: http://www.cricinfo.com/
> The following error was encountered:
> * Unable to forward this request at this time.
> This request could not be forwarded to the origin server or to any
> parent caches. The most likely cause for this error is that:
> * The cache administrator does not allow this cache to make direct
> connections to origin servers, and
> * All configured parent caches are currently unreachable.
> Your cache administrator is webmaster.
> Generated Wed, 09 Jan 2008 10:47:36 GMT by Base (squid/2.6.STABLE14)
>
>
> /var/log/squid/cache.log has the following.
>
> root@Base:/home/dave# cat /var/log/squid/cache.log
> 2008/01/09 07:35:12| storeDirWriteCleanLogs: Starting...
> 2008/01/09 07:35:12| Finished. Wrote 56 entries.
> 2008/01/09 07:35:12| Took 0.0 seconds (325581.4 entries/sec).
> 2008/01/09 07:35:12| logfileRotate: /var/log/squid/store.log
> 2008/01/09 07:35:12| logfileRotate: /var/log/squid/access.log
> 2008/01/09 12:44:04| Failed to select source for
> 'http://en-gb.start2.mozilla.com/firefox?client=firefox-a&rls=org.mozilla:en-GB:official'
> 2008/01/09 12:44:04| always_direct = -1
> 2008/01/09 12:44:04| never_direct = 1
> 2008/01/09 12:44:04| timedout = 0

These requests are hitting squid but squid is configured to deny direct
access outbound (never_direct is 1). Probably without any peers
configured to handle non-direct access.

>
> However, I can no longer ssh into Base as the name won't reconcile, I
> now must access 192.168.60.254 (eth1) or 192.168.10.23 (eth0)

Hmm, windows (or the source box you are ssh'ing from cannot locate the
FQDN of Base or a local domain to generate a FQDN from for DNS).

I think it should be as simple as taking the space out of your config
setting string:
    option domain-name " domain.org";

I would expect the above to be attempting a DNS lookup of exactly "Base.
domain.org" and failing.

>
> I feel I am getting close, but need to find out why 'Base' is no
> longer working (you will notice that the prompt is 'root@Base'.
>
> Can you offer any suggestions?

Amos

-- 
Please use Squid 2.6STABLE17 or 3.0STABLE1.
There are serious security advisories out on all earlier releases.
Received on Thu Jan 10 2008 - 02:29:14 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:04 MST