OpenWrt & Transparent Privoxy

Post Reply
admin
Site Admin
Posts: 473
Joined: 06 Feb 2007, 13:36

OpenWrt & Transparent Privoxy

Post 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.
admin
Site Admin
Posts: 473
Joined: 06 Feb 2007, 13:36

Re: OpenWrt & Transparent Privoxy

Post 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.
Post Reply