Run the local TACACS+ server in a container

In this topic, you will learn how to deploy the Portnox™ Cloud local TACACS+ server using Docker containers.

For information about how the Portnox Cloud TACACS+ service works, see the following topic: How does the Portnox Cloud TACACS+ service work?.

Important:
The TACACS+ Docker container must be deployed with host networking (--network host). TACACS+ relies on the original NAS source IP address for policy assignment, device identification, and accurate logging. When host networking is not used, Docker performs NAT and the original source IP address is not preserved. In this configuration, NAS-based policies and logging cannot function correctly. Deployments without host networking, such as most managed cloud container services, are discouraged but can be attempted at the customer’s own risk. Docker Desktop on Windows doesn’t preserve the source IP address even with host networking, so it is not supported.
  1. In the Cloud portal top menu, click on the Settings option.

  2. In the Cloud portal left-hand side menu, click on the Services > LOCAL TACACS+ SERVICE > Local TACACS+ profile option.

  3. In the Local TACACS+ profile section, click on the Add new TACACS+ profile (Docker) link.

    Your browser will display the Add new Local TACACS+ cluster heading with configuration fields for the new local TACACS+ instance.

  4. In the Name field, enter a name for your local TACACS+ server.

    This name is also used as the hostname that your NAS devices will use to contact the local TACACS+ server. We recommend using the IP address of the Docker host in NAS configuration instead.

  5. Click on the  👁  icon and hold it to note down the value of the Shared Secret field to use it when configuring NAS devices to contact this local TACACS+ server.

    If you want to generate a different shared secret, click on the Regenerate link below the field.

    Note:
    After you save the server settings and view them, you can use the  ⧉  icon to copy the value to the clipboard.
  6. Click on the Save button to save the configuration.

    Note:
    If you click on the Save And Download button instead, your browser will download the ISO image with the configuration. You can set up the local TACACS+ server using this ISO file but it’s more difficult and in most cases unnecessary. Instead, we recommend that you set up the local TACACS+ server using the environment variables only.
  7. Click on the row that represents the newly added TACACS+ server to display more information.

  8. Copy the environment variable values into a temporary text file for later.
    1. Click on the  ⧉  Copy command link below the Docker command to copy the command to the clipboard.
    2. Paste the command into a text editor of your choice.
    3. Copy the following values from the command and paste them into a separate temporary text file.
      • TACACS_GATEWAY_ORG_ID=value_of_the_gateway_org_id
      • TACACS_GATEWAY_PROFILE=value_of_the_gateway_profile
      • TACACS_GATEWAY_TOKEN=value_of_the_gateway_token
    Note:
    To use the standard configuration, paste and run the copied command. To build a custom command, for example with a Docker volume, use the three values instead.
  9. Deploy the local TACACS+ Docker image on Linux.

    For more information, see the following topic: Deploy the local TACACS+ server container using Docker on Linux.