Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # TAG: acl
- # Defining an Access List
- #Default:
- # ACLs all, manager, localhost, and to_localhost are predefined.
- #
- #
- # Recommended minimum configuration:
- #
- # Example rule allowing access from your local networks.
- # Adapt to list your (internal) IP networks from where browsing
- # should be allowed
- acl localnet src 10.10.10.0/24 # RFC1918 possible internal network
- acl localnet src 172.10.0.0/22 # RFC1918 possible internal network
- acl localnet src 172.11.0.0/22 # RFC1918 possible internal network
- acl localnet src 172.12.0.0/22 # RFC1918 possible internal network
- acl localnet src 10.13.0.0/22 # RFC1918 possible internal network
- acl localnet src 172.1.0.0/24 # RFC1918 possible internal network
- 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
- #
- # Recommended minimum Access Permission configuration:
- #
- # Deny requests to certain unsafe ports
- http_access deny !Safe_ports
- # Deny CONNECT to other than secure SSL ports
- http_access deny CONNECT !SSL_ports
- # Only allow cachemgr access from localhost
- http_access allow localhost manager
- http_access deny manager
- # Squid normally listens to port 3128
- http_port 8080 transparent
- # MEMORY CACHE OPTIONS
- # -----------------------------------------------------------------------------
- #Default:
- maximum_object_size_in_memory 5 MB
- # DISK CACHE OPTIONS
- # -----------------------------------------------------------------------------
- #Default:
- maximum_object_size 1 GB
- # Uncomment and adjust the following to add a disk cache directory.
- cache_dir ufs /var/spool/squid 200000 16 256
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement