LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-08-2011, 02:20 PM   #1
klingoncowboy4
Member
 
Registered: May 2007
Location: Seba Beach, Ab
Distribution: Fedora 14
Posts: 34

Rep: Reputation: 0
squid blocklist help


Hi, I am trying to configure squid to use the blocklist found at http://www.thedumbterminal.co.uk/ser...kedsites.shtml

I have downloaded the "blocked_sites.txt" file and tryed to configure squid to use it. Unfortunetly I can only seem to get squid to pass all or deny all. I would like for squid to block everything in that file but pass everything else.

Here is the configuration I am trying to use to acheive this:

Code:
acl blockedsites dstdomain "c:\squid\etc\blocked_sites.txt"
http_access deny blockedsites
http_access allow all
Note: the reason that there are windows paths is that in this instance squid is running in Windows Xp, but the same principles should apply (just that paths will be different). I suspect that the problem comes from the line "http_access allow all", which I think is overriding my line to deny.
 
Old 06-08-2011, 05:34 PM   #2
klingoncowboy4
Member
 
Registered: May 2007
Location: Seba Beach, Ab
Distribution: Fedora 14
Posts: 34

Original Poster
Rep: Reputation: 0
I managed to implement a better solution using squidguard
 
Old 06-09-2011, 04:46 AM   #3
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Oracle, Ubuntu, Slackware, OpenBSD, NetBSD, OpenWRT
Posts: 364
Blog Entries: 3

Rep: Reputation: 48
Quote:
Originally Posted by klingoncowboy4 View Post
Code:
acl blockedsites dstdomain "c:\squid\etc\blocked_sites.txt"
http_access deny blockedsites
http_access allow all
I suspect that the problem comes from the line "http_access allow all", which I think is overriding my line to deny.
Hello.
What if you try to change these lines?

So, you'll have
Code:
acl blockedsites dstdomain "c:\squid\etc\blocked_sites.txt"
http_access allow all
http_access deny blockedsites
PS: I've just noticed that the thread is marked as being solved. It would be nice if you'll write how you've solved the problem.

Last edited by Lexus45; 06-09-2011 at 04:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Legacy grub entry needs absolute pathname or blocklist msnthrp Puppy 5 11-01-2010 04:48 AM
Squid Redirect specific domain to an Secondary (External) Squid Proxy Zxarr Linux - Server 2 04-20-2010 01:50 PM
squid blocklist saran_sai Linux - Newbie 5 12-08-2008 10:52 AM
reatime or dns blacklist or blocklist how-to elfoozo Linux - Software 4 07-08-2006 02:17 AM
Protowall/Peer Guardian blocklist in linux? Ace2005 Linux - Security 3 11-26-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:15 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