Akash’ sentry node
For more protection, you definitely need a sentry node. I wrote a small guide with full instructions on how to install sentry and connect your node to it.
To do this, we will need a new VPS server. next, I will list the commands that I used to install. Let’s install sentry node for our validator.
Make standard updates and install go:
sudo apt-get update
sudo apt-get upgrade -y
sudo apt install unzip
sudo apt install make
sudo apt install git
sudo apt-get install build-essential
curl -O https://dl.google.com/go/go1.14.9.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.14.9.linux-amd64.tar.gz
sudo chown -R root:root ./go
sudo mv go /usr/local
sudo nano ~/.profile
In the file that opens, insert the following lines at the bottom:
export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
Save changes & exit.
source ~/.profile
Now let’s install akash suite
curl https://raw.githubusercontent.com/ovrclk/akash/v0.8.2/godownloader.shcd $GOPATH/src/github.com/ovrclk/akash
MAINNET=true git checkout v0.8.2
make deps-install
make install
akashd init <your_sentrie's_moniker> --chain-id akashnet-1
From the list that appears copy and save the “node_id”, we’re gonna need it.
apt install screen
screen
Download new genesis file:
wget https://raw.githubusercontent.com/ovrclk/net/master/akashnet-1/genesis.jsonmv genesis.json $HOME/.akashd/config
I will use WINscp tool to open & change config.toml file of my sentry & validator.
First of all go here: https://github.com/ovrclk/net/tree/master/akashnet-1
You’ll find theree seeds & persistent peers.
Now open your config.toml file (It is located at: $HOME/.akashd/config/config.toml) and make the following changes:
So, as for me it looks like this:
You also need to configure the config.toml file for the validator node, as follows:
Now it remains to configure the firewall.
For sentry node:
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 26656
sudo ufw allow 26657
sudo ufw enable
For validator node:
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow from <SENTRY'S IP ADDRESS> to any port 26656
sudo ufw enable
Now wait while your sentry node will sync after that restart both of your nodes. If you see running logs, then You did everything right! Congratulations!
If the information was useful to you, you can thank me by delegating to my validator: akashvaloper16wy6yxemznjln5a36qpu2zff4mkt8m9z4dnyuh