How to install Shadowsocks server side
In certain scenarios, I need a VPN to access Chinese websites from oversea, or the opposite. Installing Shadowsocks on a cloud server (e.g. AWS or Aliyun) provides a viable solution to meet this use case.
Prerequisite
- pip
Steps
-
install Shadowsocks
pip install shadowsocks
-
create a config file
vim /etc/shadowsocks.multiple.json
with below content
{ "server":"0.0.0.0", "port_password":{ "8384":"123456", "8385":"456788" } }
-
create a startup script
vim /home/sya/ssserver.sh
with below content
sudo ssserver -c /etc/shadowsocks.multiple.json -d start
-
start Shadowsocks server
sh /home/sya/ssserver.sh
These steps worked on CentOS. They didn’t work on Ubuntu until changing a Python config.