See detailed tutorial at https://mongoose.ws/tutorials/tcp/socks5-server/