The Un-Official Proxomitron Forum
Configure privoxy to use specific network interface - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Forum Related (/forumdisplay.php?fid=37)
+--- Forum: Privoxy (/forumdisplay.php?fid=49)
+--- Thread: Configure privoxy to use specific network interface (/showthread.php?tid=2337)



Configure privoxy to use specific network interface - Amra - Jul. 11, 2018 08:51 AM

In ubuntu I am connected to network using two network interfaces.
One interface is used primary. I would like to configure privoxy to use the second one.

AFAIK I have to route all privoxy packets via specific gateway, but I have no idea how.

Forward directive in config file is just for forwarding it to another proxy and therefore it's not usable (I think).

Any help appreciated Thumbs Up


RE: Configure privoxy to use specific network interface - ryszardzonk - Jul. 14, 2018 05:59 PM

It should be something along those lines
Code:
iptables -t nat -A PREROUTING -i localhost -p tcp -s 127.0.0.1 --sport 3128 --dport 80 -j DNAT --to 192.168.1.2:80

that should work to
Code:
iptables -t nat -A PREROUTING -p tcp -s 127.0.0.1 --sport 3128 --dport 80 -j DNAT --to 192.168.1.2:80

obviously you have to change 3128 to your privoxy port and ip adress from 192.168.1.2 to the network card you want to send traffic to