Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http_port 3128 transparent
- #Recommended minimum configuration:
- acl all src all
- acl manager proto cache_object
- acl localhost src 127.0.0.1/32
- acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
- acl localnet src 192.168.1.0/24
- acl SSL_ports port 443 # https
- acl SSL_ports port 563 # snews
- acl SSL_ports port 873 # rsync
- 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 Safe_ports port 631 # cups
- acl Safe_ports port 873 # rsync
- acl Safe_ports port 901 # SWAT
- acl purge method PURGE
- acl CONNECT method CONNECT
- #Recommended minimum configuration:
- #
- # Only allow cachemgr access from localhost
- http_access allow manager localhost
- #http_access deny manager
- # Only allow purge requests from localhost
- http_access allow purge localhost
- http_access deny purge
- # Deny requests to unknown ports
- http_access deny !Safe_ports
- # Deny CONNECT to other than SSL ports
- http_access deny CONNECT !SSL_ports
- # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
- #ACLs criadas por Camyllo:
- acl LiberadasFull src "/etc/squid/LiberadasFull"
- acl bloqueados url_regex -i "/etc/squid/Sites_Bloqueados"
- acl liberadosSGD url_regex -i "/etc/squid/Sites_Liberados_SGD"
- acl IPSRestritosSGD src "/etc/squid/IPSRestritosSGD"
- acl IPSRedePermitidos src "/etc/squid/IPSRedePermitidos"
- http_access allow LiberadasFull
- http_access deny bloqueados
- http_access allow liberadosSGD
- http_access deny IPSRestritosSGD
- http_access allow IPSRedePermitidos
- http_access allow localhost
- # And finally deny all other access to this proxy
- http_access deny all
- #Allow ICP queries from local networks only
- icp_access allow localnet
- icp_access deny all
- hierarchy_stoplist cgi-bin ?
- cache_mem 64 MB
- maximum_object_size_in_memory 64 KB
- cache_dir ufs /var/spool/squid 2048 16 256
- maximum_object_size 4096 KB
- cache_swap_low 90
- cache_swap_high 95
- mime_table /usr/share/squid/mime.conf
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
- refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
- refresh_pattern . 0 20% 4320
Advertisement
Add Comment
Please, Sign In to add comment