Skip to content

Installing nuVPN Gateway on Linux

Install with one command on a Linux server in the cloud or at the office.

  • Ubuntu 22.04 or 24.04.
  • We recommend a dedicated virtual machine that runs no other services.
  • sudo privileges.
  • A public IP address or port forwarding from the office router to the server.
  • An installation code from the partner panel.
  1. Copy the installation command

    The license page in the partner panel shows the full installation command, including your code. It looks like this:

    Terminal window
    curl -fsSL <INSTALLER_URL> | sudo bash -s <INSTALL_TOKEN>
  2. Run the command on the server

    The installer checks whether the VPN address range overlaps with a local network. If it does, the installer automatically switches to the first available range without asking for confirmation. It also detects the server's office networks so that only traffic to those networks goes through the gateway.

  3. Save the login details

    When installation is complete, the console address and an initial password are displayed. The password is shown only once, and you must change it when you first sign in.

  4. Open the UDP port

    The UDP port is displayed when installation is complete. Allow inbound traffic to the server on this port in your cloud provider's firewall or on the office router.

The console is accessible only from the internal network or through the VPN, not from the internet. The gateway does not listen for console connections on a public address.

  • The console uses a certificate generated during installation. Your browser will show a warning on your first visit. Compare the fingerprint shown in the browser with the one displayed during installation.
  • For your first sign-in, sign in as admin with the initial password, choose a new password and set up a second factor: approval in the nuVPN app on your phone or an authenticator app. Then invite the other administrators by name. See The local console.
  • After several failed sign-in attempts, sign-in is locked for a limited time. You can clear the lock from the server.
  • sudo nuvpn-gateway status
    License status, connected devices, and console addresses
  • sudo nuvpn-gateway users
    Console users and their roles
  • sudo nuvpn-gateway unban --all
    Unblock addresses blocked during console sign-in
  • sudo nuvpn-gateway reset-password --user <name>
    A new one-time password for a console user and a reset of their second factor. Without --user, the command resets the first owner
  • sudo nuvpn-gateway uninstall
    Remove the gateway completely from the server
  • An outage at nuVPN does not disconnect users who are already connected, and you can still revoke access. User revocations in the local console are enforced even without a connection to nuVPN servers. You cannot generate new profiles until the service is restored.
  • If the directory is unavailable, no one's access is revoked. Synchronization waits until the directory is available again.
  • Restarting the server or service does not delete users. The gateway starts with the same user list, and devices reconnect.
  • A failure of the gateway or of the connection to it never leaves employees without internet. The nuVPN app blocks only the tunnel to the office, so ordinary browsing on the device continues to work.

The gateway updates automatically according to the update policy and maintenance window set by the partner. If a new version does not start properly, the gateway reverts to the previous version and devices continue working. The Maintenance page in the console shows the installed version, the next update and the result of the last update. The server administrator is responsible for updating the server's operating system. See Updates and rollbacks.