(Archlinux 下,使用 sudo 安装和配置)
1. 安装 polipo
# pacman -S polipo
会自动加入组 polipo
2. 修改配置
# cd /etc/polipo
# cp config.sample config
# vi config
取消下面两行的注释并修改
socksParentProxy = "localhost:1080"
socksProxyType = socks5
注意可能需要确认 /etc/hosts 中 localhost
3. 启动 polipo
# systemctl start polipo
可能你希望 enable
测试一下:
$ http_proxy=http://127.0.0.1:8123 wget www.google.com
4. 让 guest 使用
guest 网络应采用 NAT 模式
在genymotion guest 中,设置-> Wi-Fi -> 长按 WiredSSID -> 修改网络
选中 高级选项
手动代理
主机名:10.0.3.2,端口:8123