[工具]-Shadowsocks

什麼是Shadowsocks?

一個可穿透防火牆的快速代理。

來自Shadowsocks 使用說明

安裝

服務端安裝

在其github上首頁上 Shadowsocks , 可以看到有多個語言的實現,最初的應該是Python版本的,我剛開始使用的時也是Python版本,但是其實安裝過程中還是會有些坑,比如Python版本問題,依賴問題,後來該用了Go版本,只有一個可執行文件和一個配置文件,十分簡潔,所以這裏介紹的也是Go版本服務端安裝。

說明

1、當然首先你得有臺 海外的服務器
2、GoLang環境

go version #檢查go版本
sudo yum install golang #centos安裝go

Linux各系列安裝GO語言環境

3、從shadowsocks github地址-Go-服務端 - release-notes下載對應版本包
以cent os爲例
(1)

#進入指定目錄,獲取包
wget https://github.com/shadowsocks/shadowsocks-go/releases/download/1.1.5/shadowsocks-server-linux64-1.1.5.gz
#解壓得到GO可執行程序
gzip -d shadowsocks-server-linux64-1.1.5.gz
#增加執行權限
chmod +x shadowsocks-server-linux64-1.1.5

(2)新建配置文件 config.json,內容如下

{
    "server":"0.0.0.0",
    "server_port":10080,
    "local_port":1080,
    "password":"vpn1123581321",
    "method": "aes-256-cfb",
    "timeout":600
}

server : your server ip or hostname
server_port : server port
local_port : local socks5 proxy port
method : encryption method, null by default (table), the following methods are supported:
aes-128-cfb, aes-192-cfb, aes-256-cfb, bf-cfb, cast5-cfb, des-cfb, rc4-md5, chacha20, salsa20, rc4, table
password : a password used to encrypt transfer
timeout : server option, in seconds

from Shadowsocks GoLang ReadMe

(3)啓動 shadowsock 服務

##進入對應目錄, 指定配置文件位置
./shadowsocks-server-linux64-1.1.5 -c ./config.json
##後臺運行,log爲指定日誌文件位置
shadowsocks-server-linux64-1.1.5 -c ./config.json > log &
##命令幫助
./shadowsocks-server-linux64-1.1.5 -help 

至此,服務端代理已啓動,對外開啓相關端口。

客戶端安裝

windows客戶端下載頁面
windows客戶端下載地址

Mac Osx客戶端下載頁面

客戶端的使用比較簡單,設置相應的 ip, 端口,加密方式,開啓即可使用

尋求幫助

建議到Shadowsocks Github主頁,查看對應專題的Wiki或者ReadMe.md.

GO版本服務端 readme

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章