Roost Stun Server Setup

Pre-requisite -

  • RoostControlPlane should already be configured.

  • Ubuntu 64-bit(x86) instance with inbound TCP traffic allowed on 2502 port.

  • Admin/User should have sudo privileges.

Steps to start Stun Server

curl -q -s https://remote-roostprod.s3-us-west-1.amazonaws.com/roost-enterprise.sh -o $HOME/roost-enterprise.sh chmod +x $HOME/roost-enterprise.sh $HOME/roost-enterprise.sh -i stun -e <roostControlPlaneIP:Port>

example:$HOME/roost-enterprise.sh -i stun -e roost.io:443

The below steps are for Internal Team Only

Steps to install Docker

sudo apt update -y sudo apt install -y apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" sudo apt update -y apt-cache policy docker-ce sudo apt install -y docker-ce sudo systemctl status docker

 

Steps to create Roost Stun Server Image

cd ~/go/src/github.com/ZB-io/stun-server/server/cmd make cd ../../docker make docker save -o stun_server.tar zbio/roost-stun-svr:v1 scp -i ~/zb-stun.pem ./stun_server.tar ubuntu@*.*.*.*:~/

 

Steps to load Roost Stun Server Image

Inside the VM


Steps to start Roost Stun Server

example:

sudo docker run -d -p 2502:2502 -e ROOST_IO_SVR="44.233.62.221:443" --name roost-stun-svr zbio/roost-stun-svr:v3

Â