Update BOOTSTRAP-SETUP.md

This commit is contained in:
TC 2023-09-18 14:10:19 +00:00
parent 9f92d486b8
commit 1e27df2aee

View File

@ -1,76 +1,66 @@
# Starting a Veilid Bootstrap Server # Starting a Veilid Bootstrap Server
## Instance Recommended Setup ## Instance Recommended Setup
CPU: Single CPU: Single
RAM: 1GB RAM: 1GB
Storage: 25GB Storage: 25GB
IP: Static v4 & v6 IP: Static v4 & v6
Firewall: 5150/TCP/UDP inbound allow all Firewall: 5150/TCP/UDP inbound allow all
## Install Veilid ## Install Veilid
**As root** Follow instructions in [INSTALL.md](./INSTALL.md)
```shell ## Configure Veilid
wget -O- https://packages.veilid.net/keys/veilid-packages-key.public | gpg --dearmor -o /usr/share/keyrings/veilid-packages-keyring.gpg **As root**
```
```shell ### Stop the Veilid service
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/veilid-packages-keyring.gpg] https://packages.veilid.net/repos stable main" > /etc/apt/sources.list.d/veilid.list ```shell
``` systemctl stop veilid-server.service
```shell ```
apt update && apt install veilid-server veilid-cli
``` ### Setup the config
In _/etc/veilid-server/veilid-server.conf`_ ensure _bootstrap: ['bootstrap.<your.domain>']_ in the _routing_table:_ section
## Configure Veilid
**As root** **Switch to veilid user**
```shell
### Stop the Veilid service sudo -u veilid /bin/bash
```shell ```
systemctl stop veilid-server.service
``` ### Generate a new keypair
Copy the output to secure storage.
### Setup the config ```shell
In _/etc/veilid-server/veilid-server.conf`_ ensure _bootstrap: ['bootstrap.veilid.net']_ in the _routing_table:_ section veilid-server --generate-key-pair
```
**Switch to veilid user**
```shell ### Create new node ID and flush existing route table
sudo -u veilid /bin/bash Include the brackets [] when pasting the keys. Use the public key in the command. Secret key will be request interacitvly and will not echo when pasted.
``` ```shell
veilid-server --set-node-id [PUBLIC_KEY] --delete-table-store
### Generate a new keypair ```
Copy the output to secure storage. ### Generate the DNS TXT record
```shell Copy the output to secure storage.
veilid-server --generate-key-pair ```shell
``` veilid-server --dump-txt-record
```
### Create new node ID and flush existing route table
Include the brackets [] when pasting the keys. Use the public key in the command. Secret key will be request interacitvly and will not echo when pasted. **Switch back to root**
```shell ### Start the Veilid service
veilid-server --set-node-id [PUBLIC_KEY] --delete-table-store ```shell
``` systemctl start veilid-server.service
### Generate the DNS TXT record ```
Copy the output to secure storage.
```shell _REPEAT FOR EACH BOOTSTRAP SERVER_
veilid-server --dump-txt-record
``` ## Enter DNS Records
Create the following DNS Records for your domain:
**Switch back to root**
### Start the Veilid service (This example assumes two bootstrap serves are being created)
```shell
systemctl start veilid-server.service | Record | Value | Record Type |
``` |-----------|-----------------------------|-------------|
|bootstrap | 1,2 | TXT |
_REPEAT FOR EACH BOOTSTRAP SERVER_ |1.bootstrap| IPv4 | A |
|1.bootstrap| IPv6 | AAAA |
## Enter DNS Records |1.bootstrap| output of --dump-txt-record | TXT |
Create the following DNS Records for your domain: |2.bootstrap| IPv4 | A |
|2.bootstrap| IPv6 | AAAA |
(This example assumes two bootstrap serves are being created) |2.bootstrap| output of --dump-txt-record | TXT |
| Record | Value | Record Type |
|-----------|-----------------------------|-------------|
|bootstrap | 1,2 | TXT |
|1.bootstrap| IPv4 | A |
|1.bootstrap| IPv6 | AAAA |
|1.bootstrap| output of --dump-txt-record | TXT |
|2.bootstrap| IPv4 | A |
|2.bootstrap| IPv6 | AAAA |
|2.bootstrap| output of --dump-txt-record | TXT |