Documentation / Console reference

Settings

The Settings group of the menu holds the configuration of the Neti instance itself: its name and public address, the address of the management console, the mail server that delivers the access codes, the notification channels, and the language. What you save here is stored in the database of Neti and takes precedence over the values of the file /etc/neti/secrets.php, so you never need to edit files on the server.

Where: menu Settings, which opens a list of sub-pages. Each sub-page has its own permission: General, Email (SMTP), DNS, Notifications and Branding need manage.settings; Remote access needs manage.access_rules; Backup needs manage.backup; Updates needs manage.updates; Users needs manage.users; License is for the Admin role only. A sub-page you have no permission for does not appear in the menu. Roles and permissions are explained in Users.

General

The page Settings · General has up to three boxes, from top to bottom: the general settings of the instance, SSH access to the server (Admin role only) and Management console (only with the permission manage.system).

General settings of the instance

The first box is a form saved with Save general settings. Every save is recorded in Activity.

Brand
The name Neti uses when it writes to people: it is in the subject of the email with the access code and it is the prefix in square brackets of probe alerts, update emails and SSH access emails. Default: Neti. An empty field leaves the saved value unchanged.
Instance
The name of this installation, shown under the logo at the top of the menu. The line below it shows the installed version of Neti, the update channel (stable or staging) and the edition (Free or Pro). It helps when you manage more than one Neti node and need to know at a glance which console you are in. It is first set in the guided setup (step Identity). An empty field leaves the saved value unchanged.
Public IP of the proxy
The public IPv4 address that the domains of your services point to. Neti uses it for the DNS records of the services and, in Routing, to tell whether a domain already points to this server. Leave it empty to let Neti detect it: the detected address is shown in gray inside the field (detected: …). Fill it in only when detection is wrong, for example when the server sits behind NAT and sees only a private address. Only an IPv4 address is accepted; anything else is refused with the message Invalid public address: not changed while the other fields are saved.
Device session duration (days)
For how many days a browser that completed a sign-in to the console is remembered, so that the next sign-ins from that browser skip the email code and ask only for the password. Default 90, allowed 1 to 3650. A shorter duration means more frequent email codes and less exposure if a laptop is lost. The new value applies to sessions created from now on; existing ones keep their expiry date and can be revoked one by one in Users → Active device sessions. The gates of the services use the session duration of their filtering profile: see Filtering.
Monitored domains (DNS), comma-separated
Host names whose DNS resolution is checked and listed in the DNS page, for example app.example.com, www.example.com. Separate them with commas or spaces. Entries that are not valid host names are dropped when you save.
Reserved domains (excluded from Routing)
Domains that are served on this machine by an nginx configuration written by hand, outside Neti. Listing them here keeps Routing from managing them, which would create two configurations for the same name: trying to add one of them as a service is refused (Domain with a dedicated configuration: it cannot be managed by routing). Separate them with commas or spaces. On a server dedicated to Neti this field stays empty.
Instance language
English or Italiano. It is the language of the console for every user who has not chosen one with the selector at the bottom of the menu; the console states that it is also used for system emails. Default: English. See Language of the console.
Save general settings
Saves the fields above. Confirmation: General settings saved.

SSH access to the server

This box is visible only to users with the Admin role. It decides who can reach the SSH service of the Neti machine itself (not the temporary accesses to the servers behind Neti). The full description is in Remote access; in short:

  • A pill shows the state: filter off (the state after installation: SSH answers everyone, as on a freshly installed Debian) or filter on (SSH answers only the addresses in the list, plus the WireGuard network; the others are dropped by the firewall). SSH keeps running in both cases and people already connected are not disconnected.
  • Your IP is shown with the pill allowed or not listed. Always allow adds it permanently; Allow for a limited time adds it for the number of hours or days you type (1 to 366).
  • Add an address or a network: an IPv4 address or network from /8 to /32, or an IPv6 address or network from /16 to /128, with an optional note (up to 80 characters) and a duration (always, hours or days). Adding an address that is already in the list renews it with the new duration.
  • The table lists Address, Note, Expiry and Added by, with Remove on each row. Expired entries disappear by themselves within a minute.
  • Enable the filter / Turn the filter off (SSH open to everyone) switch the filter. If you enable it from an address that is not in the list, the console warns you and offers Add my IP (always) and enable or Enable anyway. The console stays reachable in any case, so the filter can always be turned off from here.
  • Admins who tick Emails about SSH access to the server in their own record in Users receive an email at every change.

Management console

This box is visible only with the permission manage.system. It sets the address at which the console itself answers. The console does not use ports 80 and 443 like the published services: it listens on its own port, with a self-signed certificate, and answers only at one exact path. Every request to that port for any other path gets no answer at all (the connection is closed), so an automated scanner that finds the port open cannot even tell that there is a console behind it. Port and path are chosen at random by the installer and are different on every installation. See How Neti protects itself.

Port
The TCP port of the console. Allowed: 1024 to 65535, except 80, 443, 51820 (WireGuard) and the range 49220–49299, which is reserved for the temporary forwards of Remote access. A port already used by another program on the server is refused (port already in use).
Listening interface
Empty (default) = the console listens on all the IPv4 addresses of the server. Write one IPv4 address of the server to listen only there: for example the WireGuard address of the server, to make the console reachable only from inside the tunnel. Only IPv4 addresses are accepted. Be sure you can reach that address before applying.
Console path
The path part of the console address. It must start with / followed by 4 to 64 characters among letters, digits, -, _ and /, without two consecutive slashes (for example /abc/def). Treat it like a secret: whoever does not know it gets no page.
fail2ban · IPs never banned for failed sign-ins (jail neti-auth)
Addresses and networks (IPv4 or IPv6, also in CIDR form, separated by spaces or commas) that fail2ban never bans for failed sign-ins to the console. Example: 127.0.0.1/8 10.9.0.0/24. The jail neti-auth reads /var/log/neti/auth.log and bans for 1 hour an address that fails 5 sign-in attempts (wrong code or wrong password) in 10 minutes. Add here the networks you administer from if you want to rule out locking yourself out with typing mistakes.
fail2ban · IPs never banned for probing (jail neti-probe)
Same format; empty = no exceptions (default). The jail neti-probe reads the access log of the console port and bans for 24 hours an address that, within 10 minutes, makes 2 requests to the console port for anything that is not the exact console path, or 2 malformed requests. Requests to the console path itself are never counted. Add an address here only if a legitimate tool of yours (a monitoring system, for example) knocks on the console port.
Apply console configuration
Asks for confirmation, then applies the change with a timed rollback, described below.

How the timed rollback works. A wrong port or path could lock you out of the console, so Neti never makes the change final by itself:

  1. Neti checks the values. If the option that restricts the console to the trusted networks is on and your current address is not in a trusted network, the change is refused (your IP is not in the trusted networks and the restriction is on).
  2. The new configuration of nginx and fail2ban is installed and tested; if the test fails, the previous files are put back immediately and you get the error.
  3. The new port is opened in the firewall without closing the old one, and a timer of 3 minutes starts. The message at the top shows the new address to open.
  4. Open the new address and sign in (with a user that has manage.system) within the 3 minutes: the first page loaded at the new address confirms the change, cancels the timer and closes the old port. You see New console address confirmed: the rollback has been canceled.
  5. If nobody confirms in time, the previous configuration is restored and the new port is closed again: the console is back at the old address, as if nothing had happened.

While a change is waiting, the box shows Change waiting for confirmation with the address to open and the time left, and a second change cannot be applied until the first is confirmed or rolled back. If you press Apply console configuration without having changed anything, nothing is touched and the message says that the installed configuration is already this one. A change that leaves port and path as they were (for example only the fail2ban exceptions) is confirmed by the next console page you open.

After a change of port or path, update your bookmark and, if you use it, the Link to the console in messages in Notifications.

Email (SMTP)

Settings → Email (SMTP)

The page Settings · Email (SMTP) configures the mail server Neti sends through. Email is not an accessory in Neti: the access codes of the console, of the gates of the services, of Remote access and of the download of WireGuard configurations all travel by email, and so do probe alerts sent to email recipients, update emails and SSH access emails. Without a working SMTP server nobody receives the codes, so nobody can sign in from a new device. The same settings are asked for in the guided setup (step Outgoing email): see First access.

SMTP server and access codes

SMTP host
Host name or IP address of the mail server, for example mail.example.com. A value that is neither is refused (Invalid and not changed: server. The rest was saved.).
Port
Default 587. Allowed 1 to 65535.
Security
STARTTLS (587) (default): the connection starts in clear and is upgraded to TLS before the credentials are sent; it is the usual choice on port 587. SSL/TLS (465): TLS from the first byte, usual on port 465. none: no encryption, credentials and messages travel in clear; use it only towards a relay on the same private network. With the two TLS modes the certificate of the server is verified and must be valid for the host name you wrote: a self-signed certificate, or an IP address in place of the name, makes the delivery fail.
User
The user name of the sending mailbox. Neti always authenticates to the server (AUTH LOGIN): a relay that accepts mail without authentication is not supported.
Password
The password of the mailbox. Once saved it is never shown again: the label gets the tag configured and the field stays empty. Leave it empty to keep the saved password; type a new one only to replace it.
Sender (From)
The email address the messages are sent from, for example noreply@example.com. It must be an address the SMTP server lets this user send from, otherwise the server refuses the message. An invalid address is not saved (Invalid and not changed: sender. The rest was saved.).
Sender name
The name shown next to the sender address in the recipient's mail program.
OTP code lifetime (seconds)
How long an access code stays valid after it was sent. Default 1800 (30 minutes), allowed 60 to 86400. It applies to every code Neti sends: console, gates of the services, Remote access, download of WireGuard configurations. A value outside the range is ignored and the previous one is kept. Shorten it if your mail is delivered within seconds; keep it long if your users' mail servers delay messages.
Code length
Number of digits of the code. Default 6, allowed 6 to 10.
Save email settings
Saves the form. Saving does not contact the mail server: use the test below to check the result.

Send a test email

The second box sends a real message. A mail server can accept the credentials and still refuse the delivery (for example because of the sender address), so only a real message proves that the codes will arrive.

Address field
The address that receives the test. Use a mailbox you can read right away.
Send test
Sends the message with the saved configuration: save the form first, otherwise the test uses the old values. On success you see Test email sent to …; on failure the message gives the reason in plain words: no reply from the server (port closed or filtered, or the server is blocking the address of Neti), connection refused, TLS certificate not valid, authentication refused, sender or recipient refused. Each reply of the server is waited for at most 15 seconds and the whole delivery at most 45 seconds, so a silent server does not leave the page hanging.

Every message Neti sends, tests included, is listed with its outcome in Logs → Email.

Notifications

Settings → Notifications

The page Settings · Notifications defines how and to whom Neti sends the alerts of the Probes: the message when a monitored service goes down, the reminders while it is still down and the message when it is back. Two channels are available, email and Telegram. Here you only build the list of recipients; which recipients each probe alerts is chosen in the probe itself.

Other emails do not use this list: update emails and SSH access emails go to the console users who ticked the matching option in Users, and access codes go to the person signing in.

Telegram

Token (the first field of the box)
The token of the Telegram account that will send the messages. You create that account inside Telegram by writing to @BotFather and sending the command /newbot; at the end it gives you a token of the form 123456789:ABC…, to paste here. A token in a different form is refused (Invalid Telegram token). Once saved, the token is never shown again: the label gets the tag configured; leave the field empty to keep it.
remove the token
Shown only when a token is saved. Tick it and save to delete the token: Telegram recipients stay in the list but can no longer be reached.

Email

There is nothing to fill in: email alerts are sent through the SMTP server of Settings → Email (SMTP). The line tells whether that server is (configured) or (not configured), in red; in the second case email recipients receive nothing.

Link to the console in messages
Optional. The full address of this console, starting with https://. When it is set, every alert ends with a direct link to the page of the probe that raised it. The address the console is being used from is suggested under the field. Remember that the link contains the port and the path of the console: set it only if the recipients are people who may know them, and update it when you change the console address.
Save
Saves the Telegram token and the link. Confirmation: Notification settings saved.

Recipients

The table lists who can be alerted. It is the list that appears in the notification menu of every probe.

Channel
Email or Telegram.
Name
The label you gave the recipient, shown in the probes.
Address / chat ID
The email address or the Telegram chat ID.
Used by
How many probes alert this recipient.
test
Sends a test message to that recipient on its channel and reports the outcome (Test sent to … or the reason of the failure). Always test a new recipient: an alert that does not arrive is discovered at the worst moment.
remove
Deletes the recipient after confirmation. If probes were using it, the confirmation says how many: they stop alerting that recipient.

To add a recipient, fill in the row under the table:

Channel
Email or Telegram.
Name
Optional, up to 60 characters. If you leave it empty the address or chat ID is used as name.
Email or chat ID
For Email, a valid address. For Telegram, the numeric chat ID (for example 123456789; groups have a negative ID such as -100…) or the public name of a channel in the form @channel.
Add
Adds the recipient to the list.

Find the Telegram chat ID

This box appears once a Telegram token is saved. It spares you from looking up chat IDs by hand.

  1. From the Telegram account of the person to alert, send any message to the Telegram account you created (or add that account to a group and write a message in the group).
  2. Press Detect chats. Neti asks Telegram for the recent messages and lists the chats they came from: name, type (private, group, channel) and chat ID.
  3. Press add next to a chat: it becomes a Telegram recipient with that name.

If the answer is No recent chats, no message has reached the account recently: write to it again and retry.

SSL Backend: the certificate of the console

Settings → SSL Backend chooses the certificate the console answers with on its IP address. Changing it is a function of Neti Pro: on a Free node the page shows the same choices with the forms disabled and the box Function of Neti Pro, and the console keeps the self-signed certificate. The page needs the permission manage.settings.

There are three choices; the one in use is marked chosen:

Self-signed
The certificate created at installation. It depends on nobody and appears in no public log; the browser shows a warning and you check the SHA-256 fingerprint by hand. It always stays on the server as a spare.
Let's Encrypt on the IP address
A public certificate issued for the IP address of the server, with no DNS name. Opening the console with https://IP:port the browser no longer shows the warning.
Certificate uploaded by hand
A certificate you already have, from an internal authority or a public one, for the IP address or for a name that leads to the console.

Certificate in use

The first box shows which certificate the console is using now: for the self-signed one its SHA-256 fingerprint and expiry; for the others whom it is issued for, the issuer, the expiry with the time left, and for Let's Encrypt the Last renewal and when the Next renewal is due. The pill request running… appears while a request is in progress (the page refreshes by itself); fallen back to self-signed appears when the chosen certificate has expired. Failed renewals are listed with the reason given by Let's Encrypt.

Let's Encrypt on the IP address

Let's Encrypt issues certificates for IP addresses only as short-lived certificates: each one is valid for about 6 days (160 hours). Getting one takes about a minute; the short life only means that it is renewed often, and Neti does that by itself.

  1. Check Public IP address of the console: Neti proposes the public IPv4 of the server.
  2. Read the box pros and cons and tick I have read the note about the public logs.
  3. Press Request and activate. The request runs in the background; when the certificate arrives the console starts using it at once, without restarting and without closing your session.

What is needed:

  • the address is a public IPv4 of this server (private addresses are refused);
  • port 80 of that address is reachable from the Internet: Let's Encrypt calls it to verify the address. Neti answers on port 80 of the IP address only to that check, everything else gets no answer;
  • acme.sh is installed (Server → Components);
  • no DNS record is needed. The console must then be opened with the IP address, not with a name.

If the first request fails nothing changes: the console keeps the certificate it had and the reason is shown in the box Certificate in use. Request again asks for a new certificate at any time.

Automatic renewal and fallback

Every hour Neti checks the certificate. When half of its life has passed (about 3 days) it asks for a new one and puts it in use. If the request fails, the certificate in use stays and Neti tries again every 3 hours. If no attempt works before the expiry, the console goes back to the self-signed certificate, so that it stays reachable, and keeps trying; as soon as a renewal works the console goes back to the Let's Encrypt certificate by itself.

The same fallback applies to an uploaded certificate that expires without being replaced. A new certificate is put in use only if nginx accepts the configuration; otherwise the previous one stays. The certificate cannot be changed while a change of the management console is waiting for confirmation.

If the node goes back to Free, the certificate in use stays until it expires, renewals stop (suspended: the node is not Pro) and at the expiry the console goes back to the self-signed certificate. Back to self-signed is always available.

Public logs: pros and cons

Every certificate issued by a public authority is written to the Certificate Transparency logs, which anyone can search and which cannot be erased. With a certificate for the IP address, the IP address of the server appears there, with date and authority: whoever searches sees that a service with a certificate lives at that address.

In favourAgainst
No browser warning and no fingerprint to check: whoever opens the console knows they are talking to this server.The IP address of the server becomes publicly listed, for good.
No domain and no DNS record: the address of the console appears in no zone.It depends on an outside service and on port 80: if the address cannot be verified for more than 3 days in a row the certificate expires and the console goes back to the self-signed one.
Renewal, activation and fallback are automatic.If the public address of the server changes, the certificate has to be requested for the new address.
A copied key stays usable for a few days only.

The logs do not show the port of the console, its path or the domains of the published services: the console stays unfindable without knowing them, and a wrong path still gets no answer. If the address of the server must stay private, keep the self-signed certificate or upload one from your internal authority: neither goes through the public logs.

Certificate uploaded by hand

Open Upload the certificate and give either a PFX / P12 file, or certificate and key in PEM format (as files or pasted), with the password if they have one; tick Internal CA for a certificate of a company authority. The form and the checks are those of the manual certificate of a service, with one difference: Neti does not check which name or address the certificate is issued for, because it cannot know how you open the console. It must cover the address you type in the browser. Upload and activate puts it in use at once. Renewing it is up to you: Neti warns 14 and 3 days before the expiry.

Notices

With Notify if renewal fails or the certificate is about to expire ticked (the default), Neti sends a message:

  • at the first failed renewal of a series (not at every attempt);
  • if the console goes back to the self-signed certificate;
  • when renewal works again;
  • 14 and 3 days before an uploaded certificate expires.

Choose the recipients among those of Notifications (email or Telegram); with none chosen, all of them receive the notices. Save notices stores the choice.

Certificates page and log

The certificate of the console also appears in Certificates, with a Renew button when it is a Let's Encrypt certificate. Every request, renewal and switch is recorded in Logs → Certificates → Console certificate (requests and renewals).

Diagnostics: one package to understand a problem

Settings → Diagnostics gathers the state of the node, the result of a set of checks and the recent logs in one archive of text files. Use it when something does not work and you want to see everything in one place, or when the support asks for it. It is the same package made by neti diagnose in the terminal (see The neti command).

Check, download

  • Logs of the last: 1, 3, 7, 14 or 30 days of logs in the package.
  • Check now runs the checks and shows the box What looks wrong without downloading anything: full disk, stopped services, nginx configuration that does not pass the test, certificates expired or close to expiry, failed renewals, license or update errors, repository or license server out of reach, and so on. The messages of the checks are in English, as in the package.
  • Download the package sends the .tar.gz file to your browser. Nothing stays on the server.
  • The tick Leave the public IP addresses of visitors and the emails as they are switches off the masking; without it addresses are shortened and emails masked.

The package never contains private keys, passwords, tokens, API credentials, the license code or the path of the console. You can open it and read it before giving it to anyone.

Send to support (Neti Pro)

On a Pro node, tick I have read what the package contains… and press Send to support: the package is uploaded and linked to your account, and the page shows its reference (D-…). Then open the request on the Neti website, Console → Support: the package is already attached. It also works the other way round: a package sent while a request for that machine is open is attached to it. See Support for the rules. A node can send 6 packages a day, each up to 5 MB.

On a Free node the box is shown with the button disabled: download the package and use it as you like.

The other Settings pages

The remaining entries of the Settings menu have their own page in this guide:

DNS
The DNS zones Neti can manage, with their provider and API credentials: DNS.
Remote access
The rules of the temporary accesses to the servers (countries, trusted networks, blocks, score, duration): Remote access.
Backup
Encrypted backups of the configuration: Backup.
Updates
Updates of Neti and of the system, channel and schedule: Updates.
Branding
Your own branding in place of the Neti logo on the pages visitors see (Neti Pro): Neti Pro.
License
Edition of this node, activation and limits: License.
Users
Console users, roles, permissions, remembered devices and gate users: Users.
Guided setup
Once the guided setup has been completed it moves under Settings, where it can be reopened at any time: First access.

Language of the console

The console is available in English and Italiano. There are two levels: the language of the instance, which is the default for everybody, and the language of each user.

Language (selector at the bottom of the menu)
Changes the language for you. The page reloads at once in the new language, the choice is saved in your user record and follows you on every device you sign in from. It is also remembered by the browser for one year, so the sign-in page of that browser is already in your language. Changing it does not affect the other users. No permission is needed.
Instance language (in Settings → General)
The language for every user who has not chosen one. It is also set by the language choice at the first step of the guided setup, which sets both the instance language and the language of the administrator doing the setup.
Sign-in page
Before signing in, the link at the bottom of the sign-in page switches to the other language; the browser remembers it.

The language in use is decided in this order: the choice saved in your user record; otherwise the choice remembered by the browser; otherwise the instance language; otherwise English. The help column on the right of every page follows the same language. If a sentence has no translation yet, it is shown in Italian: nothing breaks.

How to change the address of the console

  1. Open Settings → General and go to the box Management console.
  2. Change Port and/or Console path and press Apply console configuration; confirm.
  3. Copy the new address from the message at the top and open it in a new tab, leaving the old one open.
  4. Accept the self-signed certificate if the browser asks again (the port changed) and sign in. The message New console address confirmed tells you the change is final.
  5. Update your bookmarks and the link in Settings → Notifications.

If the new address does not open, do nothing: after 3 minutes the old address works again.

How to set up outgoing email

  1. Create a mailbox on your mail server for Neti (for example noreply@example.com).
  2. In Settings → Email (SMTP) fill in SMTP host, Port, Security, User, Password and Sender (From); press Save email settings.
  3. In Send a test email write your own address and press Send test.
  4. Check that the message arrives, and that it is not in the spam folder: access codes that end up in spam are the most common cause of "I cannot sign in".

How to receive probe alerts on Telegram

  1. In Telegram, write to @BotFather, send /newbot and follow the questions; copy the token you receive.
  2. In Settings → Notifications paste the token in the Telegram box and press Save.
  3. Send a message to the new Telegram account (or add it to a group and write there).
  4. Press Detect chats, then add next to your chat.
  5. Press test on the new recipient and check that the message arrives.
  6. Open the probes that must alert you and select the recipient: see Probes.

Troubleshooting

After changing the console address the new address does not open
Usually a firewall outside the server (the one of the hosting provider) does not let the new port through: Neti opens the port only in the firewall of the machine. Wait for the 3 minutes to pass, use the old address again, open the port at the provider and retry.
Console: not applied
The message lists the reason: port out of range, reserved or already in use, invalid path, interface that is not an IPv4 address, an exception that is not an address, your address outside the trusted networks while the restriction is on, or a change still waiting for confirmation.
Nobody receives the access codes
Send a test email. If it fails, the message says at which step; if it succeeds, look in the spam folder of the recipient and at Logs → Email, where every code sent is listed with its outcome (never with its text).
The test email fails with a certificate error
The certificate of the mail server is not valid for the name in SMTP host. Write the name the certificate was issued for instead of an IP address or an alias.
A Telegram recipient does not receive the test
The message reports the answer of Telegram. The usual causes: the person never wrote to the sending account (Telegram does not let it start a conversation), the account was removed from the group, or the chat ID is wrong.
I was banned from the console while trying passwords
fail2ban banned your address for one hour (5 failed sign-ins in 10 minutes). Wait, or unban the address from another connection in Security; to prevent it, add your network to the first fail2ban exception field of Management console.

Good to know

  • The values saved in Settings override those of /etc/neti/secrets.php; the file keeps only what cannot be changed from the console, such as the location of the database.
  • Passwords and tokens (SMTP password, Telegram token) are never shown again after saving: an empty field means "keep the saved one".
  • Every save in these pages is recorded in Activity with the user and the address it came from.
  • The console is reached with a password and an email code; remembered devices skip the code for the number of days set in Device session duration (days) (90 by default). Every user has their own permissions.
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.