[squid-users] acl for a few sites onyl

From: Hubert Choma <hubert.ch_at_wp.pl>
Date: Mon, 22 Feb 2010 09:54:48 +0100

Could you write me an example how to write correct acl's which allowing
only a few sites (from file) and block all www sites ? Only selected
pages and nothing else should be available .

Why when I # default acl eg. "http_access allow all" my squid after
reload reports error ?

acl allowedsites dstdomain -i "/etc/squid/dozwolone.txt"
acl allowedcomputers src 192.168.0.3 192.168.0.6 192.168.0.17
192.168.0.12 192.168.0.15 192.168.0.16
acl mail dstdom_regex .*poczta.* .*mail.*

http_access allow allowedsites allowedcomputers !mail
#http_access allow all
http_access allow localnet
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
#http_access deny all
http_access deny localnet
#icp_access allow all
icp_access allow localnet
Received on Mon Feb 22 2010 - 08:54:57 MST

This archive was generated by hypermail 2.2.0 : Mon Feb 22 2010 - 12:00:05 MST