Durante la procedura, quando viene richiesto di compilare alcuni campi come il paese o l'e-mail, è possibile lasciarli vuoti.
File di configurazione
Inizializza la configurazione dell'applicazione (il comando qua sotto crea e popola il file config.toml)
sudo docker run --rm \
--volume ${HOME}/.sentinelnode:/root/.sentinelnode \
sentinel-dvpn-node process config init
Apri il file di configurazione config.toml
sudo nano ${HOME}/.sentinelnode/config.toml
Modifica i campi necessari prendendo i corretti parametri a seconda dell'hosting che hai scelto.
Se hai deciso di ospitare il nodo a casa o in un luogo privato, utilizza le informazioni contenute in Residential IPs qua sotto. Al contrario, se hai deciso di hostare il nodo su un VPS o Akash, utilizza le informazioni contenute in Datacenter IPs.
Config.toml per Residential IPs
[chain]
# Gas limit to set per transaction
gas = 200000
# Gas adjustment factor
gas_adjustment = 1.05
# Gas prices to determine the transaction fee
gas_prices = "0.1udvpn"
# The network chain ID
id = "sentinelhub-2"
# Comma separated Tendermint RPC addresses for the chain
rpc_addresses = "https://rpc.sentinel.co:443,https://rpc.sentinel.quokkastake.io:443,https://rpc.trinityvalidator.com:443"
# Find below some alternative ones
# https://rpc.mathnodes.com:443
# https://rpc-sentinel.whispernode.com:443
# https://rpc.sentinel.chaintools.tech:443
# https://sentinel-rpc.publicnode.com:443
# Timeout seconds for querying the data from the RPC server
rpc_query_timeout = 10
# Timeout seconds for broadcasting the transaction through RPC server
rpc_tx_timeout = 30
# Calculate the transaction fee by simulating it
simulate_and_execute = true
[handshake]
# Enable Handshake DNS resolver (se usi v2ray imposta enable = false)
enable = true
# Number of peers
peers = 8
[keyring]
# Underlying storage mechanism for keys
backend = "file"
# To run the node with autorestart function, write the word "test". Alternatively, you can use the word "file"
# Name of the key with which to sign
from = "operator"
# replace "operator" with your preferred name, but ensure that the value is NOT left empty
[node]
# Time interval between each set_sessions operation
interval_set_sessions = "10s"
# Time interval between each update_sessions transaction
interval_update_sessions = "1h55m0s"
# Time interval between each set_status transaction
interval_update_status = "55m0s"
# IPv4 address to replace the public IPv4 address with
ipv4_address = ""
# API listen-address (porta TCP)
listen_on = "0.0.0.0:<tcp_port>" #for example 0.0.0.0:7777
# this is the TCP port. You can change and ensure to write it down as needed for later use
# Name of the node (sostituisci "your_node_name" con il nome che desiseri)
moniker = "your_node_name"
# Prices for one gigabyte of bandwidth provided
gigabyte_prices = "52573ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,9204ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1180852ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,122740ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,15342624udvpn"
# Prices per hour
hourly_prices = "18480ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,770ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1871892ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,18897ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,10000000udvpn"
# Public URL of the node
remote_url = "https://<ip_node>:<tcp_port>"
# replace ip_node with your host ip and tcp_port with 7777
# example: https://123.456.78.90:7777
# Type of node (puoi scegliere tra wireguard e v2ray)
type = "wireguard"
# Limit max number of concurrent peers
[qos]
max_peers = 250
Config.toml per Datacenter IPs
[chain]
# Gas limit to set per transaction
gas = 200000
# Gas adjustment factor
gas_adjustment = 1.05
# Gas prices to determine the transaction fee
gas_prices = "0.1udvpn"
# The network chain ID
id = "sentinelhub-2"
# Comma separated Tendermint RPC addresses for the chain
rpc_addresses = "https://rpc.sentinel.co:443,https://rpc.sentinel.quokkastake.io:443,https://rpc.trinityvalidator.com:443"
# Find below some alternative ones
# https://rpc.mathnodes.com:443
# https://rpc-sentinel.whispernode.com:443
# https://rpc.sentinel.chaintools.tech:443
# https://sentinel-rpc.publicnode.com:443
# Timeout seconds for querying the data from the RPC server
rpc_query_timeout = 10
# Timeout seconds for broadcasting the transaction through RPC server
rpc_tx_timeout = 30
# Calculate the transaction fee by simulating it
simulate_and_execute = true
[handshake]
# Enable Handshake DNS resolver (se usi v2ray imposta enable = false)
enable = true
# Number of peers
peers = 8
[keyring]
# Underlying storage mechanism for keys
backend = "file"
# To run the node with autorestart function, write the word "test". Alternatively, you can use the word "file"
# Name of the key with which to sign
from = "operator"
# replace "operator" with your preferred name, but ensure that the value is NOT left empty
[node]
# Time interval between each set_sessions operation
interval_set_sessions = "10s"
# Time interval between each update_sessions transaction
interval_update_sessions = "1h55m0s"
# Time interval between each set_status transaction
interval_update_status = "55m0s"
# IPv4 address to replace the public IPv4 address with
ipv4_address = ""
# API listen-address (porta TCP)
listen_on = "0.0.0.0:<tcp_port>" #for example 0.0.0.0:7777
# this is the TCP port. You can change and ensure to write it down as needed for later use
# Name of the node (sostituisci "your_node_name" con il nome che desiseri)
moniker = "your_node_name"
# Prices for one gigabyte of bandwidth provided
gigabyte_prices = "52573ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,9204ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1180852ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,122740ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,15342624udvpn"
# Prices per hour
hourly_prices = "18480ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,770ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1871892ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,18897ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,4160000udvpn"
# Public URL of the node
remote_url = "https://<ip_node>:<tcp_port>"
# replace ip_node with your host ip and tcp_port with 7777
# example: https://123.456.78.90:7777
# Type of node (puoi scegliere tra wireguard e v2ray)
type = "wireguard"
# Limit max number of concurrent peers
[qos]
max_peers = 250
I campi gigabyte_prices e hourly_pricesdevono comprendere l'intera stringa, comprese le monete IBC separate da virgole. La semplice inclusione del prezzo udvpn non è sufficiente.
Di seguito è riportato l'elenco delle monete IBC supportate da Sentinel con le relative variabili di denominazioni:
ATOM
ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477
OSMOSIS
ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518
SECRET
ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8
DECENTR
ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783
Tipo di Nodo
A seconda del tipo di nodo specificato nel file config.toml, utilizzare le impostazioni di configurazione corrispondenti.
WireGuard
Inizializza la configurazione di WireGuard
sudo docker run --rm \
--volume ${HOME}/.sentinelnode:/root/.sentinelnode \
sentinel-dvpn-node process wireguard config init
Apri il file wireguard.toml
sudo nano ${HOME}/.sentinelnode/wireguard.toml
Prendi nota della porta WireGuard
Wireguard.toml
# Name of the network interface
interface = "wg0"
# Port number to accept the incoming connections
listen_port = <wireguard_udp_port> #for example listen_port = 8888
# this is the WireGuard UDP port, you can change it and write it down as you need it later
# Server private key
private_key = "TwkdSO6cax3Sbo06mvmMyd2X452usVeVDTK/hdkfOmI="
V2Ray
Inizializza la configurazione di V2Ray
sudo docker run --rm \
--volume ${HOME}/.sentinelnode:/root/.sentinelnode \
sentinel-dvpn-node process v2ray config init
Apri il file v2ray.toml
sudo nano ${HOME}/.sentinelnode/v2ray.toml
Prendi nota della porta V2Ray
v2ray.toml
[vmess]
# Port number to accept the incoming connections
listen_port = <v2ray_tcp_port> #for example 9999
# this is the V2Ray TCP port, you can change it and write it down as you need it later
# Name of the transport protocol
transport = "grpc"
Aggiungi un mnemonic
Aggiungi una chiave per l'account (quella nel file config.toml)
docker run --rm \
--interactive \
--tty \
--volume ${HOME}/.sentinelnode:/root/.sentinelnode \
sentinel-dvpn-node process keys add
se si dispone già di un mnemonico e si vuole semplicemente importante un wallete, digita il seguente comando
docker run --rm \
--interactive \
--tty \
--volume ${HOME}/.sentinelnode:/root/.sentinelnode \
sentinel-dvpn-node process keys add --recover
Ti sarà richiesto di selezionare una passphrase
Verranno forniti un indirizzo dell'operatore (sent1), un indirizzo del nodo (sentnode1) e un mnemonic da annotare e conservare in un luogo sicuro.
Abilita la porta TCP del Firewall (controlla il file config.toml)
sudo ufw allow <tcp_port>/tcp
Wireguard Abilita la porta UDP del Firewall (controlla il file wireguard.toml)
sudo ufw allow <udp_port>/udp
V2RAY Abilita la porta TCP del Firewall (controlla il file v2ray.toml)
sudo ufw allow <tcp_port>/tcp
Abilita il Port Forwarding (per nodi residenziali)
Se il nodo è ospitato da casa, assicurarsi di attivare il port forwarding sul router per consentire l'accesso esterno. A tale scopo, accedete alle impostazioni del router e navigate fino ai servizi WAN, quindi aggiungete le seguenti due voci della tabella di inoltro delle porte IPv4:
Name ProtocolWAN Port LAN port Destination IP
TCP_PORT TCP <tcp_port> <tcp_port> your_local_ip
WIREGUARD_PORT UDP <wireguard_udp_port> <wireguard_udp_port> your_local_ip
V2RAY_PORT TCP <v2ray_tcp_port> <v2ray_tcp_port> your_local_ip