Documentation / Getting started

First access and guided setup

After the installation you create the administrator with the first-access link, then the console opens the Guided setup: seven steps that check the server and collect the few settings Neti needs before you publish services (language, instance name, outgoing email, console address, defenses, a first backup). This page describes the sign-in page, every step of the guided setup and the layout of the console.

Where: the sign-in page is at the console address printed by the installer. The guided setup is the menu entry Guided setup; it needs the permission to install and repair system components (manage.system), which the Admin role has.

Creating the administrator

  1. Open the first-access link printed at the end of the installation.
  2. The browser warns about the self-signed certificate: check that the SHA-256 fingerprint it shows is the one printed by the installer, then continue. On a Pro node the warning can be removed later with a public certificate for the IP address: SSL Backend.
  3. The page Initial setup appears. It is shown only while no user exists. Fill in the form and press Create administrator.
Setup token
32 hexadecimal characters generated on the server. When you arrive with the first-access link the field is already filled: the token travels in the part of the address after #, which the browser does not send to the server and which therefore never ends up in a log. The page removes it from the address bar right away. If you open the plain console address instead, paste the token by hand.
Email
The administrator's email address. It is the account name and the address the sign-in codes are sent to: use a mailbox you can really read.
Username (optional)
A short name you can type instead of the email when signing in: 3 to 64 characters among letters, digits, dot, hyphen and underscore.
Password (at least 12 characters) and Repeat the password
The administrator's password, typed twice. Minimum 12 characters.
Create administrator
Creates the user with the Admin role, signs you in and remembers this browser as a known device (the setup token counts as second factor, so no emailed code is asked now). The token is deleted from the server: the link stops working and the Initial setup page never appears again.

Below the form the page reminds you of the limits of the Free edition (up to 5 services, 20 gate users per service, 1 administrator and 3 WireGuard clients) and of the anonymous count of active installations, sent with the check for updates and once a month, which you can turn off in Settings → Updates. See License and Updates.

Lost or missing token

The page itself says what to do: Token missing or lost? On the server, as root: /opt/neti/bin/sysagent.sh setup-token-new. The command prints a new token (the previous one stops working); open the console address and paste it in Setup token. It works only from a terminal and only while no user exists: afterwards it answers that users already exist and the initial setup is not needed.

Wrong setup token.
The token typed is not the one on the server. After 5 wrong tokens from the same address in 10 minutes the page answers Too many attempts: try again in 10 minutes.; wrong tokens also count for the fail2ban ban of the console (5 failures in 10 minutes, ban of 1 hour).
Setup token missing: generate it on the server (see below).
There is no token file on the server: generate one with the command above.

The guided setup

Right after the first sign-in the console opens the Guided setup (configure Neti; the services to publish are added later). No step configures applications: services are added afterwards, one at a time, from Routing.

On the left there is the list of the seven steps, each with a colored dot, a progress bar and the count N of 7 steps. On the right, the current step: a short explanation, its form if it has one, the list of checks and the buttons.

Dot of a step
Green: verified. Orange: postponed. Red: some checks did not pass. White: still to do. Click a step to open it; you can do them in any order, but the setup closes only when all the required ones are green.
Checks
Every step really checks the state of the system. Each check has a title, a detail and a result: passed, warning or failed. Orange warnings do not block the setup, red ones do.
Check / Check again
Runs the checks of the step again and records the result (…: verified. or …: some checks did not pass, see below.). Use it after fixing something on the server. The steps Prerequisites and Defenses consist of checks only: their state follows the checks by itself every time the page is opened.
Next →
Appears when the current step is verified or postponed and opens the following one.
Postpone (with the field reason for postponing)
Only on optional steps, marked (opt.) in the list: today only Backup. You must write a reason (up to 200 characters), which is shown in the Summary and recorded in Activity. Required steps cannot be postponed.

The result of every step is saved: if you close the browser you resume from the same point. Until the setup is finished, the console opens on it at every sign-in and every other page shows the notice Setup not finished: N steps to go. with the link Continue the guided setup. Nothing prevents you from using the rest of the console in the meantime.

1. Prerequisites

Checks on the system Neti runs on. At the top of this first step there is the language choice.

Language · Lingua
Choose English or Italiano: the choice is applied as soon as you click it. It sets both the language of this instance (used for anyone who has not chosen a language, and for system emails) and the language of your own profile. Each user can later change their own with the Language selector at the bottom of the menu; the instance language can be changed in Settings → General (Instance language). A new installation starts in English.

The checks:

System agent
The privileged agent that carries out the console's requests on the system must respond. Failed if it does not: nothing could be configured from the console.
nginx, PHP-FPM, fail2ban
The three services must be active. Failed if one is stopped or not installed.
Clock synchronized
Passed when systemd-timesyncd is active. Otherwise a warning: sign-in codes and certificates depend on the exact time.
Free space
Free space on the root partition: failed below 2 GB, warning below 5 GB.
Available memory
Warning below 256 MB of available memory.
DNS resolution
The server must resolve names. Failed otherwise: check /etc/resolv.conf.
Internet connection
Outgoing HTTPS must work. Failed otherwise: updates and certificates would not work.
Public address
Shows the public IP address of the server. If the address found is not public, a warning says the server is behind NAT: to publish services to the Internet you will need a port forward on the router, and you can enter the router's public address in the Identity step.

2. Identity

Instance name and public address.

Instance name
Shown in the console and in emails; useful if you manage several installations. 2 to 40 characters among letters, digits, space, dot, hyphen and underscore. The initial value is the one chosen during neti setup (by default the host name).
Public address (optional)
An IPv4 address. Leave it empty and Neti detects it by itself (the field shows detected: …). Fill it in if the server is behind NAT: it is the public IP of the router where you will set the port forward. The address is used for the DNS records of the services, so if Neti cannot detect it, or detects the wrong one, enter it here.
Save and check
Saves both fields and runs the checks: Instance name (must be set) and Public address (detected automatically or set manually; a warning if the address entered by hand is not a public one).

3. Outgoing email

SMTP server for sign-in codes. Neti sends sign-in codes by email, to the administrator too when signing in from a new browser. That is why this step is required and is completed only by a successful test email.

SMTP host
Name of the SMTP server, for example smtp.example.com (letters, digits, dots and hyphens).
Port and security
Port from 1 to 65535, default 587, and the protection of the connection: STARTTLS (default), SSL/TLS or none. Typical pairs are 587 with STARTTLS and 465 with SSL/TLS; use none only towards a relay on a network you trust.
User and Password
Credentials of the SMTP account. Once a password is saved the label shows set; leave the field empty to keep it.
Sender
The email address the messages are sent from, for example noreply@example.com. It must be a valid address that your SMTP server accepts as sender.
Sender name
The name shown next to the sender address. Default: Neti.
Save
Saves the settings (Email settings saved. Now send the test email.). Saving cancels a previous successful test: after every change the test must be repeated.
Send test email to …
Sends a test message to your own address (the administrator signed in). If it is sent, the step becomes verified; if not, the message Sending failed: … reports the answer of the SMTP server.

The checks: SMTP server (host and port configured), Sender (configured), Test email (sent successfully, with date and time). The same settings can be changed later in Settings → Email (SMTP); see Settings.

4. Console access

Console address and its protection. The console answers only at one address: port and path were chosen at random for this installation and appear nowhere else. The step shows the full address and asks you to save it in your password manager: anyone who does not know it cannot find the console, and neither can you without it.

I have saved the console address
Checkbox to tick after you have really saved the address.
Confirm and check
Records your confirmation and runs the checks.

The checks:

Console address
Shows the port in use. Failed while a change of address is waiting for confirmation: open the console at the new address to confirm it.
Unpredictable port and path
Passed when port and path were chosen for this installation. A warning if the default values are in use, because anyone who knows Neti knows them.
Protection against repeated attempts
fail2ban must be watching the sign-ins and the anomalous requests to the console.
Address saved by the administrator
Passed after you have ticked the checkbox and confirmed.

To change the port or the path use Settings → General. A change of address must be confirmed by opening the console at the new address; without confirmation it is rolled back automatically, so a mistake cannot lock you out. See Settings.

5. Defenses

Firewall, fail2ban and optional components. Firewall and fail2ban have been active since the installation. CrowdSec and GeoIP are optional: you can install them now or later from the Server page.

Install CrowdSec
Installs CrowdSec, which blocks the IP addresses reported by its community. While it is being installed the box shows Installing CrowdSec, running for N s with the last lines of the installation log, and the page refreshes by itself. At the end it shows CrowdSec installed and active, or Installation of CrowdSec failed with the log and the button Retry CrowdSec.
Install GeoIP
Installs the GeoIP databases, needed to know the country of a visitor. Without them the rules by country do not work. Same progress display and Retry GeoIP button.

The checks:

Firewall
Must be active. If it is not (for example because it was not confirmed during the installation and turned itself off), run neti setup again on the server or enable it from the Firewall page.
Security updates
Debian's automatic security updates must be on (automatic every day, with the time of the last run). A warning when a server reboot is needed to complete them. Failed if they are not automatic: run neti setup again on the server.
fail2ban
Lists the active rules. Failed if there are none.
CrowdSec (optional)
A warning, not a block, when it is not installed or when it is installed but the blocking part is not active (reinstall to repair it).
GeoIP (optional)
A warning, not a block, when it is not installed.

acme.sh, used for automatic certificates, is not part of this step: it is installed from the console when you need it (see Certificates).

6. Backup (optional)

Encrypted copy of the configuration. The backup contains configuration, database and keys, encrypted with a passphrase. Without the passphrase nothing can be recovered: keep it separate from the server.

Passphrase (at least 12 characters) and Repeat
The passphrase that encrypts the backup, typed twice. Minimum 12 characters. Neti does not store it.
Create backup
Creates the first backup on the server. Then press Check: the check Configuration backup passes when at least one backup exists.
Postpone
The step is optional: write a reason and postpone it. In the Summary it appears as a warning (postponed: …) and does not prevent finishing.

Backups are managed, downloaded and verified in Settings → Backup; see Backup.

7. Summary

Final check and end of setup. The list shows every step as completed, postponed (with the reason) or to be completed.

Finish setup
Closes the guided setup (Setup completed. You can now add the services to publish.). If a required step is not verified it answers Complete these first: … with the names of the missing steps.

Once the setup is closed, the console opens on the Dashboard and the notice about the unfinished setup disappears. The guided setup can be reopened at any time: its entry moves from the top of the menu to Settings → Guided setup, and you can run the checks again whenever you want to verify the state of the server.

Signing in afterwards

The sign-in page is at the console address and nowhere else. It has up to three steps.

  1. Sign in: type your Email or username and press Continue.
  2. Two-step verification: type the Code received by email and press Continue. The code has 6 digits and is valid for 30 minutes. This step is skipped on a device that is already recognized.
  3. Password: type your password and press Sign in. The browser's password manager can save it together with the email or username typed in the first step, and fill it in next time.
Recognized device
After a complete sign-in the browser is remembered for 90 days: during that time the code is not asked again from that browser. The code is asked again from a new browser, after the 90 days, and when Filtering judges the connection worth a second check.
Didn't get it? Send a new code
Sends another code; earlier codes stay valid for 30 minutes. Codes are limited: one per minute and 6 per hour for each account, 20 per hour for each IP address. After 5 wrong codes all the pending codes of that account are void and a new one must be requested.
Change email
Goes back to the first step, to correct the email or username.
If the address is enabled, we have emailed you a code.
The page shows this message and the code step for any name typed, existing or not, so that nobody can find out which accounts exist. A code is really sent only to existing users.
Language links
At the bottom of the sign-in page there is a link for each other language (English or Italiano). The choice is remembered by that browser. After the sign-in the language of your profile applies.

Protection of the sign-in page

  • Failed sign-ins (wrong code, wrong password, wrong setup token) are counted by fail2ban: 5 failures in 10 minutes ban the address for 1 hour.
  • Requests to the console port that do not use the exact path get no answer at all, and 2 of them in 10 minutes ban the address for 24 hours.
  • The sign-in page goes through Filtering like the gates of the services: a connection with a bad score can be asked for the code even from a recognized device, or be sent to the decoy, where every attempt gets Invalid credentials. See Honeypot.
  • The console can be restricted to the trusted networks only: any other address then gets no answer.

Sign-in problems

The code does not arrive
Check the spam folder, wait a minute and use Didn't get it? Send a new code. If no email arrives at all, the SMTP settings are probably no longer valid: from a browser that is still recognized, sign in and check Settings → Email (SMTP) and the email tab of Logs.
Wrong or expired code.
The code is mistyped, older than 30 minutes, or voided by 5 wrong attempts: request a new one.
Session expired, reload the page. / Start the sign-in again.
The page stayed open too long: reload it and start again from the email.
The page does not load at all
Check that the address is complete (port and path). If you made several mistakes your address may be banned: wait, or connect from another address. On the server, neti status shows the console address and whether the services are running; see The neti command.

The users of the console and their permissions are managed in Settings → Users; see Users.

The console

The console has a menu on the left, the page in the middle and, on the right of every page, a How it works column that explains what you see and what the buttons do. At the bottom of the menu you find who you are (Signed in as, with your role), the Language selector, which changes the language of your profile, and Sign out. The menu shows only the entries your permissions allow.

At the top of the menu, under the name of the instance, small labels appear when something needs attention: Reboot required (installed updates take effect only after a reboot; it leads to the Server page) and Neti … available or N system updates, which lead to Settings → Updates.

Dashboard, Server
General state of the machine and of the system services. At the top of the Dashboard the Protection box shows, for the last 24 hours, 7 or 30 days, how many potential attacks Neti has stopped and how many verified accesses there were: one column per hour or per day and the share of potential attacks on the total. Potential attacks are the requests that Neti sent to the decoy page; those stopped earlier (Tor, country, CrowdSec) are not counted, so the real number is higher. Verified accesses are the entries completed after verification, in the console and in the gates of the services.
Network & Tunnels
The WireGuard hub: connected clients and backends.
Firewall, Remote access
Inbound rules; time-limited access to SSH, remote desktop, databases and other services of the servers.
Certificates
The certificates of the services and their expiry.
DNS
Managed DNS zones, records and resolution.
Routing
The published services.
Probes, Traffic, Security, Honeypot
Monitoring, connections, blocked attempts.
Filtering, Trusted networks
The rules that decide who gets in, per service, and the networks that are always trusted.
Activity
The record of every action done from the console.
Logs
The logs of certificates, sites, email, security, background jobs and system.
Settings
A group that opens in the menu: General, Email (SMTP), DNS, Notifications, Remote access, Backup, Updates, Branding, License, Users and, once the setup is finished, Guided setup.

Notices at the top of the pages

Setup not finished: N steps to go.
Shown on every page until the guided setup is closed, with the link Continue the guided setup.
License notices
Shown when the installation is over the limits of the Free edition or when a Pro license needs attention. See License.
Community

Community

Discussion board. Sign in to open topics and reply.

Loading…

The same account works for Community and Console.

Complete your profile

Your profile

One more step to join the community.

My posts

Your discussions and replies.