polipo是一款小巧的带缓存机制的http代理服务器,可以运行于linux与windows,支持二级代理,支持简单的身份认证,很适合在openwrt上配合autossh实现科学上网。
环境:Openwrt 14.07 x86平台。
第一步,安装软件
opkg install polipo
如果喜欢用图形界面的话,也可以安装luci的polipo设置模块:
opkg install luci-app-polipo
第二步,修改配置,编辑文件/etc/config/polipo,内容如下:
# 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'
option 'socksParentProxy' '127.0.0.1:1080'
option 'authCredentials' 'username:password'
config 'polipo' 'gene