Page 1 of 1

OpenWrt & Transparent Privoxy

Posted: 15 Oct 2016, 20:23
by admin
In this case all clients don't need proxy settings anymore! ;)
All requests from LAN to port 80 are re-routed through -transparent- Privoxy.

From: http://blog.vanutsteen.nl/2014/01/05/in ... n-openwrt/

Add following redirect to /etc/config/firewall:

Code: Select all

config redirect
        option proto 'tcp'
        option target 'DNAT'
        option dest 'lan'
        option _name 'transparent-proxy for HTTP'
        option src 'lan'
        option dest_port '8118'
        option src_dport '80'
        option dest_ip '192.168.5.1'
        option src_dip '!192.168.5.1'
Make sure to replace the 192.168.5.x addresses with ones that match your network setup.

Check Privoxy settings, they must have:
  • toggle 1
  • enable-remote-toggle 1
  • enable-remote-http-toggle 0
  • enable-edit-actions 1
  • enforce-blocks 0
  • buffer-limit 4096
  • accept-intercepted-requests 1
  • allow-cgi-request-crunching 0
  • keep-alive-timeout 300
  • socket-timeout 300
Restart firewall (/etc/init.d/firewall restart) and Privoxy (/etc/init.d/privoxy restart) and all should work.

DG.

Re: OpenWrt & Transparent Privoxy

Posted: 27 Oct 2016, 15:32
by admin
Although this does not always do the job correctly ....
Some clients, with static ip-addresses, still faced with non-proxy-ed data in browsers.
Could be that the data is transferred over other port (443 https) which is not quiet yet proxy-ed?

DG.