LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Restricting access using Squid3 (https://www.linuxquestions.org/questions/linux-server-73/restricting-access-using-squid3-690065/)

Dnyanraj 12-12-2008 07:07 AM

Restricting access using Squid3
 
I am trying to configure squid3 for a network,
i created an acl & allowed access to internet. (working fine)

Now i want to deny access to some sites.. say rediff.com & msn.com
So i created another acl as 'acldeny' & specified rule as

acl acldeny dstdomain .rediff.com .msn.com
http_acess deny acldeny


But still those sites are accessible from computers in n/w
can someone help me in this?

ZAMO 12-13-2008 08:39 AM

Squid used to read the lines from the very first line to the last line of squid.conf. Place your acldeny line above the http_access allow

Code:

http_access deny acldeny
http_access allow manager localhost


for ex:-

Code:

#Default:

# http_access deny all
http_access deny acldeny
#
#Recommended minimum configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
#http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

Is acess a typo??? check it
Code:

http_acess deny acldeny


All times are GMT -5. The time now is 02:42 PM.