Install Shadowsocks proxy on Debian or Ubuntu

Server:

  • Install:
    sudo apt install shadowsocks-libev
  • Restore config from backup if you have one:
    sudo cp -a backup/etc/shadowsocks-libev /etc
    or just:
    sudo tee /etc/shadowsocks-libev/config.json << EOF
    {
        "server":"0.0.0.0",
        "server_port":8388,
        "local_port":1080,
        "password":"<password>",
        "timeout":60,
        "method":"chacha20-ietf-poly1305"
    }
    EOF
    
  • Disable server …

Create persistent local SSH server forwarding with autossh

UPD: Just use ZeroTier — open source, cross-platform, secure and easy to use virtual LAN. Add your remote computers to a virtual network and connect to them as if they are in the same LAN. Connections are end-to-end encrypted and P2P, so you always get the best speed and latency possible …