共享 shadowsocks

如果你的shadowsocks是从pip下载的python脚本,则默认是绑定监听lo网卡的(socks5),若是想分享给其他人( UI妹子⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄ )上网用,可能就不行,需要做一些操作。对外暴露一个端口,然后把这个端口的请求转发到lo网卡。

方法一:使用polipo

polipo是一款优秀的web代理工具,使用它可以容易的把ss分享给其他人,而且还能提供http代理。
据说

安装 & 配置

sudo apt-get install polipo

vim /etc/polipo/config
### Basic configuration

# Add your proxy's address
proxyAddress = 0.0.0.0
socksParentProxy = "127.0.0.1:1080"

# Allow from anyone in the 192.168.0.* range to connect to your proxy
allowedClients = 192.168.0.0/24

启动 & 测试

sudo /etc/init.d/polipo restart

export http_proxy=http://ip:8123/

8123是默认的端口,其他机器设置好代理访问facebook:

可以看到请求的log,并成功访问facebook。

其他方法

privoxy
proxychains
...

#