I have a squid proxy server 192.168.1.1, internet is on eth0 and eth1 is local LAN, and several other boxes getting their IP's via DHCP, all fine no problem. Squid uses port 3128 and I had to point all the browsers of the other boxes to this port using the rules added to my firewall:-
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
-j REDIRECT --to-ports 3128
iptables -A OUTPUT -j ACCEPT -m state --state NEW -o eth0 \
-p tcp --dport 80
Is it possible to configure the iptables rules so that all the browsers point to the standard port 80 and it gets redirected to 3128. I have httpd running, but only for the LAN, I do not require it to be accessible from 'outside'.
Thanx in advance.
My knowledge of iptbales is limited to say the least....