I posted this at ubuntuforums a few days ago but didn't get a response. 
I have a small home network with 8 PCs. I have privoxy setup and running on the gateway machine. I want to do a transparent proxy with only two machines on the network.
So what I want to do is redirect traffic coming from a specific IP on the LAN, from port 80 to port 8118 so that it goes through privoxy on the gateway.
I can't seem to find a clear explanation for how to do this. Here is what I have in iptables.rules, but it's not working.
Thanks!

I have a small home network with 8 PCs. I have privoxy setup and running on the gateway machine. I want to do a transparent proxy with only two machines on the network.
So what I want to do is redirect traffic coming from a specific IP on the LAN, from port 80 to port 8118 so that it goes through privoxy on the gateway.
I can't seem to find a clear explanation for how to do this. Here is what I have in iptables.rules, but it's not working.
Code:
-A PREROUTING -d 192.168.58.3/32 -p tcp -m tcp --dport 80 -j REDIRECT --to-port 8118
Comment