How to build a shadowsocks server in Centos
Install shadowsocks:
[root@localhost ~]# yum install -y epel-release[root@localhost ~]# yum install python-pip[root@localhost ~]# pip install shadowsocks
Create the shadowsocks. json file in the/etc directory and put the following content in it:
[Root @ localhost ~] # Vi/etc/shadowsocks. json {"server": "0.0.0.0", # server listening address. Enter 0.0.0.0 "server_port": 8388, # server port "local_address": "0.0.0.0 ", # proxy listening address "local_port": 1080, # proxy listening port "password": "mypassword", # shadowsocks connection password "timeout": 300, # timeout time, in seconds "method": "aes-256-cfb", # encryption mode. The default is: "aes-256-cfb" "fast_open": false, # do not understand, do not modify can "workers": 1 # do not understand, do not modify can}
Start the shadowsocks Server:
[Root @ localhost ~] # Ssserver-c/etc/shadowsocks. json-d start [root @ localhost ~] # Ssserver-c/etc/shadowsocks. json-d stop [root @ localhost ~] # Ssserver-c/etc/shadowsocks. json-d restart
You can use shadowsocks.
Shadowsocks multi-port configuration:
{"server":"0.0.0.0","server_port":8388,"local_address": "127.0.0.1","local_port":1080,"port_password":{ "8":"123455", "88":"123456", "888":"123456", "8888":"123456"},"timeout":300,"method":"aes-256-cfb","fast_open": false,"workers": 1}