LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2013, 12:36 PM   #1
theIndividualist
LQ Newbie
 
Registered: May 2012
Location: Bedfordshire, UK
Posts: 4

Rep: Reputation: Disabled
Trying to set up a file blocking ACL in Squid with deny_info.


(Using CentOS 6.4 Final & Squid 3.1.10)

Code:
acl blockfiles urlpath_regex “/etc/squid/blockfiles.acl”
http_access deny blockfiles
WORKS - gives a default squid error in the browser

Using deny_info with a standard ERR_ file in /usr/share/squid/error/en-uk/
WORKS - deny_info ERR_ACCESS_DENIED blockfiles - gives squid access denied in browser

Overwriting the content of ERR_ACCESS_DENIED with custom html
WORKS - deny_info ERR_ACCESS_DENIED blockfiles - gives custom error page in browser

But using a custom message file
FAILS i.e. deny_info ERR_BLOCKED_FILES blockfiles - Squid fails to start

The file rights (-rw-r—r--) and file ownership (root root) are the same, is the problem using a non standard file name ? (have tried several).

Help anyone ?
 
Old 03-15-2013, 08:03 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,656
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, a quick comment...

On my system squid is executable and owned by squid

That might apply to acl's (blocklists) too.

Code:
chown squid:squid /etc/squid/squid.conf
chmod a+rx /etc/squid/squid.conf
It won't hurt to try.

Next, checkout Controlling_Web_Access_with_Squidlinuxhomenetworking ch32
 
Old 07-25-2013, 08:07 AM   #3
theIndividualist
LQ Newbie
 
Registered: May 2012
Location: Bedfordshire, UK
Posts: 4

Original Poster
Rep: Reputation: Disabled
Found a work around - adding
Code:
error_directory /usr/share/squid/errors/en-uk
to squid.conf allows the custom error messages, it disables multi-language support, but I can live with that.
 
  


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
unable to correctly set up the acl list in squid adityavpratap Slackware 3 07-16-2009 05:18 AM
Blocking above 50MB file using Squid sushantchawla2005 Linux - Server 1 06-22-2009 01:54 AM
squid 2.6 not blocking sites even i entered ACL to block sites mohantorvalds Linux - Server 1 01-08-2009 04:17 AM
deny_info, squid, NTLM auth ???? paul_mat Linux - Networking 0 02-10-2006 08:30 PM
set time acl and custom message squid cgelectek Linux - Software 1 06-25-2005 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 AM.

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