Forwarding loop in Squid Proxy server

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

 



Hi all,

I have two Squid proxy servers on my LAN. Server1 and Server2.
Server2 is sibling for Server1.

Transparent caching is implemented on Server1 with the help of ipchains and
httpd accelrator in squid.

After configuring Server2 as sibling cache server on Server1 Forwarding 
loops are occuring on Server1.

The error which is loged in cache.log file is

2001/02/19 18:57:01| WARNING: Forwarding loop detected for:
GET /roze/14smll.jpg HTTP/1.0
Accept: */*
Referer: http://www.hospicegirls.com/roze/alena20rwa.htm
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Host: www.hospicegirls.com
Cache-Control: max-age=259200, only-if-cached
Via: 1.0 Server1:8080 (Squid/3.2.STABLE4), 1.0 Server2:3128
(Squid/3.2.STABLE4)
X-Forwarded-For: 192.168.0.30 ,  192.168.0.1

Please note that 192.168.0.1 is IP address of Server1 and
192.168.0.30 is IP address of any clinet whose request is being redirected to
port 8080 with the help of ipchains.

All web requests of clients are full filled by our Server1.

For clinets Server1 is default gateway. When a web request is arrived on
Server1 it redirected to port 8080 that is port on which squid is running.

Loop occurs when a request passes through one proxy more than once.

Whenever a request comes on Server1 it contacts Server2 as it is sibling
server for Server1, When Server2 returns the desired
page back to Server1, now here a loop occurs as this request will
be passing our proxy server second time. I guess that packet are passing
through Server2 second time. First they pass they were redirected from port 80
to 8080. Now they are passing back from Server2 back to Server1.

The help at squid web site stats that Loop occurs due to transparent cahing or
parent caches.

I do not use parent cache therefore loop is occuring due to transparent
caching.

****I need help how I can use Transparent caching along with Server1 which has
Server2 as its sibling with out forwarding loop problem. ****

All things were OK before configuring Server2 as sibling for Server1.

Many thanks in advance.




____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux