Enviado em 23/04/2016 - 20:13h
Boa Noite, tenho um servidor squid transparente funcionando beleza !
http_port 3130 transparent
cache_mem 128 MB
maximum_object_size 64 MB
minimum_object_size 1 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 2048 16 256
cache_access_log /var/log/squid3/access.log
cache_mgr danilorocha64@gmail.com
visible_hostname home
# ACL #
acl home src all
acl site url_regex "/etc/squid3/site.txt"
http_access deny site
http_access allow home
# ACL #
# Redirecionamento 80 para 3130 - Squid -
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3130
iptables -t nat -A PREROUTING -i eth1 -p udp --dport 80 -j REDIRECT --to-port 3130