Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http_port 8787 transparent
- visible_hostname enguia
- # Cache em memoria
- cache_mem 512 MB
- maximum_object_size_in_memory 256 KB
- # Cache em disco
- maximum_object_size 64 MB
- minimum_object_size 2 KB
- cache_swap_low 90
- cache_swap_high 95
- cache_dir ufs /var/spool/squid3 6144 16 256
- refresh_pattern ^ftp: 15 20% 1440
- refresh_pattern ^gopher: 15 0% 1440
- refresh_pattern . 15 20% 1440
- # Acl's de conexao e cache
- acl manager proto cache_object
- acl localhost src 127.0.0.1/32
- acl local_network src 10.0.0.0/24
- acl SSL_ports port 443 563
- 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 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 901 # swat
- acl Safe_ports port 1025-65535 # high ports
- acl purge method PURGE
- acl CONNECT method CONNECT
- # Acl's de bloqueio
- acl unlimited_ips src "/etc/squid3/rules/unlimited_ips"
- http_access allow unlimited_ips
- acl free_sites dstdom_regex "/etc/squid3/rules/free_sites"
- http_access allow free_sites
- acl blocked_sites url_regex -i "/etc/squid3/rules/blocked_sites"
- http_access deny blocked_sites
- # Limitação de banda
- acl limited_downloads url_regex -i "/etc/squid3/rules/limited_downloads"
- acl low_rate url_regex -i "/etc/squid3/rules/low_rate"
- http_access allow manager localhost
- http_access deny manager
- http_access allow purge localhost
- http_access deny purge
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- htcp_access allow all
- icp_access allow all
- # Limitando banda para navegacao
- delay_pools 2
- delay_class 1 2
- delay_parameters 1 380160/380160 16384/16384
- delay_access 1 allow limited_downloads
- delay_class 2 2
- delay_parameters 2 380160/380160 16384/16384
- delay_access 2 allow low_rate
- # Libera o resto
- http_access allow localhost
- http_access allow local_network
- http_access deny all
Advertisement
Add Comment
Please, Sign In to add comment