Created
September 29, 2014 03:55
-
-
Save GeoffWilliams/b0dc24d1d9912a5edbc5 to your computer and use it in GitHub Desktop.
firewall rules - privoxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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