niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Squid
Extenel ACL blocking in Squid
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
jijo
*nix forums beginner


Joined: 01 Feb 2005
Posts: 1

PostPosted: Tue Feb 01, 2005 7:58 am    Post subject: Extenel ACL blocking in Squid Reply with quote

Quote:
Hai
I have squid server
I want to block the downloading .exe .mp3 files
so i created one block.txt in /etc/squid/block.txt

in tht i specified like this
\.exe\?.*$
\.mp3\?.*$
\.wms\?.*$
\.mp4\?.*$

then in squid.conf i enter like this in the ACL part

acl localhost src 127.0.0.1/255.255.255.255
acl blocked url_regexp "/etc/squid/block.txt"

then in the http acces part

http_access deny blocked
then i restart my squid service then i got the error


2005/01/29 15:27:04| squid.conf line 1684: acl blocked url_regexp
"/etc/squid/block.txt"
2005/01/29 15:27:04| aclParseAclLine: Invalid ACL type 'url_regexp'
2005/01/29 15:27:04| squid.conf line 1726: http_access deny blocked
2005/01/29 15:27:04| aclParseAccessLine: ACL name 'blocked' not found.
2005/01/29 15:27:04| squid.conf line 1726: http_access deny blocked
2005/01/29 15:27:04| aclParseAccessLine: Access line contains no ACL's,
skipping

how to configure ACL correctly

thanks in advance
Back to top
Vladimir Potapov
*nix forums beginner


Joined: 01 Feb 2005
Posts: 2

PostPosted: Tue Feb 01, 2005 8:48 am    Post subject: RE: Extenel ACL blocking in Squid Reply with quote

My example:
test:/etc/squid # cat /etc/squid/deny.files
\.mp3$
\.exe$

/etc/squid/squid.conf:
acl test src 1.1.1.1
acl all 0.0
acl downloads url_regex "/etc/squid/deny.files"
http_access deny downloads test
http_access allow test
http_access deny all


-----Original Message-----
From: jijo [mailto:jijos@pyarahabeeb.com]
Sent: Tuesday, February 01, 2005 11:59 AM
To: squid-users@squid-cache.org
Subject: [squid-users] Extenel ACL blocking in Squid




Quote:
Hai
I have squid server
I want to block the downloading .exe .mp3 files
so i created one block.txt in /etc/squid/block.txt

in tht i specified like this
\.exe\?.*$
\.mp3\?.*$
\.wms\?.*$
\.mp4\?.*$

then in squid.conf i enter like this in the ACL part

acl localhost src 127.0.0.1/255.255.255.255
acl blocked url_regexp "/etc/squid/block.txt"

then in the http acces part

http_access deny blocked
then i restart my squid service then i got the error


2005/01/29 15:27:04| squid.conf line 1684: acl blocked url_regexp
"/etc/squid/block.txt"
2005/01/29 15:27:04| aclParseAclLine: Invalid ACL type 'url_regexp'
2005/01/29 15:27:04| squid.conf line 1726: http_access deny blocked
2005/01/29 15:27:04| aclParseAccessLine: ACL name 'blocked' not found.
2005/01/29 15:27:04| squid.conf line 1726: http_access deny blocked
2005/01/29 15:27:04| aclParseAccessLine: Access line contains no ACL's,
skipping

how to configure ACL correctly

thanks in advance
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 4:24 am | All times are GMT
navigation Forum index » Apps » Squid
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Insert header and footer in every page served by squid ehmedk Squid 0 Tue Apr 22, 2008 6:16 pm
No new posts Urgent and imp. Making Squid 2.6 stable as tranpsarent proxy SHERDIL Squid 0 Thu Aug 03, 2006 11:18 am
No new posts Help required for making squid 2.6 stable 2 transparent SHERDIL Squid 0 Tue Aug 01, 2006 6:55 am
No new posts Help required for making squid 2.6 stable 2 transparent SHERDIL Squid 0 Tue Aug 01, 2006 6:52 am
No new posts Shortening URLs passing through a squid hierarchy Irvine, Doug - Resources Squid 0 Fri Jul 21, 2006 10:15 am

Online College Degrees | Debt Consolidation | Free Mmorpg | Loans | Bad Credit Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1272s ][ Queries: 16 (0.0562s) ][ GZIP on - Debug on ]