Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##squid.conf
- http_port 3128 transparent
- visible_hostname proxy.hw.local
- cache_mem 1024 MB
- cache_swap_low 90
- cache_swap_high 95
- cache_dir ufs /var/spool/squid3 4096 32 512
- maximum_object_size 30000 KB
- maximum_object_size_in_memory 40 KB
- cache_access_log /var/log/squid3/access.log
- error_directory /usr/share/squid3/errors/Portuguese/
- #cache_log /var/log/squid3/cache.log
- #cache_store_log /var/log/squid3/store.log
- #pid_filename /var/log/squid3/squid3.pid # pid - mudamos para esta pasta para facilitar na identificação de problemas
- #mime_table /usr/share/squid3/mime.conf
- cache_mgr [email protected]
- memory_pools off
- #diskd_program /usr/lib/squid3/diskd
- #unlinkd_program /usr/lib/squid3/unlinkd
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern (cgi-bin|\?) 0 0% 0
- refresh_pattern . 0 20% 4320
- quick_abort_max 16 KB
- quick_abort_pct 95
- quick_abort_min 16 KB
- request_header_max_size 20 KB
- reply_header_max_size 20 KB
- request_body_max_size 0 KB
- acl manager proto cache_object
- acl localhost src 127.0.0.1/32
- acl to_localhost dst 127.0.0.0/8
- acl rede src 192.168.5.0/24 # Representa a sua rede e respectiva máscara de sub-rede
- acl SSL_ports port 443 563
- acl Safe_ports port 80 # http
- acl Safe_ports port 21 # ftp
- acl Safe_ports port 443 563 1863 # 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
- http_access allow manager localhost
- http_access deny manager
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- acl bloqueados url_regex -i "/etc/squid3/urlblock"
- http_access deny bloqueados
- acl palavrasproibidas dstdom_regex "/etc/squid3/wordblock"
- http_access deny palavrasproibidas
- http_access allow rede
- http_access deny all
Advertisement
Add Comment
Please, Sign In to add comment