Link to home
Start Free TrialLog in
Avatar of Ted22
Ted22

asked on

squid to squid

I'm posting this here because I think it's the most likely place I'll find someone that might know the answer.

What I need to do is redirect my squid server to a second squid server to use as a proxy.
(Local Network -> Squid -> Intranet -> Squid -> Internet)
I cannot change anything on the server that has internet access.

When I put the line below in my squid.conf it works, but it's to slow to use.
squid.conf:
"cache_peer  SecondSquidServer.com  parent  8080  7  proxy-only  default"

Any help or redirect me to help that can solve this problem will be appreciated?
Avatar of samri
samri
Flag of Malaysia image

Your config looks fine to me, and it should work.

how about :

"cache_peer  SecondSquidServer.com  parent  8080 3130 default"

try using ICP (default if port 3130) with your peer.  
by putting proxy-only, your squid won't cached any pages, try omitting this.



Try the squid homepage http://squid.nlanr.net for more information.
Avatar of Ted22
Ted22

ASKER

Is there any way I can tell what cache port the second squid server is using. I think the reason it's so slow (bytes per second) is because I'm selecting the wrong port.
by right, it you select the wrong port, you won't get any data at all.  

A simple: telnet <second-squid-ip> <port-num> will do.  And type anything, and hit enter twice.  If there is any service are listening to the port, it should respond with something.  Otherwise, it will just say, connection refused.

/sorry for taking so long.
Ted,

any luck on this.  If still need help, let us know.

/Samri
Avatar of Ted22

ASKER

It works so slowly it is almost unusable, I've pretty much given up on it unless you have some ideas.
Ted,

I am positive that I have done this, back at my previous job.

I will try to resimulate the scenario.  Do you have the Squid version you are running, and your OS.  I should be able to try someting.

Avatar of Ted22

ASKER

I'm using 2.4.STABLE1-5

I'm trying to connect to 2.4.STABLE4
I will see what I can get with 2.4-Stable6.  It's clearly stated there 2.4-Stable5 is buggy.

Just hang on.
Ted,

This is the config that I use, and it works fine.

cache_peer parent-squid.com parent    8080  7 default

Change the 8080 to whatever your parent-squid is listening to.  By default it would be listening to 3128 (default).  And if you know that the parent-squid is using ICP, ,you can replace 7 with 3130 (the default ICP port).

TO make sure that the parent-squid is listenig on that port, you can use the parent-squid and the port number in your browser's proxy setting, and test.

please try
ASKER CERTIFIED SOLUTION
Avatar of samri
samri
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial