2. The setup wizard
Open the address the installer printed (for example https://203.0.113.10:8443). A fresh installation sends you
to the wizard.
(After the wizard you sign in on this page, with the password you chose and a code from your authenticator app.)

Steps
Setup token. Paste the token the installer printed.
Administrator. Create the first administrator: name, e-mail address and a strong password. At your first sign-in you are offered two-factor authentication (a code from an authenticator app on your phone). It is strongly recommended, and it is your choice: if you decline, you are told why we advise against it, and you can turn it on later in Security. If you set it up, save the recovery codes it shows.
Check. The wizard checks the server: operating system, OpenVPN and easy-rsa installed, free disk space, network interface, forwarding. Anything that is not fine comes with a hint. Fix it and press Check again.
VPN. A few questions decide almost everything:
- Which VPN do you want to run? OpenVPN, WireGuard or both. OpenVPN suits laptops and networks that block UDP, WireGuard suits phones and tablets (a QR code sets a device up). See chapter 9.
- What is the VPN for? Reaching a private network, protecting internet traffic, or both.
- Where do people connect to? The public address or DNS name of this server, as people will type it into their VPN app. The wizard leaves it empty on purpose: the address the server has inside your network does not work from outside. If the server is behind a router, use the router's public address and forward UDP 1194 to the server. No public address at all? Ask your provider for one, use a dynamic DNS name, or run Tunnelry on a cloud server.
- Which networks may they reach? The address ranges behind the server, one per line (for example
192.168.1.0/24). The wizard fills in the whole network the server itself is in; narrow it down if needed.
The advanced options (ports, protocol, the VPN's own address ranges, DNS) are preset sensibly.
Review and activate. The wizard lists what it is about to do. Activate creates the certificate authority, writes the OpenVPN configuration and the firewall, and starts the VPN.
Confirm. The new firewall is on for a limited time. If you can still see this page, press I can see this page: keep the settings and finish. If you cannot (for example the settings locked you out), do nothing: the server undoes them on its own. After you confirm, the wizard closes and you sign in.
Connecting a device
The wizard makes no profile. After signing in, open VPN profiles and create one for your first device. For an
OpenVPN profile, install an OpenVPN client (OpenVPN Connect, or the OpenVPN GUI on Windows, Tunnelblick on macOS, the
OpenVPN Connect app on phones), import the .ovpn file and connect. For a WireGuard profile, scan the QR code with
the WireGuard app. The file contains the device's private key, so keep it safe. Then open Dashboard in Tunnelry:
the device appears under Connected now.
Doing the setup from the console
Everything the wizard does can also be done non-interactively, for scripted installations. Run
sudo -u tunnelry php /opt/tunnelry/current/artisan tunnelry:setup --help for the options.
Next: everyday use.