Allow a network
acl our_networks src 192.168.1.0/24 192.168.2.0/24
http_access allow our_networks
Note: In squid the the syntax is some what like assigning the values to a veriable and then putting the rule
in the above section our_networks is the veriable and the second line shows the rule
like wise ...
Block a Network
acl other_networks src 192.168.11.0/24 192.168.12.0/24
http_access deny other_networks
Allow some hosts
acl AllowedHost src 192.168.26.80 192.168.26.31 192.168.27.158 192.168.27.66
http_access allow AllowedHost
Deny SomeHosts
acl DeniedHost src 192.168.26.80 192.168.26.31 192.168.27.158 192.168.27.66
http_access deny DeniedHost
No comments:
Post a Comment