Differences
This shows you the differences between two versions of the page.
|
doc:howto:proxy.tinyproxy [2013/01/03 15:12] mcknut Adding the firewall redirect block as it's not there initially. |
doc:howto:proxy.tinyproxy [2013/01/05 09:21] (current) orca formating |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| If a full featured HTTP proxy is required, the tinyproxy package is an ideal solution for you as a larger proxy might be unavailable in this environment. | If a full featured HTTP proxy is required, the tinyproxy package is an ideal solution for you as a larger proxy might be unavailable in this environment. | ||
| - | 1. install softwares | + | - install software packages:<code> |
| - | <code> | + | |
| opkg update | opkg update | ||
| opkg install tinyproxy luci-app-tinyproxy | opkg install tinyproxy luci-app-tinyproxy | ||
| </code> | </code> | ||
| - | + | - configure ''tinyproxy'':<code> | |
| - | 2. configure tinyproxy | + | |
| - | <code> | + | |
| uci set tinyproxy.@tinyproxy[0].enabled=1 | uci set tinyproxy.@tinyproxy[0].enabled=1 | ||
| uci commit | uci commit | ||
| Line 17: | Line 14: | ||
| /etc/init.d/tinyproxy restart | /etc/init.d/tinyproxy restart | ||
| </code> | </code> | ||
| - | + | - configure transparent proxy redirection:<code> | |
| - | 3. configure transparent proxy redirection | + | |
| - | <code> | + | |
| uci add firewall redirect | uci add firewall redirect | ||
| - | uci set firewall.@redirect[0]._name=transparent-proxy | + | uci set firewall.@redirect[0].name='Transparent Proxy Redirect' |
| uci set firewall.@redirect[0].src=lan | uci set firewall.@redirect[0].src=lan | ||
| uci set firewall.@redirect[0].proto=tcp | uci set firewall.@redirect[0].proto=tcp | ||
| Line 31: | Line 26: | ||
| /etc/init.d/firewall restart | /etc/init.d/firewall restart | ||
| </code> | </code> | ||
| - | Note that ''firewall.@redirect[0].src_dip=!192.168.1.1'' option is important, if you missed this option you may not connect to your LuCI. I can't find this option in the LuCI "Network => Firewall => Traffic Redirection" page, so be careful if you're using LuCI. | + | |
| + | :!: Note that the **''firewall.@redirect[0].src_dip=!192.168.1.1''** option is important, if you missed this option you may not connect to LuCI. I can't find this option in the LuCI "Network => Firewall => Traffic Redirection" page, so be careful if you're using LuCI. | ||
| Note also that by default tinyproxy does not allow connections from other hosts so you will need to enable this. One way is to comment out the "Allow" line from the config. | Note also that by default tinyproxy does not allow connections from other hosts so you will need to enable this. One way is to comment out the "Allow" line from the config. | ||
doc/howto/proxy.tinyproxy.1357222350.txt.bz2 · Last modified: 2013/01/03 15:12 by mcknut
