Enviado em 14/03/2013 - 14:18h
Olá pessoal, montei um m firewall com iptables + squid para mim estudar, está tudo funcionando ok, mas estou com dificuldade para criar as regras dentro do squid, ele não apresenta nenhum erro, acredito que eu poça estar liberando tudo depois das regras, se alguem puder me dar um auxilio ou me indicar tópicos de estudo sobre squid. Vou postar meu squid aqui. vlw
http_port 3128 transparent
visible_hostname Srvfwl
acl manager proto cache_object
acl localhost src 10.0.0.0/24
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
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 CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
acl redelocal src 10.1.1.0/24
acl teste src 10.1.1.107
acl bloqueio url_regex -i "/etc/squid/regras/bloqueados"
http_access allow teste !bloqueio
# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 512 16 256
# Leave coredumps in the first cache dir
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320