Exit Node Setup Guide

A comprehensive guide to setting up your exit node

System Requirements

Below are the system requirements and the minimum specifications of dedicated server or VPS

S. No.

Spec

Note

1

CPU Cores

2 or more

2

RAM

4 GB

3

Storage

40 GB SSD

4

Higher Bandwidth

At least 1 GB preferable

Step 1: Install BelNet on your VPS

Copy and paste the following link into the terminal

This will download the Belnet binaries from cloud

wget https://github.com/Beldex-Coin/belnet/releases/download/v0.9.8/belnet-linux-x86_64-v0.9.8.zip

Unzip the file using the following command

unzip belnet-linux-x86_64-v0.9.8.zip

Execution

  • install vim editor using the following command

sudo apt install vim
  • Install tmux in your system

  • Create a tmux session

  • Run the Belnet binary

  • Download the bootstrap file using belnet-bootstrap

Step 2: Configure Belnet.ini using vim

  • Go to Belnet config directory

  • Edit the belnet.ini file by entering the following command

Add the following lines under the [router] section or uncomment the following by removing the #.

This will configure the number of connections that an exit node can maintain.

Add the following lines under the [network] section or uncomment the following by removing the #.

Step 3 Enable IP Forwarding via ''sysctl''

Open the following folder

Add the following lines. This will allow IP forwarding for both IPV4 and IPV6

Press ESC + :wq to save and exit to /etc/sysctl.conf

Enable the changes using the following command

Step 4: Setup firewall

Please check firewall status using the following command

Default result should return the following

-P INPUT ACCEPT

-P FORWARD ACCEPT

-P OUTPUT ACCEPT

Add firewall rules for IPv4

Copy and paste the following commands

Add route for Belnet interface's IPv6

It is beneficial to block ports for Simple Mail Transfer Protocol (SMTP), SMTP over Secure Sockets Layer (SSL), SMTP over Transport Layer Security (TLS), Internet Relay Chat (IRC) and IRC over SSL. This is non-mandatory but may protect your exit node from Distributed Denial Of Service (DDOS) attacks. For more details, kindly check with your VPS host.

Now it is completed

Then, enter the following commands,

The above commands unroll to:

Make firewall settings persistent after rebooting the system by using the command given below

Select Yes on the pop-up window to save current rules to install both for IPv4 and IPv6.

Run Belnet

Step 5: Fetch your permanent .bdx address

Enter the following command to fetch your address

To check if your exit node is publicly hosted, enter the following command

Step 6: If you face any errors, you can troubleshoot your DNS using the following command

Open the resolv.conf file

Please add the following nameserver in the file

Save and exit the file using the command ESC + :wq

Last updated

Was this helpful?