tinyproxy

tinyproxy

tinyproxy

默认配置 /etc/tinyproxy/tinyproxy.conf

User tinyproxy
Group tinyproxy
Port 8888

访问控制

两种方式:

  1. 不指定 Listen (即 Listen 0.0.0.0),配置里用 Allow 显式指定允许的客户端 IP。
  2. 指定 Listen 局域网 LAN IP,配置里 Allow 0.0.0.0/0。

OpenWrt

opkg update
opkg install tinyproxy luci-app-tinyproxy
uci set tinyproxy.@tinyproxy[0].enabled=1
uci set tinyproxy.@tinyproxy[0].Listen='192.168.1.1' # 可选。设置监听 IP。
uci commit
/etc/init.d/tinyproxy enable
/etc/init.d/tinyproxy restart

默认端口 8888。

Config

/etc/config/tinyproxy

config tinyproxy
    option User 'nobody'
    option Group 'nogroup'
    option Port '8888'
    option Timeout '600'
    option DefaultErrorFile '/usr/share/tinyproxy/default.html'
    option StatFile '/usr/share/tinyproxy/stats.html'
    option LogFile '/var/log/tinyproxy.log'
    option LogLevel 'Info'
    option MaxClients '100'
    option MinSpareServers '5'
    option MaxSpareServers '20'
    option StartServers '10'
    option MaxRequestsPerChild '0'
    option ViaProxyName 'tinyproxy'
    list ConnectPort '443'
    list ConnectPort '563'
    option enabled '1'
    list Allow '192.168.1.0/24'
    list Allow '127.0.0.1'
    option Filter '/etc/config/tinyproxy_whitelist.txt'
    option FilterDefaultDeny '1'

Last update: 2023-12-15 05:52:58 UTC | Redirect from OpenWrt/tinyproxy