Squid 2.6 with external link to block sites too slow
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Squid 2.6 with external link to block sites too slow
Hi friends,
I have configured Squid 2.6 with RHEL 5.2. When i am pointing squid to the extrenal file for blocking the sites, my system becomes very slow. Any suggestion or idea please...
Here is my acl conf...
acl spammers url_regex "/etc/squid/spammer_list"
http_access deny all spammers
the spammer_list file downloaded from sa-blacklist site with a size of 9 MB.
Hi billy,
I read most of your solutions in this site...really appreciate your contribution....
The file name says it's spammers (I named it like that) but it contains all porn sites and some of the unwanted sites to be blocked..
Maybe the external file is queried each time, squid processes an access. Maybe you should put that on a ramdrive or use an external url handler that caches the configuration file in ram.
Hi billy,
I read most of your solutions in this site...really appreciate your contribution....
The file name says it's spammers (I named it like that) but it contains all porn sites and some of the unwanted sites to be blocked..
That's fine - you'd be surprised what some people try to do though.
Brian's idea sounds pretty good.
The other thing you could do is try using a berkeley database file instead of a test file. I don't know if squid can use these directly, but you could use squidguard to intermediate
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.