Skip to content

Instantly share code, notes, and snippets.

@GeoffWilliams
Created September 29, 2014 03:55
Show Gist options
  • Select an option

  • Save GeoffWilliams/b0dc24d1d9912a5edbc5 to your computer and use it in GitHub Desktop.

Select an option

Save GeoffWilliams/b0dc24d1d9912a5edbc5 to your computer and use it in GitHub Desktop.
firewall rules - privoxy
uci add firewall redirect
uci set firewall.@redirect[0].name='Transparent Proxy Redirect (privox)'
uci set firewall.@redirect[0].src=lan
uci set firewall.@redirect[0].proto=tcp
uci set firewall.@redirect[0].dest_port=8118
uci set firewall.@redirect[0].src_dport=80
uci set firewall.@redirect[0].src_dip='!192.168.1.1'
uci set firewall.@redirect[0].dest_ip=192.168.1.1
uci set firewall.@redirect[0].target='DNAT'
uci commit firewall
/etc/init.d/firewall restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment