iptables rule that excludes a particular ip?
Currently, all my lan's traffic get filtered through dansguardian because I have the following as the last rule in iptables' nat PREROUTING chain:
--append PREROUTING --protocol tcp --match tcp --dport 80 --jump REDIRECT --to-ports 8080
I have diagnosed that even when dansguardian is set to “Unrestricted”, the combination of squid and dansguardian breaks a critical application on host 192.168.0.8.
All other traffic is fine, so I just want that one workstation NOT to be redirected. Im looking for the correct form for "all tcp port 80 traffic unless source is 192.168.0.8"
So can someone help me with the correct rule, or provide a rule to skip the rest of the chain if the source is a particular IP?
Thanks!