removido
(usa Nenhuma)
Enviado em 26/07/2011 - 20:49h
Boa noite a todos,
Estou estudando o squid e estou com uma certa dificuldade.
Configurei meu arquivo squid.conf como transparente
http_port 3128 transparent
Adicionei as regras do ipatables:
# echo 1 > /proc/sys/net/ipv4/ip_forward
# /sbin/modprobe iptable_nat
# iptables -F
# iptables -t nat -F
# iptables -t nat -A PREROUTING -s 0/0 -p tcp --dport 80 -j REDIRECT --to-port 3128
# iptables -t nat -A PREROUTING -s 0/0 -p udp --dport 80 -j REDIRECT --to-port 3128
# iptables -t nat -A POSTROUTING -s 0/0 -o ppp0 -j MASQUERADE
Porem as regras do meu arquivo squid não são respeitadas.
Alguem pode me ajudar, Estou fazendo o teste no ubuntu, squid3
Abaixo o conteudo do arquivo squid.conf
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
cache_mem 16 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
cache_dir ufs /var/cache/squid 1000 16 256
cache_access_log /var/log/squid/access.log
# ACLS
acl manager proto cache_object
acl localhost src 127.0.0.0
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
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 CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl sites url_regex "/etc/squid3/sites.txt"
http_access deny sites