I have the following in /etc/rc.local on my router (ip to transparent proxy to squid proxy with dansguardian ip All works perfectly but I am having trouble adding a machine that I do not want to transparent proxy. If my proxy goes down I want to be able to access the internet to try to figure out the problem. I also do not want to proxy a specific server. Thank you kindly for any help and advice. The proxy has dansguardian on port 8080 and squid on 3128.

#eth0 is the green or internal nic
#eth1 is the red or external nic
#redirect to dansguardian so that there is a tranparent proxy.
iptables -t nat -A PREROUTING -i eth0 -s ! -p tcp --dport 80 -j DNAT --to
iptables -t nat -A POSTROUTING -o eth0 -s -d -j SNAT --to
iptables -A FORWARD -s -d -i eth1 -o eth0 -p tcp --dport 3128 -j ACCEPT