proxy config (firefox config)

sudo apt-get install shadowsocks
sudo apt-get install polipo

编辑polipo config:

sudo vim /etc/polipo/config

加入以下内容:

socksParentProxy = "localhost:1080"
socksProxyType = socks5
logLevel=4

重启服务:

sudo service polipo stop
sudo service polipo start

用法:

http_proxy=http://localhost:8123 go get github.com/xxxxxxx
https_proxy=http://localhost:8123 go get -u -v github.com/mattn/go-sqlite3

 

firefox foxyproxy standard (4.6.5) config:

- Proxies
    Add New Proxy
    - General
      Enabled
        Proxy Name : ss
    - Proxy Details
      Manual Proxy Configuration
        Server or IP Address: 127.0.0.1 Port:1080
        SOCKS proxy? SOCKS v5
- Pattern Subscriptions
  Add New Pattern Subscription Go
    Enabled
      Subscription Name: gwflist
      Subscription URL:https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
      Proxies - Add Proxies - ss
      Refresh Rate: 720 minutes
      Format: AutoProxy
      Obfuscation: Base64
- Select Mode: Use proxies based on their pre-defined patterns and priorities

 

posted @ 2018-03-08 10:08  ibg  阅读(694)  评论(0编辑  收藏  举报