How to build VPN using Shadowsocks

  1. Purchase a VPS in CentOS.

  2. SSH to your VPS.

  3. Download and deploy Shadowsocks into your VPS.

    wget --no-check-certificate
    chmod +x
    ./ 2>&1 | tee shadowsocksR.log
  4. Follow the promotions and set basic informaiton.

    If meet errors, install C compilor:
    yum -y install gcc automake autoconf libtool make
    yum -y install gcc-c++
  5. some commands

    start:/etc/init.d/shadowsocks startst
    stop:/etc/init.d/shadowsocks stop
    restart:/etc/init.d/shadowsocks restart
    status:/etc/init.d/shadowsocks status
    configuration path:/etc/shadowsocks.json 
    log file path:/var/log/shadowsocks.log
    install path:/usr/local/shadowsocks/shadowsoks
    uninstall: ./ uninstall
  6. install python for run

    yum -y install python36
    cd /usr/bin
    ln -s python3 python
  7. add information to your Shaowsocks client
    IPHONE:FirstWingy、potatso lite

  8. If connection failed, please check firewall port

    firewall-cmd --list-ports
    firewall-cmd --zone=public --add-port=PORT_NUMBER/tcp --permanent

Leave a Reply