Files

42 lines
2.9 KiB
Markdown
Raw Permalink Normal View History

# Installation
Two ways to install, both with scripts that check the host, generate the secrets, start everything and print the first administrator login. Pick one; the steps **after** the install are the same: [First steps](First_Steps.md).
## Choose a method
| | [Containers](Containers/README.md) | [System services](System_Services/README.md) |
|---|---|---|
| Choose it when | the host has Docker, or you want the simplest operation | no containers wanted; Alpine, Debian or Ubuntu host |
| Needs on the host | Docker Engine with the compose plugin, `/dev/net/tun` | root, Internet access, Alpine 3.23 / Debian 12 / Ubuntu 24.04 |
| Install command | `deploy/docker/install.sh --variant a\|b` | `deploy/native/install.sh --prefix DIR` |
| Variants | **A**: everything in one container; **B**: one container per component | one per OS (the script detects it) |
| Web UI address | `http://<host>` (port 80, change with `--http-port`); put TLS in front | `https://<host>:8088` (self-signed certificate, change with `--https-port`) |
| VPN port | `1194/udp` (`--vpn-port`) | `1194/udp` by default, set in the UI |
| Free space | about 2 GB | about 1 GB |
| Update, backup, rollback | `update.sh`, `backup.sh`, `restore.sh` in `deploy/docker/` | `update.sh`, `backup.sh`, `restore.sh` in `deploy/native/` |
| Details | [Containers](Containers/README.md) | [System services](System_Services/README.md) |
Not sure? If Docker is already on the host, use **Containers, variant A**; otherwise **System services**.
Use **one method per host**: both use the VPN port `1194/udp` by default. For containers, only one variant can run at a time.
## The same in both methods
- Run the script as root (or, for containers, as a member of the `docker` group) from a clone of this repository.
- The script prints the URL and the **administrator password once**; it is stored nowhere else. No default account exists.
- Containers: running `install.sh` again is safe, it keeps `.env` and the data. System services: after a **failed** install, run it again to resume; a finished installation is changed only with `update.sh`.
- Updates always take a verified backup first and roll back automatically if something fails.
- The scripts do **not** open firewall ports and do not harden SSH. Open the UI port and the VPN port yourself; NAT for the VPN clients: [Firewall](System_Services/Firewall.md) (containers set their own NAT rules).
## After the install
[First steps](First_Steps.md): sign in, secure the account, initialize the PKI, configure and start the VPN server, create the first client profile.
## Other pages
| Topic | Page |
|---|---|
| Configuration variables | [General: Configuration](../General/Configuration.md) |
| Nginx and TLS for the UI | [Nginx configuration](System_Services/Nginx_Configuration.md) |
| Database schema changes on update | [Database migrations](../General/Database_Migrations.md) |
| Security model | [Security architecture](../General/Security_Architecture.md) |