less than 1 minute read

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

  1. install Shadowsocks

     pip install shadowsocks
    
  2. create a config file

     vim /etc/shadowsocks.multiple.json
    

    with below content

     {
         "server":"0.0.0.0",
         "port_password":{
             "8384":"123456",
             "8385":"456788"
         }
     }
    
  3. create a startup script

     vim /home/sya/ssserver.sh
    

    with below content

     sudo ssserver -c /etc/shadowsocks.multiple.json -d start
    
  4. start Shadowsocks server

     sh /home/sya/ssserver.sh
    

These steps worked on CentOS. They didn’t work on Ubuntu until changing a Python config.