----- Original Message ----- From: "mjd" <[EMAIL PROTECTED]> To: "Philippine Linux Users Group Mailing List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 1:42 PM Subject: [plug] Force Squid to request from upstream proxy
> 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/- - actually the two lines below will do the job: cache_peer 10.0.0.1 parent 80 0 no-query default prefer_direct off with this, it will query your parent proxy... in case the parent is down, it will fetch directly to the origin server... but if you want to force your sibling proxy to fetch the parent proxy whether it is up or down, add these lines: acl all src 0.0.0.0/0.0.0.0 never_direct allow all fooler. -- 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
