Squid: Transparan Proxy Sederhana

From OnnoWiki
Jump to navigation Jump to search

Sumber: http://www.tldp.org/HOWTO/TransparentProxy-6.html#ss6.1


iptables -t nat -A PREROUTING -i eth0 -s ! squid-box -p tcp --dport 80 -j DNAT --to squid-box:3128
iptables -t nat -A POSTROUTING -o eth0 -s local-network -d squid-box -j SNAT --to iptables-box
iptables -A FORWARD -s local-network -d squid-box -i eth0 -o eth0 -p tcp --dport 3128 -j ACCEPT


Referensi