turcoguara
(usa Debian)
Enviado em 19/10/2016 - 13:45h
Pessoal tudo bem, estou quebrando a cabeça, pois atualizei meu squid para o squid3, fiz as alterações necessárias para le funcionar só que agora ele não bloqueia nada.
Nem o que coloquei na lista de palavras bloqueadas.
Alguem poderia me dar uma luz no que estou fazendo de errado
Obrigado.
#Squid.conf
http_port 3128 intercept
cache_mem 750 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 4500 16 256
maximum_object_size_in_memory 1024 KB
maximum_object_size 650 MB
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
pid_filename /var/log/squid3/squid3.pid
mime_table /usr/share/squid3/mime.conf
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 nsa_clients src 192.168.50.0/24
#palavras bloqueadas
acl nsa_blocked url_regex -i "/etc/squid3/nsa.txt"
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 Safe_ports port 11027 # ts
acl CONNECT method CONNECT
######## IPS Liberados ###############################
acl ip_liberado url_regex -i "/etc/squid3/ip_liberado.txt"
######################################################
#Aplicando as regras
http_access deny nsa_blocked
http_access allow manager localhost
http_access allow nsa_clients
http_access allow ip_liberado
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny nsa_clients
http_access deny ip_liberado
http_access deny all
cache_mgr webmaster
mail_program mail
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string off
visible_hostname serveralunos
error_directory /usr/share/squid3/errors/Portuguese/
Obrigado pessoal.