Configure Palo Alto Networks firewalls to use the Portnox Cloud TACACS+ server

In this topic, you will learn how to configure a Palo Alto Networks firewall to authenticate and authorize administrators with the Portnox™ Cloud local TACACS+ server.

Before you begin, make sure that you have the following:

  • A local TACACS+ server, deployed as a virtual machine or a container, and online in Portnox Cloud.

    For more information, see the following topics: Set up a local TACACS+ server using a virtual machine, Run the local TACACS+ server in a container.

  • The shared secret of the local TACACS+ server.

    To view it, go to Settings > Services > LOCAL TACACS+ SERVICE, click on the Edit link next to your server, and click on the  👁  icon next to the Shared Secret field.

  • A local administrator account on the firewall for emergency access (break-glass account).

Important:
TACACS+ authenticates administrators with credentials (username and password). The Portnox Cloud accounts of firewall administrators must exist and must be able to authenticate with credentials. If your Entra ID access policy enforces multi-factor authentication, set up an MFA bypass. Without it, Portnox Cloud alerts show a successful authentication but SSH keeps asking for the password. For more information, see the following topic: Bypass multi-factor authentication in Entra ID. If you use Google Workspace accounts, administrators must log in with an app password, not their regular password. For more information, see the following topic: Integrate with Google Workspace. If you have only a few firewall administrators, the easiest option is to create Portnox accounts for them. These accounts use a password that you set in Portnox Cloud. For more information, see the following topic: Create an account.
Important:
This guide gives general instructions for integrating Portnox Cloud with specific third-party devices. We try to provide useful examples for common models, but settings can differ between manufacturers, models, and environments. Because of this, we cannot guarantee these steps will work in every case. For questions or problems with TACACS+ setup – which is an industry standard and not specific to Portnox – or with device-specific settings and troubleshooting, we recommend checking the device manufacturer’s documentation and contacting their support team. Portnox Support can help when possible, but detailed setup of third-party devices is usually best handled by the manufacturer. We also recommend updating your device firmware to the latest version, as old firmware can cause issues.
Important:
All values in this configuration are examples. Make sure to adjust the configuration to your individual profile names, TACACS+ server addresses, ports, and keys.
  1. On the firewall, go to DEVICE > Server Profiles > TACACS+ and click on the Add button.

  2. In the TACACS+ Server Profile window, configure the server profile.

    1. In the Profile Name field, enter a name for the profile.

      In this example, we used the name Portnox TACACS but you can use any name you like.

    2. In the Timeout field, enter 30.
      Note:
      If you use multi-factor authentication (MFA), the timeout must cover the time that administrators need to confirm the MFA push request. If you don’t use MFA, you can keep this timeout shorter.
    3. In the Authentication Protocol field, select the PAP option.
    4. In the Servers section, click on the Add button.
    5. In the Name field, enter a name for the server.

      In this example, we used the name Portnox TACACS but you can use any name you like.

    6. In the TACACS+ Server field, enter the IP address of the local TACACS+ server.
    7. In the Secret and Confirm Secret fields, enter the shared secret.
    8. In the Port field, keep the default value: 49.
    9. Click on the OK button.
  3. Go to DEVICE > Authentication Profile and click on the Add button.

  4. In the Authentication Profile window, configure the authentication profile.

    1. In the Name field, enter a name for the profile.

      In this example, we used the name Portnox TACACS Auth but you can use any name you like.

    2. In the Type field, select the TACACS+ option.
    3. In the Server Profile field, select the TACACS+ server profile that you created earlier.
    4. Select the Retrieve user group from TACACS+ checkbox.
    5. Leave the User Domain field empty.
    6. In the Username Modifier field, keep the default %USERINPUT% option.
      Note:
      With this setting, the firewall sends the username exactly as the administrator types it. Administrators log in with their full email address, for example, ssh kosh@vorlon.com@10.0.0.242. If all administrators use the same domain, you can enter the domain in the User Domain field and select the %USERINPUT%@%USERDOMAIN% option instead. Administrators then log in with the username only, for example, ssh kosh@10.0.0.242, and the firewall adds the domain.
  5. Click on the Advanced tab and configure the allow list.

    1. In the Allow List section, click on the Add button and select the user groups that can authenticate with this profile.

      In this example, we selected all but you may want to select specific user groups instead.

    2. Click on the OK button to save the authentication profile.
  6. Go to DEVICE > Setup > Management and click on the  ⚙  icon in the Authentication Settings section.

  7. In the Authentication Settings window, select the authentication profile for administrators.

    1. In the Authentication Profile field, select the authentication profile that you created earlier.
      Important:
      The firewall uses this profile only for usernames that are not defined as local administrators. Do not create local administrator accounts on the firewall for Portnox Cloud users. A local account with the same username overrides Portnox Cloud authorization.
    2. Click on the OK button.
  8. In the top right corner, click on the Commit button, and in the Commit window, click on the Commit button.

  9. In Portnox Cloud, go to Policies > TACACS+ AUTHORIZATION POLICIES and click on the Create policy button.

  10. In the policy editor, configure the TACACS+ authorization policy for the firewall.

    1. In the Policy Name field, enter a name for the policy.

      In this example, we used the name Palo Alto superuser but you can use any name you like.

    2. On the left-hand side, keep the default Session-based > option selected.
    3. In the Privilege level field, enter 15.
    4. In the Allowed services section, click on the Add new link, enter PaloAlto, and click on the Add button.
    5. In the Custom attributes section, click on the Add new link, enter protocol as the Key and firewall as the Value, and click on the Add button.
    6. In the Custom attributes section, click on the Add new link, enter PaloAlto-Admin-Role as the Key and the role name as the Value, and click on the Add button.

      Enter the role name in lower case. The role name must match a dynamic role or a custom admin role profile on the firewall.

      In this example, we used the role superuser.

    7. Click on the Save changes button.

    For more information about configuring TACACS+ policies, see the following topic: Create or edit a TACACS+ authorization policy.

  11. In Portnox Cloud, go to Groups >  ⋮  > Group policies for the group for firewall administrators.
    Note:
    If you don’t have a group yet, create the group first. For more information, see the following topic: Create a group.

  12. Scroll down to the TACACS+ policies section and click on the Add a TACACS+ policy link.

  13. In the TACACS+ policies section, configure the new policy row.

    1. In the TACACS+ POLICY column, select the policy that you created earlier.
    2. In the APPLIED TO column, click on the  ✎  icon.
  14. In the APPLY TACACS+ POLICY window, apply the policy to the firewall.

    1. Create a rule with the following values: NAS, IpAddress, Equals, and the IP address of the firewall.

      In this example, we used the IP address 10.0.0.242.

    2. Click on the Save button.

Administrators log in to the firewall with their Portnox Cloud credentials. The firewall assigns the administrator role from the Portnox Cloud TACACS+ authorization policy. Portnox Cloud logs each login.

If administrators cannot log in, see the following topic: How to troubleshoot problems with TACACS+.