linux使用polipo实现全局代理

作者: admin 分类: 渗透测试 发布时间: 2017-10-26 17:14

sudo apt-get install python-pip  
sudo pip install shadowsocks 
apt-get install polipo

sublime软连接:

ln -s /opt/sublime_text/sublime_text /usr/bin/sublime

sudo sublime /etc/shadowsocks.json

增加如下内容:
{  
    "server": "xxxx.com",  
    "server_port": 52239,  
    "local_address": "127.0.0.1",  
    "local_port": 1080,  
    "password": "SOME_PASSWORD",  
    "timeout": 600,  
    "method": "aes-256-cfb",  
    "fast_open": false  
}  

启动shadowsocks(后台启动):

nohup sslocal -c /etc/shadowsocks.json &

sublime /etc/polipo/config

增加如下内容

logSyslog = true
logFile = /var/log/polipo/polipo.log

proxyAddress = "0.0.0.0"
proxyPort = 8123

socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5

chunkHighMark = 50331648
objectHighMark = 16384

serverMaxSlots = 64
serverSlots = 16
serverSlots1 = 32

重启polipo

/etc/init.d/polipo restart

export http_proxy="http://127.0.0.1:8123"  
export https_proxy="https://127.0.0.1:8123" 

curl www.google.com

关闭polipo,以代理方式启动google-chrome 安装代理插件Proxy SwitchyOmega:

google-chrome –proxy-server=socks://127.0.0.1:1080

创建代理http://127.0.0.1:8123即可安全上网

参考:

https://blog.huihut.com/2016/12/03/BandwagonShadowsocksServer/

发表评论

电子邮件地址不会被公开。 必填项已用*标注

标签云