Use the # key to remark or comment out a line of code, it's easier to
change it than delete it. Any line starting with a # wont be read.
The device eth0 must exist using the same name.
this will be the input to squid proxy cache.
iptables -t nat -A PREROUTING -i
eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
ppp0 is my modem and where the proxy accesses the web.
Code:
(My computer and Home-Net)-> eth0 ->
| -> firewall -> ppp0 -> www
squid ->
So this gateway (eth0 and ppp0) uses the proxy cache as well as any computers connected to my home network(eth0).
Hope this helps.