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. |
More information
what kind of hardware does the machine have and what else is running on it how many customers?
|
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 |
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 |
"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.
|
You are having DNS problems. Believe us, we've all been there :)
|
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. |