LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Proxy with Squid (https://www.linuxquestions.org/questions/linux-networking-3/proxy-with-squid-212865/)

namdn 08-03-2004 06:43 AM

Proxy with Squid
 
Hi all member,

When I config squid to make my linux server works as Proxy server.
All workstation can connect to internet through my proxy server. But it is
too slow, the customers have to wait about more than 10 minutes to be displaye a completed website. It is not accepted.

I would like to change the cache and to accelerate the internet with the squid.conf file (I use webmin tool to config), but I have no experience with squid.conf file.
Please guide me to solve this problem, send to me at: namdn@fpt.com.vn

Best Regards.

BrianWGray 08-03-2004 07:08 AM

More information
 
what kind of hardware does the machine have and what else is running on it how many customers?

arno 08-03-2004 07:23 AM

search the /etc/squid/squid.conf
for cache_mem
the number that appears next to it -is the amount of memory.

locate the line # cache_mem 8
remove the comment mark from it, then change 8 with let's say 64 and restart the squid service.

Read this for optimizing ur squid..
http://squid.visolve.com/squid/index.htm

I use DiskD for better performance
http://www.squid-cache.org/Doc/FAQ/FAQ-22.html

charon79m 08-03-2004 07:58 AM

DNS could be an issue
 
I was having the same issue and found that my DNS settings were not correct. Might want to give it a look.

Cheers,

MrKnisely

BrianWGray 08-03-2004 10:07 AM

"Extremely" long waits should not be experienced only because of low amounts of cache. there is probably another problem also such as charon79m's DNS suggestion. In fact that is probably the first thing you should look at. more cache won't hurt, but I doubt it is the fix.

r0b0 08-03-2004 03:09 PM

You are having DNS problems. Believe us, we've all been there :)

charon79m 08-06-2004 09:45 AM

To expand on what was said earlier, Squid has its own DNS settings. You can set it the connection manually or have it check what is in /etc/resolv.conf for DNS instructions. In my case, it was set manually to point to the IP of my default gateway (not a DNS server) for name resolution. Once I pointed it to a correct DNS server things flew.


All times are GMT -5. The time now is 10:51 PM.