ssh91:https://my.ssh91.net/clientarea.php?action=productdetails
1、下載shadowsocks:
~/bin/$ wget https://github.com/fanach/download/releases/download/latest/shadowsocks-local-linux32-1.1.5.gz
~/bin/$ gzip -d shadowsocks-local-linux32-1.1.5.gz
~/bin/$ chmod +x shadowsocks-local-linux32-1.1.5
2、建立shadowsocks的配置文件:
~/bin/$ sudo vi /etc/shadowsocks.json
在文件中插入如下內容:
{
"server":"remote-shadowsocks-server-ip-addr",
"server_port":443,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"your-passwd",
"timeout":300,
"method":"rc4-md5",
"fast_open":false,
"workers":1
}
修改其中的server addr/server port/password爲自己的內容。保存。
3、測試:
~/bin/$ ./shadowsocks-local-linux32-1.1.5/shadowsocks-local-linux32-1.1.5 -c /etc/shadowsocks.json
在firefox 配置的網絡配置中選擇Manual proxy configuration,並配置
選擇ok,之後打開google,試試是不是配好了。
# apt-get install supervisor
# cd /etc/supervisor
# vi conf.d/shadowsocks.conf
加入如下內容:
[program:shadowsocks]
user=root
command=/home/alex/bin/shadowsocks-local-linux32-1.1.5/shadowsocks-local-linux32-1.1.5 -c /etc/shadowsocks.json
# 如果沒有如下目錄就建一個
directory=/etc/local/supervisor
#
autorestart=true
#
startsecs=10
#
startretries=100
保存,然後執行:
# supervisord
# supervisorctl update
# supervisorctl reload
之後在firefox測試。
5、安裝firefox插件:
Install Foxyproxy
we can get the Foxyproxy plugin in the Firefox Extensions, like the flowing images:
安裝完重啓firefox
Config Proxy Server
Now, we can see the orange fox icon at the toolbar, click and config proxy server.
open the Forxyproxy
點開這個,在select mode選擇第一項。