Help with acls in squid!
Hello everyone! I've been into Linux OS for last one year and I'm using RHEL 5.3 I've been able to configure squid, wherein i've blocked a single site. But now i want to use a file where I've added the list of sites which needs to be blocked. I have tried adding the following line under squid config file and restarted the service.
acl blocksites url_regex "/etc/squid/squid_block_urls" and then http_access deny blocksites I configured my web browser to use squid but am still able to access all the blocked websites. Please help me out. Am i doing something wrong here. Its very urgent. |
Hi !
This is a part of my working .conf file (so, I posted only the most important lines and marked with green the lines which you have to add). The text files with URL's/words (regular expressions) are in /etc/sqid/lists/ , tne URL/word (regular expression) per line. Code:
#Recommended minimum configuration: Code:
.bezlimita.net Code:
adult Code:
acl VIP src 10.84.27.4 10.84.27.20 10.84.27.21 10.84.27.22 10.84.27.23 Code:
http_access allow VIP BLOCK_DSTDOMAIN You must place these rules above the denying rules: Code:
|
Thanks a lot. I'll try that asap.
|
All times are GMT -5. The time now is 07:59 PM. |