CentOS6.6 install the ShadowSocks Server
1. view the system
[root@localhost~]
#cat/etc/issue
CentOSrelease
6.6
(Final)
[root@localhost~]
#uname-a
Linuxlocalhost.localdomain
2.6
.
32
-
042stab106
.
6
#1SMPMonApr2014:48:47MSK2015x86_64x86_64x86_64GNU/Linux
2. Install ShadowSocks
#yuminstallpython-setuptools&&easy_installpip
#pipinstallshadowsocks
3. Create the configuration file/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"
}
Note: The official encryption method uses aes-256-cfb by default, it is recommended to use rc4-md5, because RC4 is several times faster than AES.
Description of fields:
Server: server IP Address
Server_port: server port
Local_port: local port
Password: the password used for encryption
Timeout: timeout (seconds)
Method: encryption method, you can select "bf-cfb", "aes-256-cfb", "des-cfb", "rc4", etc.
4. Run the shadowsocks service in the background using the configuration file.
[root@localhost
/
]
#ssserver-c/etc/shadowsocks.json-dstart
NOTE: If no configuration file exists, run the following command in the background:
[Root @ localhost/] # ssserver-p 443-k MyPass-m rc4-md5-d start
5. Stop the service
[root@localhost
/
]
#ssserver-c/etc/shadowsocks.json-dstop
Refer:
Https://github.com/shadowsocks/shadowsocks/wiki/shadowsocks-usage instructions
Http://wuchong.me/blog/2015/02/02/shadowsocks-install-and-optimize/