2022-11-03 14:38:31 +00:00
|
|
|
# Creating a New Network
|
|
|
|
|
2023-08-05 21:53:17 +00:00
|
|
|
This guide is for those who wish to start a new isle network of their
|
2022-11-03 14:38:31 +00:00
|
|
|
own.
|
|
|
|
|
2023-08-05 21:53:17 +00:00
|
|
|
By starting a new isle network, you are becoming the administrator of a
|
2022-11-03 14:38:31 +00:00
|
|
|
network. Be aware that being a network administrator is not necessarily easy,
|
|
|
|
and the users of your network will frequently need your help in order to have a
|
|
|
|
good experience. It can be helpful to have others with which you are
|
|
|
|
administering the network, in order to share responsibilities.
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
Creating a network is done using a single host, which will become the first host
|
|
|
|
in the network.
|
|
|
|
|
|
|
|
The configuration used during network creation will be identical to that used
|
|
|
|
during normal operation of the host, so be prepared to commit to that
|
|
|
|
configuration for a non-trivial amount of time.
|
|
|
|
|
|
|
|
The requirements for this host are:
|
|
|
|
|
|
|
|
* A public static IP, or a dynamic public IP with [dDNS][ddns] set up.
|
|
|
|
|
|
|
|
* There should be UDP port which is accessible publicly over that IP/DNS name.
|
|
|
|
This may involve forwarding the UDP port in your gateway if the host is
|
|
|
|
behind a NAT, and/or allowing traffic on that UDP port in your hosts
|
|
|
|
firewall.
|
|
|
|
|
2024-07-09 09:43:17 +00:00
|
|
|
* At least 3 GB of disk storage space.
|
2022-11-03 14:38:31 +00:00
|
|
|
|
|
|
|
* At least 3 directories should be chosen, each of which will be committing at
|
2024-07-09 09:43:17 +00:00
|
|
|
least 1GB. Ideally these directories should be on different physical disks,
|
|
|
|
but if that's not possible it's ok. See the Next Steps section.
|
2022-11-03 14:38:31 +00:00
|
|
|
|
|
|
|
* None of the resources being used for this network (the UDP port or storage
|
|
|
|
locations) should be being used by other networks.
|
|
|
|
|
2024-07-09 09:43:17 +00:00
|
|
|
## Step 1: Configure the isle Daemon
|
2022-11-03 14:38:31 +00:00
|
|
|
|
2024-07-07 11:37:26 +00:00
|
|
|
Open `/etc/isle/daemon.yml` in a text editor and perform the following changes:
|
2022-11-03 14:38:31 +00:00
|
|
|
|
|
|
|
* Set the `vpn.public_addr` field to the `host:port` your host is accessible on,
|
|
|
|
where `host` is the static public IP/DNS name of your host, and `port` is the
|
|
|
|
UDP port which is publicly accessible.
|
|
|
|
|
|
|
|
* Configure 3 (at least) allocations in the `storage.allocations` section.
|
|
|
|
|
|
|
|
Save and close the file.
|
|
|
|
|
2024-07-09 09:43:17 +00:00
|
|
|
Run the following to restart the daemon with the new configuration:
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo systemctl restart isle
|
|
|
|
```
|
|
|
|
|
2022-11-03 14:38:31 +00:00
|
|
|
## Step 2: Choose Parameters
|
|
|
|
|
|
|
|
There are some key parameters which must be chosen when creating a new network.
|
|
|
|
These will remain constant throughout the lifetime of the network, and so should
|
|
|
|
be chosen with care.
|
|
|
|
|
2022-11-05 11:34:49 +00:00
|
|
|
* Name: A human-readable name for the network. This will only be used for
|
|
|
|
display purposes.
|
|
|
|
|
2022-11-03 14:38:31 +00:00
|
|
|
* Subnet: The IP subnet (or CIDR) will look something like `10.10.0.0/16`, where
|
|
|
|
the `/16` indicates that all IPs from `10.10.0.0` to `10.10.255.255` are
|
|
|
|
included. It's recommended to choose from the [ranges reserved for private
|
|
|
|
networks](https://en.wikipedia.org/wiki/IPv4#Private_networks), but within
|
|
|
|
that selection the choice is up to you.
|
|
|
|
|
2023-08-05 21:53:17 +00:00
|
|
|
* Domain: isle is shipped with a DNS server which will automatically
|
2022-11-03 14:38:31 +00:00
|
|
|
configure itself with all hosts in the network, with each DNS entry taking the
|
|
|
|
form of `hostname.hosts.domain`, where `domain` is the domain chosen in this
|
|
|
|
step. The domain may be a valid public domain or not, it's up to you.
|
|
|
|
|
|
|
|
* Hostname: The hostname of your host, which will be the first host in the
|
|
|
|
network, must be chosen at this point. You can reference the [Adding a Host to
|
|
|
|
the Network](./adding-a-host-to-the-network.md) document for the constraints
|
|
|
|
on the hostname.
|
|
|
|
|
|
|
|
* IP: The IP of your host, which will be the first host in the network. This IP
|
|
|
|
must be within the chosen subnet range.
|
|
|
|
|
2024-07-14 11:33:29 +00:00
|
|
|
## Step 3: Create the Network
|
2022-11-03 14:38:31 +00:00
|
|
|
|
2024-07-14 11:33:29 +00:00
|
|
|
To create the network, run:
|
2022-11-03 14:38:31 +00:00
|
|
|
|
|
|
|
```
|
2024-07-09 09:43:17 +00:00
|
|
|
sudo isle network create \
|
2022-11-05 11:34:49 +00:00
|
|
|
--name <name> \
|
2024-07-12 13:30:21 +00:00
|
|
|
--ip-net <subnet> \
|
2022-11-03 14:38:31 +00:00
|
|
|
--domain <domain> \
|
2024-07-14 11:33:29 +00:00
|
|
|
--hostname <hostname>
|
2022-11-03 14:38:31 +00:00
|
|
|
```
|
|
|
|
|
2024-07-09 09:43:17 +00:00
|
|
|
At this point your host, and your network, are ready to go! To add other hosts
|
|
|
|
to the network you can reference the [Adding a Host to the Network][add-host]
|
|
|
|
document.
|
2022-11-03 14:38:31 +00:00
|
|
|
|
2024-07-09 09:43:17 +00:00
|
|
|
[add-host]: ./adding-a-host-to-the-network.md
|
2022-11-03 14:38:31 +00:00
|
|
|
[ddns]: https://www.cloudflare.com/learning/dns/glossary/dynamic-dns/
|