Privoxy, br0 interface

Discussion in 'Tomato Firmware' started by ulyan, Jul 10, 2012.

  1. ulyan

    ulyan Networkin' Nut Member

    Hi everyone I have a question. Is there any way of redirecting all traffic from an interface like say br0 trough the privoxy proxy without configuring the browser or the client to do so ? And if yes what should I do ? Where does privoxy has to listen ? adress:port (8118 by default). Do I need iptables rules ?

    Thank you.

    (I know that privoxu is not a transparent proxy, do I need one, altough I can't understand the difference).:oops:
  2. ryzhov_al

    ryzhov_al Addicted to LI Member

    $ iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8118
    $ cat ./etc/privoxy/config
    accept-intercepted-requests 1
  3. ulyan

    ulyan Networkin' Nut Member

    Ok, and what about this !? "listen-address" should it remain like this ? Thanks. this says privoxy is not used.

    EDDYMERCKX Network Guru Member

    Are you running this locally on the router or are you routing traffic for br0 to another box running privoxy?

    #iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j DNAT --to <proxy ip>:<proxy port>
    #iptables -t nat -A POSTROUTING -o br0 -p tcp -d <proxy ip> -j SNAT --to <router LAN IP>
    #iptables -t filter -I FORWARD -d <proxy ip> -i br0 -o br0 -p tcp --dport <proxy port> -j ACCEPT
  5. ulyan

    ulyan Networkin' Nut Member

    On the router itself, I want to route the traffic coming from my wifi clients. Mainly for the ad blocking and privacy capabilities of privoxy. And I don't want to have to configure the proxy settings for every client, I want it to be done by the router globally. Thanks.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice