Squid forward request to another squid server

General discussion about PLUC and Linux in Pakistan.
Post Reply
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Squid forward request to another squid server

Post by turab »

Hello,
I have a server running squid having ip 10.1.9.15
Router 10.1.9.1
Router 10.1.28.1
another squid server having ip 10.1.28.94

Now please tell me how can i forward the request to the parent squid proxy server.
The error i am getting is as follows.

The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://10.1.9.15/

The following error was encountered:

Unable to determine IP address from host name for 10.1.9.15
The dnsserver returned:

Name Error: The domain name does not exist.
This means that:

The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.


Thanks in advance.
sevensins
Havaldaar
Posts: 117
Joined: Tue Apr 13, 2004 1:45 pm
Location: PAKISTAN
Contact:

Post by sevensins »

AOA,

if you can access 10.1.28.94 from 10.1.9.15 by pinging it and if 10.1.9.15 is allowed in 10.1.28.94 acl then

in 10.1.9.15 squid.conf add

cache_peer 10.1.28.94 parent 8080 3130 no-query default

this will forward all ur proxy requests to the 10.1.28.94 port 8080 proxy

but some of the requests will still go as DIRECT... if u want every request to go to the 10.1.28.94... add the following in ur squid file...

never_direct allow all
Regards,

-----------------------------------------------------------------
A wise monkey never monkies w/ another monkey's monkey!
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Salam sevensins

Post by turab »

Sir,
You are Great :)
Thanks
sevensins
Havaldaar
Posts: 117
Joined: Tue Apr 13, 2004 1:45 pm
Location: PAKISTAN
Contact:

Post by sevensins »

np anytime :D
Regards,

-----------------------------------------------------------------
A wise monkey never monkies w/ another monkey's monkey!
Post Reply