Install the ShadowSocks server on CentOS 6.6
Install the ShadowSocks server on CentOS 6.6
1. view the system
[Root @ localhost ~] # Cat/etc/issue
CentOS release 6.6 (Final)
[Root @ localhost ~] # Uname-
Linux localhost. localdomain 2.6.32-042stab106. 6 #1 SMP Mon Apr 20 14:48:47 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
2. Install ShadowSocks
# Yum install python-setuptools & easy_install pip
# Pip install shadowsocks
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-d start
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-d stop