# /etc/squid/squid.conf
http_port 0.0.0.0:13128 transparent
acl any src all
http_access allow all
cache_mem 128 MB
maximum_object_size 4096 KB
maximum_object_size_in_memory 4096 KB
reply_body_max_size 10240000 allow all
access_log /var/log/squid3/access.log squid
visible_hostname 10.0.0.2
cache_dir ufs /var/spool/squid3 100016256
cache_mgr XXX
# command for redirect ip flow to the squid port
# this server act as the gateway
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 13128