Transparent proxy but no ip forwarding?
Posted on 2004-08-26
I have a proxy server, which currently is setup as the gateway for all machines on my network via DHCP.
This box currently forwards packets directly to the internet, however it's also setup so that any traffic for port 80 is redirected through squid.
>> Is it possible for me to keep this machine setup as the gateway, and pass on requests to port 80 and 21, but not forward anything else?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128