LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-28-2007, 01:37 AM   #1
nsampath
LQ Newbie
 
Registered: Sep 2006
Posts: 22

Rep: Reputation: 15
Unhappy squid url_regex is not blocking the sites


I had installed FC6 with squid proxy server.

Example:

acl blockfiles urlpath_regex "/etc/squid/blocks.files"
acl bad url_regex "/etc/squid/bad-files"
acl restricted url_regex "/etc/squid/restricted"
http_access deny single
http_access deny blockfiles
http_access deny restricted
http_access deny bad

# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all


I had given the acl above http_access deny all line.

the above said acl are not blocking the sites given inside the files.

Please some one help me to solve the problem.
 
Old 03-28-2007, 01:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you could start by showing us the actual regexes, and the corresponding hits in your access.log.
 
Old 03-28-2007, 04:57 AM   #3
nsampath
LQ Newbie
 
Registered: Sep 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Smile squid acl not working

Quote:
Originally Posted by acid_kewpie
you could start by showing us the actual regexes, and the corresponding hits in your access.log.
/etc/squid/restricted file has following line in it

desktop.richmedia.in
www.las.ic.unicamp.br
www.mirrorservice.org
khoj.com
http://fedora.redhat.com/download/mirrors/fedora-core-5
fropper.com
orkut.com
download.microsoft.com
include.ebaystatic.com
~

and how to check the hits in /var/log/squid/access.log
if any error will be written in log file
 
Old 03-29-2007, 05:04 AM   #4
sachin.gharge
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Squid Not blocking

We can use the follwing things

acl blockfiles url_regex -i '/etc/squid/blocks' etc






Quote:
Originally Posted by nsampath
I had installed FC6 with squid proxy server.

Example:

acl blockfiles urlpath_regex "/etc/squid/blocks.files"
acl bad url_regex "/etc/squid/bad-files"
acl restricted url_regex "/etc/squid/restricted"
http_access deny single
http_access deny blockfiles
http_access deny restricted
http_access deny bad

# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all


I had given the acl above http_access deny all line.

the above said acl are not blocking the sites given inside the files.

Please some one help me to solve the problem.
 
  


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 for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
Squid (Blocking tunneling sites) suhas! Linux - Server 4 03-30-2007 02:41 PM
Squid Error while blocking sites winxandlinx Linux - Networking 15 06-29-2006 08:32 AM
controlling access through squid( blocking all sites except for one) jomy Linux - Networking 1 12-15-2004 06:27 AM
Blocking some sites... gani *BSD 2 11-05-2004 09:07 PM

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

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