fabricio_sjo
(usa Outra)
Enviado em 06/12/2011 - 15:18h
Estou configurando Ubuntu 10.10 + squid3 e estou com o problema de não conseguir navegar em modo transparente.
tenho eth0=internet e eth1=redelocal tenho o dhcp3-server rodando
Lá vai meus scrip e o meu squid.conf.
Vejam o que ah de errado.
#meu scrip de compartilhamento de internet
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
#meu script de direcionamento porta 80 para 3128
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
#squid.conf
http_port 3128 transparent
visible_hostname cia
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 1000 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 25000 16 256
cache_access_log /var/log/squid3/access.log
refresh_pattern ^ftp: 15 20% 3000
refresh_pattern ^gopher: 15 0% 3000
refresh_pattern . 15 20% 3000
#acl all src 0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # http,snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 # swap
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
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
acl redelocal src 192.168.3.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all