Skip to content

Sentinel dVPN Node Hosting on Tendermint

Currently, the Sentinel dVPN Node Hosting is available on the Sentinel dVPN Testnet on the Sentinel Tendermint Testnet.

This is a complete guide to enable a configure use the Sentinel dVPN OpenVPN Node on Linux with docker and share unused bandwidth to the Sentinel Network.

Below are the protocols for which node hosting is currently supported.

  1. OpenVPN
  2. WireGuard (coming soon)
  3. SOCKS5 (coming soon)

Below is the minimum node/instance configuration required to run a node successfully:

  1. Cores - 2 or more
  2. RAM - Works with 2GB, but 4GB is recommended
  3. Storage - 20GB or above (SSD)

1) OpenVPN - dVPN Node Hosting

  1. Navigate to the User's home directory

    cd $HOME

  2. Create a folder for storing config and key files

    mkdir -p $HOME/.sentinel

  3. Get the sample config file:

    curl https://raw.githubusercontent.com/sentinel-official/sentinel/master/vpn-node-cosmos/config -o $HOME/.sentinel/config

  4. Navigate to .sentinel folder

    cd $HOME/.sentinel/

  5. Open the config file by running the below command

    gedit config

  6. Configure the config file and save it.

Edit only the below fields:

  • api_port [For Ex: 5000]
  • description [Used when users search for nodes in upcoming versions]
  • openvpn->enc_method [Indicates the encoding method utilized to encrypt data]
  • openvpn->port [For Ex : 1184]
  • openvpn->price_per_gb [For Ex : 56, which means, 56 TSENT per GB]

Note: Do NOT use these ports 1195, 1317 and 27017

If you already have Sentinel **keys** folder, kindly copy to the directory $HOME/.sentinel.

For example, in the below image we have edited the config file by adding ```description``` and changing ```api_port```, ```openvpn->port``` and ```openvpn->price_per_gb```.

![](https://i.imgur.com/39CHrLC.png)
  1. Pull and run the official Sentinel Network docker image from Docker Hub

    sudo docker run -it --privileged --mount type=bind,source=$HOME/.sentinel,target=/root/.sentinel -p {API_PORT}:{API_PORT} -p {OPENVPN_PORT}:{OPENVPN_PORT}/udp sentinelofficial/stt1-dvpn-openvpn

    Note: Replace the API_PORT in the above command with API port number in the config file and replace the OPENVPN_PORT with the openVPN port number in the config file.

    For example, if your API port is 5000 and OpenVPN port is 1184 then the command will be:

    sudo docker run -it --privileged --mount type=bind,source=$HOME/.sentinel,target=/root/.sentinel -p 5000:5000 -p 1184:1184/udp sentinelofficial/stt1-dvpn-openvpn

  2. After the image is pulled, wait for few seconds. The application will ask for account name and password. Input them & these will be used for making the session transactions and payments. Don't forget them.

  3. After you enter the account name and password, the script creates keys folder in the .sentinel directory and the dVPN node starts running.

  4. To stop the node and the container, press "ctrl + C" or run the below command

    sudo docker stop {Container ID}

  5. To start the node again, first you need to know the container ID. To know the container ID, run the below command.

    sudo docker ps -a

  6. Copy the container ID and replace the CONTAINER ID in the command below with the copied ID. Press enter to start the node. And enter the same account name and password that you created at first place.

    sudo docker start -i {CONTAINER ID}

Update the dVPN OpenVPN Node on the Tendermint testnet

Below are instructions that are needed to update the dVPN Node.

  1. Stop the running docker container

    sudo docker stop $(sudo docker ps -aq -f ancestor=sentinelofficial/stt1-dvpn-openvpn)

  2. Remove the older version of docker container

    sudo docker rm -f $(sudo docker ps -aq -f ancestor=sentinelofficial/stt1-dvpn-openvpn)

  3. Remove the older version of docker image

    sudo docker rmi -f $(sudo docker images -aq -f reference=sentinelofficial/stt1-dvpn-openvpn)

  4. After these commands, follow from step 7 to the step 9 of OpenVPN node setup on Tendermint.

Helpful docker commands to interact with the Sentinel dVPN Node

  • list a running Sentinel dVPN Node:

    sudo docker ps

  • list both, running and stopped Sentinel dVPN Nodes:

    sudo docker ps -a

  • stop a particular Sentinel Node:

    • run sudo docker ps and copy the Container ID.
    • run sudo docker stop ContainerID

    ###### Note: stopping a dVPN Node does not remove the container

  • remove a particular Sentinel dVPN Node: sudo docker rm ContainerID_OR_ContainerName

    Note: The Sentinel dVPN Node must be stopped to be removed. Alternatively, you can use the -f flag to forcefully remove the Node if the node cannot be stopped.
  • remove node using the force option -f:

    sudo docker rm -f ContainerID_OR_ContainerName

  • remove all stopped Sentinel dVPN Nodes:

    sudo docker rm $(sudo docker ps -a -q)

  • stop all the running dVPN Nodes and remove them:

    sudo docker stop $(sudo docker ps -a -q) && sudo docker rm $(sudo docker ps -a -q)