LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 12-01-2008, 01:36 AM   #1
korexmohan
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Rep: Reputation: 0
Unhappy 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.
 
Old 12-01-2008, 01:40 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why are you using a spam list in squid since I assume the point of the list is to identify spam email servers?
 
Old 12-01-2008, 01:44 AM   #3
korexmohan
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Wink to block porn

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..
 
Old 12-02-2008, 01:23 AM   #4
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
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.
 
Old 12-02-2008, 01:56 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by korexmohan View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid to block all the sites except 1 or 2 sites winxandlinx Linux - Networking 8 10-27-2010 02:53 AM
How do I block web pages/sites? Is squid what I should use? RHLinuxGUY Linux - Networking 3 02-06-2010 12:07 PM
How To Block Sites Using Squid In Linux saha.sandipan Linux - Networking 3 11-04-2007 04:00 PM
Squid block sites linuxnirmal Linux - Security 5 11-15-2006 10:59 AM
how to block sites with squid.conf boakiba Linux - Networking 1 08-11-2003 05:45 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration