I posted this in the newbie list last week, but didn't get any responses. Maybe someone on this list can help me out.

...

I have a problem configuring my Squid proxy. I need it to forward all
requests to an upstream proxy and never directly access the web pages. 10.0.0.1 has a faster connection to the Internet so I want all of my proxy users to connect through here. I’ve already edited my squid.conf to appear as follows:


acl our_network src 172.16.0.0/12
http_access allow our_network
never_direct allow our_network
cache_peer 10.0.0.1 parent 80 0 default

The proxy I want all requests to go to is 10.0.0.1. This is on a different network. My RedHat 9.0 machine has 2 NICs connected to 2 segments (172.16.0.0/12 and 10.0.0.1/8) I’ve also tried using
the following line:


cache_peer 10.0.0.1 parent 80 0 no-query default

But it still doesn’t work.  If the request is present in the cache of
10.0.0.1, I see the following in the access.log:

1063643920.297    808 172.16.10.10 TCP_MISS/200 6046 GET
http://www.eicar.org/img/eicar_online_logo.png - DEFAULT_PARENT/10.0.0.1
image/png

But when the entry doesn’t exist, I get the following message:

1063728299.742  61869 172.16.10.10 TCP_MISS/000 0 GET
http://sports.yahoo.com/ - NONE/- -

I get the following error in my client browser when trying to visit http://sports.yahoo.com:

===========

While trying to retrieve the URL: http://www.sports.yahoo.com.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 root.

===========

I'm not sure why the "www" and the extra ".com" were added though.

TIA

---
MJD

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to