Skip to content

Users, certificates, and backup

Administrator access, certificates, and backups are the control plane of every FreeSense deployment. Protect them before you add remote access or complex services. For the concepts behind these procedures, see system administration.

  1. Open System → User Manager → Users and select Add.
  2. Enter a Username, a strong Password and Confirm Password, and a Full name for the role (for example “Network operations”).
  3. Add the user to a group, or assign privileges directly. Members of the built-in admins group have full access.
  4. Save, log out, and log in as the new user to confirm access.
  5. Disable or restrict any shared account that is no longer needed. Keep the admin account’s password strong and stored safely even if nobody uses it day to day.

For operators who need only part of the WebUI, create a group under System → User Manager → Groups with just those privileges. Privileges that the User Manager marks as root-equivalent (for example WebCfg - Diagnostics: Backup & Restore: Remote Backup or WebCfg - Services: DHCP Server: Edit Custom Kea Configuration) effectively grant full control.

To authenticate against a directory, add an LDAP or RADIUS server under System → User Manager → Authentication Servers and test it with Diagnostics → Authentication before you rely on it.

  1. Open System → Advanced → Admin Access.
  2. Under webConfigurator, use HTTPS with a certificate your browsers trust (see below).
  3. Under Secure Shell, enable SSH only if you need it, and prefer key-only authentication.
  4. Under Login Protection, keep blocking of repeated failed logins on.
  5. Allow WebUI and SSH only from a management network with firewall rules on that interface, and do not open them on the WAN.

Keep console access available while you change access, authentication, or networking settings.

  1. Create or import a certificate authority under System → Certificates → Authorities.
  2. Create or import server and user certificates under System → Certificates → Certificates.
  3. Revoke lost or retired certificates under System → Certificates → Revocation and select that revocation list where it is used (for example on an OpenVPN server).
  4. Record each certificate’s owner, expiry date, renewal method, and where it is deployed.

Certificates and private keys affect the WebUI, VPN, proxies, and package services. Never paste private keys into tickets, recipes, or public documentation. For automatic public certificates use ACME.

Download a backup before upgrades, interface changes, package removals, and broad policy edits:

  1. Open Diagnostics → Backup & Restore.
  2. Under Back up configuration, leave Backup area at all, decide whether to Skip RRD data or Include extra data, tick Backup SSH keys if SSH clients should keep recognising the firewall after a restore, and tick Encrypt this configuration file. with a password.
  3. Select Download configuration as XML.
  4. Store the file and the password in different places, outside the firewall.

To restore, use Restore Backup on the same page: choose the Restore area, select the Configuration file, tick Configuration file is encrypted. and enter the password if needed, and select Review / Restore Configuration. The review step lists the package settings in the backup so you can choose which to restore; package menus and services are never restored from the file. A full restore reboots the firewall.

For a recent mistake, Diagnostics → Backup & Restore → Configuration History lists previous versions of the configuration with their change descriptions. You can compare two versions and restore one.

Test a restore in a lab or maintenance window: a backup that has never been restored is only a hypothesis.

Remote Backup (new in 1.1) keeps encrypted copies of the configuration off the firewall automatically. You need the WebCfg - Diagnostics: Backup & Restore: Remote Backup privilege or the admin account.

  1. Open Diagnostics → Backup & Restore → Remote Backup and switch to the Settings view.
  2. Tick Enable and enter an Encryption passphrase of at least 12 characters. Store it somewhere other than the firewall: without it the backups cannot be restored. Changing it later only affects new backups.
  3. Under Schedule, choose No schedule, Hourly, Daily, or Weekly and the time.
  4. Tick On change to also back up within five minutes after each configuration change.
  5. Optionally tick Notify on success. Failures always raise a notice and use the channels in System → Advanced → Notifications.
  6. Save.

Switch to the Targets view and select Add target. Choose the Storage type, enter a Description, and set Keep (how many backups of this firewall to retain; default 30). Optionally include RRD graph data, the firewall’s SSH host keys, or extra data such as DHCP leases.

Adding an S3-compatible remote backup target for Cloudflare R2

Storage type Fields Notes
S3-compatible Endpoint URL, Region, Bucket, optional Prefix, Path-style URLs, Access key ID, Secret access key AWS: https://s3.<region>.amazonaws.com. Cloudflare R2: https://<account-id>.r2.cloudflarestorage.com with region auto. Most MinIO setups need path-style URLs. Use a key limited to the bucket with read, write, list, and delete permissions.
WebDAV Folder URL, Username, Password Prefer an app password limited to that folder.
SFTP Host, Port, Username, optional Remote directory, Trusted host key Select Fetch host key, compare the fingerprint with the server (ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub on the server), then save. A key pair is generated on the firewall when the target is saved; add the shown Firewall public key to ~/.ssh/authorized_keys of the backup user. Connections fail if the server’s host key ever changes.

Save the target, then use its test action (Test the connection to the target).

  • Use the target’s Back up to … now action, or run freesense-remote-backup run --target <id> --force from a shell. freesense-remote-backup status prints the last result per target.
  • The Backup Targets list shows each target’s status, last success, and last result.
  • Scheduled runs skip a target when the configuration has not changed since its last upload.

Backups are encrypted with AES-256 (OpenSSL, PBKDF2) before they leave the firewall. The .sha256 file uploaded beside each backup detects corruption but does not prove who wrote the file, so restrict write access to the storage location.

  1. On the target, select Browse and restore backups on that target.
  2. Select Restore on a backup. The firewall downloads it, decrypts it with the current passphrase, and opens the normal restore review on the Backup & Restore tab.
  3. Review and confirm the restore.

A downloaded file can also be restored by hand on Backup & Restore with Configuration file is encrypted and the passphrase, or decrypted with openssl on another machine. If you changed the passphrase, older backups need the old passphrase.

  • From the console menu, Restore recent configuration (option 15) restores an earlier configuration version, and Reset admin account and password (option 3) resets the admin account.
  • A ZFS installation also keeps earlier boot environments; see ZFS boot environments. A boot environment is not a substitute for a configuration backup.

Privacy policy