yunix
(usa openSUSE)
Enviado em 23/09/2014 - 09:49h
Bom dia Galera
Estou tentando bloquear alguns sites na minha rede, estou usando o OpenSuse com iptables e squid, porém não bloqueia os sites que coloco no arquivo.
Segue abaixo meu squid.
http_port 3128 transparent
visible_hostname Firewall
hierarchy_stoplist cgi-bin ?
cache_mem 64 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4095 KB
cache_dir ufs /var/spool/squid 1000 16 256
#cache_dir ufs /home/yunix/squid 100 16 256
cache_access_log /var/log/squid/access.log
error_directory /usr/share/squid/errors/Portuguese
# ACLS
acl all src 0.0.0.0/0.0.0.0
acl minha_rede src 10.20.4.0/255.255.255.0
#acl minha_rede src 192.168.0.0/255.255.255.0
acl manager proto cache_object
#acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 22
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 1723
acl Safe_ports port 3389
acl CONNECT method CONNECT
#acl acesso_total src "/etc/squid/ip_diretoria"
acl sites_proibidos url_regex -i "/etc/squid/sites_deny"
#http_access allow acesso_total
http_access deny sites_proibidos
#http_access allow manager localhost
http_access allow !Safe_ports
http_access deny manager
http_access allow CONNECT !SSL_ports
http_access allow minha_rede
#http_access allow all
http_access deny all
visible_hostname on
Grato