CentOS6.6安裝ShadowSocks服務端
1、查看系統
[root@localhost~]#cat/etc/issueCentOSrelease6.6(Final)[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.32-042stab106.6#1SMPMonApr2014:48:47MSK2015x86_64x86_64x86_64GNU/Linux
2、安裝ShadowSocks
#yuminstallpython-setuptools&&easy_installpip#pipinstallshadowsocks
3、建立設定檔/etc/shadowsocks.json
[root@localhost/]#touch/etc/shadowsocks.json[root@localhost/]#vi/etc/shadowsocks.json{"server":"138.128.208.158","server_port":443,"local_address":"127.0.0.1","local_port":1080,"password":"MyPass","timeout":600,"method":"rc4-md5"}
備忘:加密方式官方預設使用aes-256-cfb,推薦使用rc4-md5,因為 RC4比AES速度快好幾倍。
各欄位說明:
server:伺服器IP
server_port:伺服器連接埠
local_port:本地端連接埠
password:用來加密的密碼
timeout:逾時時間(秒)
method:加密方法,可選擇 “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4″等
4、使用設定檔在後台運行shadowsocks服務
[root@localhost/]#ssserver-c/etc/shadowsocks.json-dstart
備忘:若無設定檔,在後台可以使用一下命令運行:
[root@localhost /]# ssserver -p 443 -k MyPass -m rc4-md5 -d start
5、停止服務
[root@localhost/]#ssserver-c/etc/shadowsocks.json-dstop
參考:
https://github.com/shadowsocks/shadowsocks/wiki/Shadowsocks-使用說明
http://wuchong.me/blog/2015/02/02/shadowsocks-install-and-optimize/