I have slackware 11.0 with tinyproxy and Dansguardian working, some of my 'smart' clients refused to use the webproxy, so I have try all the How-to I have found to make my server work as a transparent proxy, unfortanetely none of the iptables rules I have applied seems to work
I'm very desperated since I have to stop some users to continue bypassing the webproxy and navigate where they want to.
I already have apply this iptables rules, none of them work:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t mangle -A PREROUTING -j ACCEPT -p tcp --dport 80 -s eth0
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
Those didn't worked, I also apply the following rules which also didn't work either;
iptables -t nat -A PREROUTING -p tcp -s eth0 --destination-port 80 -j RETURN
iptables -t nat -A PREROUTING -p tcp -s eth0 --destination-port 80 -j REDIRECT --to-ports 8080
As I said I have use those rules separately and none of them worked, is there any other rule I could apply so my transparent proxy could work?