Solved

squid to squid

Posted on 2001-08-31
10
338 Views
Last Modified: 2010-03-04
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?
0
Comment
Question by:Ted22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
10 Comments
 
LVL 15

Expert Comment

by:samri
ID: 6451551
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.
0
 
LVL 1

Author Comment

by:Ted22
ID: 6454662
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.
0
 
LVL 15

Expert Comment

by:samri
ID: 6637466
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.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 15

Expert Comment

by:samri
ID: 6928520
Ted,

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

/Samri
0
 
LVL 1

Author Comment

by:Ted22
ID: 6928923
It works so slowly it is almost unusable, I've pretty much given up on it unless you have some ideas.
0
 
LVL 15

Expert Comment

by:samri
ID: 6930357
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.

0
 
LVL 1

Author Comment

by:Ted22
ID: 6933067
I'm using 2.4.STABLE1-5

I'm trying to connect to 2.4.STABLE4
0
 
LVL 15

Expert Comment

by:samri
ID: 6933314
I will see what I can get with 2.4-Stable6.  It's clearly stated there 2.4-Stable5 is buggy.

Just hang on.
0
 
LVL 15

Expert Comment

by:samri
ID: 6949591
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
0
 
LVL 15

Accepted Solution

by:
samri earned 200 total points
ID: 6949596
it is good to have the cachemgr.cgi to monitor the stats.

check the "Peer Cache Statistics", and "Process File Descriptor Information".

Try to use the squid, and monitor these information.

In Peer Cache Statistics, a non-ICP parent will always have the Status to "Down".  Monitor the "Fetches".  It should be increasing by the number of request sent to your parent-squid.

0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
URL rewriting - LAMP 7 51
maybe no no httpd.conf 6 79
htaccess - disable PHP in specific directory 1 22
Certificate Request CentOS/Apache 1 25
In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question