Squid (squid.conf)

Configuracao do SQUID

Categoria: Networking

Software: Squid

[ Hits: 7.132 ]

Por: Perfil removido


Meu arquivo de configuracao do SQUID. Uso e recomendo até hoje!


http_port 3128

cache_mem 32 MB
cache_dir ufs /var/cache/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid


acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl HTTP proto http
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 25 # pop
acl Safe_ports port 110 # smtp
acl Safe_ports port 443 563 # https, snews
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 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

acl list urlpath_regex -i "/etc/squid/list.txt"
acl bloqueados url_regex "/etc/squid/bloqueados/block.txt"
acl desbloqueados url_regex "/etc/squid/bloqueados/unblock.txt"
acl list urlpath_regex -i "/etc/squid/list.txt"

acl ip_liberado src 192.168.11.2
acl net_liberada src 192.168.11.3 192.168.11.4
acl redelocal src 192.168.11.0/24 # IP da sua Rede


delay_pools 3
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow ip_liberado
delay_class 2 2
delay_parameters 2 -1/-1 15000/15000
delay_access 2 allow net_liberada
delay_class 3 2
delay_parameters 3 -1/-1 15000/15000
delay_access 3 allow redelocal

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

http_access allow ip_liberado
http_access allow net_liberada
http_access deny bloqueados !desbloqueados
http_access deny list
http_access allow localhost
http_access allow redelocal
http_access deny all

cache_mgr admin@email.com.br # E-mail ADMIN

visible_hostname adminserver # Nome do computador

  


Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts