Last active
October 8, 2024 22:54
-
-
Save wen-long/8645806 to your computer and use it in GitHub Desktop.
Revisions
-
wen-long revised this gist
Jan 28, 2014 . 1 changed file with 42 additions and 18 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,27 +11,51 @@ polipo 配置文件在 `etc/config/polipo` - proxyPort是本地监听端口 ``` # polipo daemon configuration config 'polipo' 'daemon' # daemonise polipo (fork in background) option 'daemonise' '1' # where polipo will store its process pid option 'pidFile' '/var/run/polipo.pid' config 'polipo' 'general' option 'enabled' '1' # adress on which polipo will listen, 0.0.0.0 means all addresses option 'proxyAddress' '0.0.0.0' # port on which polipo will listen, default is 8123 option 'proxyPort' '9999' # list of allowed clients to connect list 'allowedClients' '192.168.8.0/24' list 'allowedClients' '127.0.0.1' #list 'allowedClients' '192.168.2.1' # how much RAM memory should Polipo use (in bytes). option 'chunkHighMark' '1048576' # enable disk cache index and serverlist of integrated polipo web interface #option 'disableIndexing' '0' #option 'disableServersList' '0' # disable loging to syslog option 'logSyslog' '0' # set log file location (disabled when not set) #option 'logFile' '/mnt/usbdrive/polipo/log' option socksParentProxy '127.0.0.1:9900' option socksProxyType socks5 config 'polipo' 'cache' # disk cache location, you should always use external storage device # (disabled when not set) #option 'diskCacheRoot' '/mnt/usbdrive-p2/polipo/cache' # disk cache cleanup settings #option 'diskCacheUnlinkTime' '20d' #option 'diskCacheTruncateTime' '5d' #option 'diskCacheTruncateSize' '3145728' # set to 1 if proxy is used by multiple users #option 'cacheIsShared' '1' config 'polipo' 'pmm' # poor man's multiplexing semgnet size to fetch #option 'pmmSize' '8192' ``` ####polipo有网页控制界面http://192.168.8.1:9999/polipo/ >9999 是上面的 proxyPort -
wen-long created this gist
Jan 27, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ ####polipo 是一个轻量级的跨平台代理服务器。可以实现HTTP和SOCKS代理 polipo 配置文件在 `etc/config/polipo` 会按照上面的文件修改`/var/etc.polipo.conf ` >不要在 openwrt 网页控制界面修改 polipo 的设置(socks5代理无法设置) ####以下示例中 - socksParentProxy是上级代理ip,端口 - socksProxyType是上级代理类型 - proxyAddress是监听的ip - allowedClients是允许ip范围 - proxyPort是本地监听端口 ``` config polipo 'daemon' option daemonise '1' option pidFile '/var/run/polipo.pid' config polipo 'general' option enabled '1' option chunkHighMark '1048576' option dnsQueryIPv6 'happily' option dnsUseGethostbyname 'reluctantly' option logSyslog '1' option socksParentProxy '127.0.0.1:9900' option socksProxyType socks5 option proxyAddress "0.0.0.0" option allowedClients "192.168.8.0/24" option proxyPort 9999 option localDocumentRoot '/www/' option allowedPorts '1-65535' config polipo 'cache' config polipo 'pmm' ``` ####polipo有网页控制界面http://192.168.8.1:9999/polipo/ >9999 是上面的 proxyPort