[all variants] webpage is forbidden when iptable redirect rule applied

view full story

http://ubuntuforums.org – Hi, I am running squid, iptable and apache on a single machine (Ubuntu 10.04) with 1 NIC (192.x.x.1). I have the following config in apache.conf. Code: <Directory /var/www/sarg>  order deny,allow  deny from all  allow from 192.x.x.10  allow from 192.x.x.20 </Directory> The users (192.x.x.10 & 192.x.x.20) can access the server's squid logs and others are forbidden. But when I apply this rule. Code: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 Than no one can see the logs. Is there a way that I can tel (Hardware)