OPNexusdocs

Adding a host

Under Overview › Hosts (or in the setup assistant) you create a firewall: name, address (https://…, with the port if it differs), API key, API secret, optionally cluster name and policy group.

  • HA pairs: enter both nodes with their own management addresses, not with the shared CARP address. Rules have to reach each node individually, and through the CARP address only the currently active master would be reachable. Give both nodes the same cluster name, then OPNexus groups them.
  • API secrets are never stored in the database but as a file (mode 0600) in a dedicated volume.
  • http:// addresses are rejected because the credentials are sent via HTTP basic auth (exception: ALLOW_INSECURE_FIREWALL_URLS=true for labs).
  • One address, one host: OPNexus rejects entering the same address twice (upper/lower case and a trailing / do not count); it would double every rollout, alert and backup.
  • Connection check: the hosts page and the setup assistant query the firewall once with the entered credentials when creating it. If that fails, nothing is saved, and the message names the reason (key rejected, insufficient privileges, certificate mismatch, no connection). Create anyway saves the host without the check, for example for a firewall behind NAT whose tunnel is not up yet. Through the API the check can be enabled with "verify_connection": true (off by default so that scripts can also register unreachable firewalls).