2011-10-27, 01:10 PM
I'm trying to setup a squid proxy server in combination with dansguardian internet filter on my pc. I used this guide and I am able to
configure it all. Only problem I'm having is as soon as I change the IP tables(see below) I'm don't have internet access anymore.
iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner squid -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport 3128 -m owner --uid-owner squid -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -A OUTPUT -p tcp --dport 3128 -j REDIRECT --to-ports 8080
iptables-save > /etc/sysconfig/iptables
I am able to restore it using the iptables.old file. I setup the whole configuration and all works without prolems.
So I have a feeling it has to do with the iptables. I can't find anything strange in the squid logs or the dansguardian logs.
Will continue to play around with it, hopefully I'll figure it out.