hi all
ok, i've managed to sort this out myself.
looks like it was the syntax of the text files i had created
heres's the solution
i created the two ACL's pointing to different txt files
acl files url_regex -i "/usr/local/squid/etc/banned-files.txt" acl files url_regex -i "/usr/local/squid/etc/banned-sites.txt" acl banned-clients src -i "/usr/local/squid/etc/banned-clients.txt"
and the sytnax of the files are
banned-clients.txt :::::::::::::: 146.141.59.230 146.141.59.231 146.141.59.232 146.141.59.233 146.141.59.234 146.141.59.235 146.141.59.236
banned-files.txt :::::::::::::: \.mpeg$ \.mpg$ \.avi$ \.wmv$ \.mp3$ \.rm$ \.asf$
banned-sites.txt :::::::::::::: www.highveld.co.za/planet947/streaming.asp 209.245.59.17 streamload.com
working like a charm!!!!!
rgds, hement gopal
Hement Gopal wrote:
hi all
i want to create ACL rules that point to files containing the expressions i want to ban.
for example i want to point my ACL rules to three text files :-
one containing banned ips outside my network
one containing banned URLS outside my network
and one containing ips of clients within my network that are banned from browsing.
i've created one for banning file types (eg. avi, mpeg, rm, wmv, etc) which is working fine....but i cannot get the above three to work.
syntax for banned files is as follows
acl files url_regex -i "/usr/local/squid/etc/banned-files.txt"
[EMAIL PROTECTED] etc]# vi banned-files.txt \.mpeg$ \.mpg$ \.avi$ \.wmv$ \.mp3$ \.rm$ \.asf$ \.ra$ \.ram$ \.asx$ \.asf$ \.afx$ \.divx$ \.m3u$ \.viv$ \.vivo$ \.vo$
and this block is working fine.
can anyone assist in getting the other three to work?
rgds, hement gopal
