LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2008, 01:49 AM   #1
mredloft
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Rep: Reputation: 0
Question urlpath_regex is not denying...


I have RHEL 4 installed on my machine which i wanted to use as a proxy. My proxy(squid-2.6 STABLES-3.el5) is running properly to some extend. I was trying to use 'urlpath_regex' to block '.jpg, .mp3...etc' but this does not deny at all. what might be the reason? the acl looks like this...

:
:
acl download-block urlpath_regex -i \.jpg$ \.mp3$

http_access deny download-block
:
:

thanks
MR
 
Old 07-15-2008, 02:27 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Can you mention your http_access area ?
The syntax seems to be ok.
The problem could be http_access area.
 
Old 07-16-2008, 12:04 AM   #3
mredloft
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Here's my acls and http_access area.

acl our_networks src 10.180.0.0/255.255.255.0
acl blocked_list url_regex -i "/etc/squid/banned.list"
deny_info ERR_BANNED_list1 blocked_list

acl download-block urlpath_regex -i \.jpg$ \.mp3$

acl blocked_domains dstdom_regex -i "/etc/squid/bad_domains.list"
deny_info ERR_BANNED_baddomains blocked_domains
#acl accesstime time 9:00-17:00
acl ncsa_users proxy_auth REQUIRED

http_access deny blocked_list
http_access allow ncsa_users
http_access deny download-block
http_access deny blocked_domains

#http_access allow our_networks accesstime
http_access allow our_networks
http_access deny all

====
Thanks..
 
Old 07-16-2008, 01:06 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
My squid configuration is similar and it is working fine.
You should wait for some expert to come up. I do not find anything wrong.
 
1 members found this post helpful.
Old 01-20-2010, 04:09 AM   #5
iseymur
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
I have fedora 12 installed on my machine
My proxy(squid-3.1) is running .

:
:
acl flockfiles urlpath_regex -i \.exe$ \.mp3$

http_access deny flockfiles
:


bur squid doesnt block

didi you do your problem?
if yes please help me

Seymur
 
Old 01-20-2010, 10:48 PM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Can you use url_regex instead of using urlpath_regex and see if it works?
 
Old 01-21-2010, 09:16 PM   #7
iseymur
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
squid urlpath_regex problem

I have fedora 12 installed on my machine
My proxy(squid-3.1) is running .

:
:
acl flockfiles urlpath_regex -i \.exe$ \.mp3$

http_access deny flockfiles
:


bur squid doesnt block

didi you do your problem?
if yes please help me

mmy squit works at home normally but doest work at work

Seymur
 
Old 01-21-2010, 11:25 PM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Why would you want to post the same question again without even considering the previous post?
 
1 members found this post helpful.
Old 01-29-2010, 12:55 PM   #9
iseymur
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
I like block different users different sites

Example I have 3 user list and 3 file with block site names

acl group1 src 192.168.0.2 192.168.0.3 192.168.0.4/24
acl group2 src 192.168.0.5 192.168.0.6 192.168.0.7/24
acl group3 src 192.168.0.8 192.168.0.9 192.168.0.10/24

and

acl blocksites1 url_regex -i "/etc/squid/block1.txt"
acl blocksites2 url_regex -i "/etc/squid/block2.txt"
acl blocksites3 url_regex -i "/etc/squid/block3.txt"

I like block blocksites1 for group1, blocksites2 for group2,
blocksites3 for group3,

help me please
 
  


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
Denying URL's Maxx762 Linux - Wireless Networking 2 07-06-2005 04:46 PM
Iptables Denying Printing Crashed_Again Linux - Networking 5 09-21-2003 05:40 AM
Denying specific computer name.... vcheah Linux - Security 6 12-03-2002 01:31 AM
Denying Pings oostevo Linux - Security 6 08-13-2002 09:50 PM
Denying telnet with message Infamous Tim Linux - Security 4 03-25-2001 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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