Skip to main content

Firewall preparation

Traffic Monitor connects to the firewall with a dedicated admin account and reads data over the XML API. Web UI, command line and REST API access are not needed, so they are all turned off.

PermissionWhy it is needed
XML API → Operational RequestsRead active sessions, interface counters, HA state and IP-to-user mappings
XML API → User-ID Agent (optional)Add IP addresses to dynamic address groups and remove them (Dynamic group)

1. Create a limited admin role profile​

  1. Go to Device → Admin Roles and click Add at the bottom of the list.
  2. Enter a Name, for example NascellaApiProfile.

Web UI tab​

Set every item to Disable (red cross), as in the screenshot. Click an item's icon to change its state.

Web UI tab: all items disabled

XML API tab​

Enable Operational Requests. If you will use dynamic groups, enable User-ID Agent too. Leave all other items disabled.

XML API tab

Using the same profile as VPN Reporter

The screenshot shows the profile also used by VPN Reporter, where Log is enabled as well. Traffic Monitor does not need Log, but it does no harm if you share one profile between the two products.

Command Line tab​

Select None.

Command Line tab: None

REST API tab​

Leave every item disabled.

REST API tab: all items disabled

Click OK to save the profile.

2. Create the admin account​

  1. Go to Device → Administrators and click Add.
  2. Enter the account Name, for example nascella-api-user.
  3. Enter a strong password in Password and Confirm Password.
  4. In Administrator Type, select Role Based, select the profile you created in the previous step (NascellaApiProfile) in Profile, and click OK.
  5. Commit the changes.

Administrator: Role Based with NascellaApiProfile selected

User names are case-sensitive

PAN-OS treats upper- and lower-case letters as different characters. Enter the account name in Traffic Monitor exactly as you typed it in the Name field — NascellaApi and nascellaapi are different accounts.

Use the same account on both HA devices

In a high-availability pair, create the same account and password on both firewalls. Traffic Monitor connects to both devices and finds the active one itself. Panorama is not supported; the account must be on the firewalls.

You do not need to create an API key: Traffic Monitor gets it from the firewall with the user name and password you enter when adding a site.

3. User-ID (optional)​

To see traffic by user name, User-ID must be configured on the firewall. Traffic Monitor only reads the existing IP-to-user mappings; it does not need its own User-ID source.