View Single Post

  #1 (permalink)  
Old 11-14-2007, 10:29 PM
vitaminme vitaminme is offline
Junior Member
User
 
Join Date: Aug 2007
My distro: redhat
Posts: 3
Rep Power: 0
vitaminme is on a distinguished road
Default squid help pleaase

squid help please.
i've two networks. On one network i want to allow only particular sites.
On 2nd network i want to allow all sites. how do i do that? Only need help with acls order. Thanks


will this work

#Recommended minimum configuration:
acl geek scr 172.16.1.1
acl smokers src 192.168.0.0/24
acl walled_class src 172.16.0.0/24
acl allowedSites url_regex -i "/etc/squid/allowedsites" # define allowed
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT








# And finally deny all other access to this proxy
http_access allow geek
http_access allow smokers # allow all to smokers
http_access allow walled_class allowedsites # allow only
http_access deny walled_class !allowedsites # deny everything other than allowed sites
http_access allow localhost
http_access deny all

Last edited by vitaminme; 11-16-2007 at 10:07 AM..
Reply With Quote