Announcement

Collapse
No announcement yet.

Transparent proxy for specific IPs

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Transparent proxy for specific IPs

    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.

    Code:
    -A PREROUTING -d 192.168.58.3/32 -p tcp -m tcp --dport 80 -j REDIRECT --to-port 8118
    Thanks!

    #2
    Figured it out.

    The -d was messing me up. That was telling iptables that that is the destination IP. What I needed was to change it to a -s for source.

    Comment

    Working...
    X