OPNexusdocs

Configuration backups of the firewalls

On the host detail page you back up a firewall's configuration (Back up now) and see the locally stored backups. This is not the backup of OPNexus itself, see Backup and restore.

Scheduled and offsite (Settings › Backups): OPNexus backs up every firewall automatically (default: daily) and keeps the newest ones (default 30 per firewall). Optionally every backup is encrypted on your server with a passphrase (AES-256-GCM, key derived with scrypt from the passphrase) and uploaded to S3-compatible storage (AWS S3, MinIO, Backblaze B2, Wasabi, Cloudflare R2, Hetzner Object Storage …; endpoint must be https://). "Test target" writes, reads and deletes a test object. Each backup is uploaded only once, and nothing is ever deleted offsite (use the bucket's lifecycle rules for that). Without the passphrase an offsite copy is unreadable – keep it outside OPNexus. Decrypting:

bash
docker compose exec -T -e BACKUP_PASSPHRASE='…' backend python -m app.backup_decrypt < file.opxbak > config.xml

The notification "No current backup" fires when a host has been without a backup for three intervals (at least 6 hours), "Offsite backup failed" on problems with the target. The offsite integration is tested against the official AWS signature examples and against running S3 servers with real signature verification (Garage, MinIO, RustFS and Versity S3 Gateway: upload, download, delete, 20 MB object, special characters in the key, wrong secret is rejected); for AWS itself, Backblaze, Wasabi & co. "Test target" shows you immediately whether your provider works.

Viewing changes: the "Changes" button next to a backup shows what changed compared with the previous one. Secrets (passwords, keys, tokens, certificates) appear only as a hash: a changed secret shows up as a changed hash, the value never leaves the server.

Restoring checks a stored backup as a preview (format, metadata, secret fields are masked) and then hands over to the OPNsense web interface. OPNexus writes nothing to the firewall in the process. You import the backup into OPNsense yourself. While the operation is open, OPNexus blocks rule, alias, NAT and maintenance pushes on this host; confirm or cancel the operation. In case of deviations (such as a different host name in the backup), the preview shows a warning.