Squid forward request to another squid server

General discussion about PLUC and Linux in Pakistan.

Squid forward request to another squid server

Postby turab » Thu Dec 15, 2005 3:49 pm

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.
turab
Company Havaldaar Major
 
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
WLM: iba_lookz@hotmail.com
Yahoo Messenger: turabali@yahoo.com

Postby sevensins » Thu Dec 15, 2005 6:28 pm

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!
sevensins
Havaldaar
 
Posts: 117
Joined: Tue Apr 13, 2004 1:45 pm
ICQ: 3655945
Website: http://www.us-cert.gov/
WLM: shehzad_h@hotmail.com
Yahoo Messenger: shehzadhamid@yahoo.com
Location: PAKISTAN

Salam sevensins

Postby turab » Fri Dec 16, 2005 12:50 pm

Sir,
You are Great :)
Thanks
turab
Company Havaldaar Major
 
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
WLM: iba_lookz@hotmail.com
Yahoo Messenger: turabali@yahoo.com

Postby sevensins » Fri Dec 16, 2005 1:37 pm

np anytime :D
Regards,



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

A wise monkey never monkies w/ another monkey's monkey!
sevensins
Havaldaar
 
Posts: 117
Joined: Tue Apr 13, 2004 1:45 pm
ICQ: 3655945
Website: http://www.us-cert.gov/
WLM: shehzad_h@hotmail.com
Yahoo Messenger: shehzadhamid@yahoo.com
Location: PAKISTAN


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest

cron