Search squid archive

Re: How do I configure Squid forward all requests to another proxy?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Henrik,

I solve the problem. I am using a transparent parent to direct all traffics and cache_peer_access to redirect selected websites to a particular parent. What I did I used cache_peer and cache_peer_access at the same time. I think I cannot use cache_peer and cache_peer_access at the same time or maybe a configure it the wrong way. Anyway thank you very much, everything is working smooth now.

Regards,

Wennie

----- Original Message -----
From: "Henrik Nordstrom" <henrik@xxxxxxxxxxxxxxxxxxx>
To: "Wennie V. Lagmay" <wlagmay@xxxxxxxxxxxxx>
Sent: Tuesday, August 26, 2008 12:21:17 AM (GMT+0300) Asia/Kuwait
Subject: Re:  How do I configure Squid forward all requests to another proxy?

Squid cannot reach your parent. Verify your cache_peer settings (ip &
port)


Regards
Henrik

On tor, 2008-08-21 at 12:29 +0300, Wennie V. Lagmay wrote:
> Hi Henrik,
> 
> As you mentioned I am following the 2.6 instruction on how to forward request to another proxy.Below is the procedure.
> 
> 1. cache_peer xxx.xxx.193.87 parent 8080 0  no-query default
> 2. acl all src 0.0.0.0/0.0.0.0
> 3. http_access allow all
> 4. never_direct allow all
> 
> Below is the cache.log when I start browsing the web:
> 
> [root@core2proxy ~]# squid -k reconfigure
> [root@core2proxy ~]# tail -f /var/log/squid/cache.log
> 2008/08/21 12:11:20|    never_direct = 1
> 2008/08/21 12:11:20|        timedout = 0
> 2008/08/21 12:11:23| Failed to select source for 'http://www.yahoo.com/p.gif?t=1                                             219309667&_ylp=A1f4cQhjMK1IUG4BCwD1cSkA&hp=1&cp=0&res=0&cres=dl&aw=1024&sh=768&s                                             w=1024&fs=14&ct=lan&ch=1119&cw=1003/ct=lan/ch=1119/cw=1003&tid=501&ni=16&sss=121                                             9309667&t1=1219309690070&d1=141&d2=391&d3=-1219309690070&d4=500&d5=4344&d6=672&d                                             7=687&d8=828&d9=953&d10=1172&d11=1312'
> 2008/08/21 12:11:23|   always_direct = 0
> 2008/08/21 12:11:23|    never_direct = 1
> 2008/08/21 12:11:23|        timedout = 0
> 2008/08/21 12:11:23| Failed to select source for 'http://www.yahoo.com/s/939088'
> 2008/08/21 12:11:23|   always_direct = 0
> 2008/08/21 12:11:23|    never_direct = 1
> 2008/08/21 12:11:23|        timedout = 0
> 
> regards,
> Wennie
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message -----
> From: "Henrik Nordstrom" <henrik@xxxxxxxxxxxxxxxxxxx>
> To: "Wennie V. Lagmay" <wlagmay@xxxxxxxxxxxxx>
> Cc: "squid-users" <squid-users@xxxxxxxxxxxxxxx>
> Sent: Thursday, August 21, 2008 1:41:14 AM (GMT+0300) Asia/Kuwait
> Subject: Re:  How do I configure Squid forward all requests to another proxy?
> 
> On ons, 2008-08-20 at 16:28 +0300, Wennie V. Lagmay wrote:
> > Dear all,
> > 
> > Using squid-2.5 and 2.6 forwarding all request to another proxy is simple:
> > 
> > "How do I configure Squid forward all requests to another proxy?
> > First, you need to give Squid a parent cache. Second, you need to tell Squid it can not connect directly to origin servers. This is done with three configuration file lines: 
> > 
> > 
> > cache_peer parentcache.foo.com parent 3128 0 no-query default
> > acl all src 0.0.0.0/0.0.0.0
> > never_direct allow allNote, with this configuration, if the parent cache fails or becomes unreachable, then every request will result in an error message. 
> > 
> > In case you want to be able to use direct connections when all the parents go down you should use a different approach: 
> > 
> > cache_peer parentcache.foo.com parent 3128 0 no-query
> > prefer_direct off"
> > 
> > However I am trying to do it with squid-2.7STABLE4 and it is not working. Can any body help me howto accomplish this?
> 
> It's identical in 2.7.
> 
> cache_peer to tell Squid where it may forward.
> 
> never_direct to tell squid that it may not go direct.
> 
> 
> What does cache.log say on the first request after a restart?
> 
> Regards
> Henrik


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux