How to Integrate RADIUS (NPS) Identities with the Palo Alto User-ID Agent

This is a very common use case: We have a Wi-Fi network where access is controlled through authentication against Active Directory.
Usually, this integration is implemented by deploying a RADIUS server such as Windows Network Policy Server (NPS).
The problem: We want to enforce traffic control on a Palo Alto NGFW by user identity, but the devices connecting to the Wi-Fi network are not domain-joined or are mobile devices. Therefore, the User-ID agent has no visibility into these users.
The solution: It is possible to send the information of RADIUS-authenticated users to the User-ID agent, whether it is the firewall-integrated agent or the Windows agent.
How: The Palo Alto User-ID agent has the ability to receive login information via Syslog; we just need to find a way to export the NPS logs in the right format and forward them via Syslog to the agent.
Step 1: Configure Windows NPS logs
-
Open the NPS console.
-
In the navigation menu, click Policies > Accounting.
-
In the Log File Properties section, click Change Log File Properties.
-
In the dialog box, click the Settings tab.
-
In the Log the following information section, enable the following options:
- Accounting requests
- Authentication requests
- Periodic accounting status
- Periodic authentication status.
-
In the Logging failure action section, enable the option If logging fails, discard connection requests.
-
Click the Log File tab.
-
In the directory field, choose the location where the NPS logs will be stored. I suggest using a new directory exclusively for NPS logs since the default location contains logs from other services.
-
In the Format drop-down, choose DTS Compliant. This is an XML format that will be easier to use later.
-
In the Create a new log file section, choose Daily.
-
Enable the option When disk is full delete older log files.
-
Click OK.
-
Verify that logs are generated in the chosen directory after users authenticate via RADIUS.

Step 2: Install NXLog to monitor NPS logs and forward them via Syslog
- Download the latest version of NXLog; the Community Edition is free: https://nxlog.co/products/nxlog-community-edition/download.
- Install NXLog on the NPS server.
- Go to C:\Program Files (x86)\nxlog\conf and replace nxlog.conf with the following content:
Remember to replace the path where NPS logs are stored in Input in_NPS and the destination Syslog IP and port in Output User-ID.
Step 3: Configure the User-ID Agent (Windows) to receive Syslog
-
Open the agent configuration as administrator.
-
Go to Setup > Edit.
-
Select the Syslog tab and enable Enable Syslog Service.

-
Add the login and logout event profiles by clicking Add.
-
Enter a profile name and choose the Regex type.
-
In Event Regex, enter a text string that appears exclusively in login events. In my case, I chose Acct-Authentic.
-
In Username Regex, enter the regex that extracts the username from the event. In my case, the user appears in the “User-Name”: field, matched with the regex:
"User-Name":"([a-zA-Z0-9/]+)" -
In Address Regex, enter the regex that extracts the IP address from the event. In my case, the IP appears in the “Framed-IP-Address”: field, matched with the regex:
"Framed-IP-Address":"([^"]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}) -
Click OK to save the profile.

-
Create a new profile or clone the Login one and change the name. This will be used to identify logout events.
-
In Event Regex, enter a text string that appears exclusively in logout events.
-
The username and address fields should remain the same unless logout events arrive in a different tag.
-
Now go to Discovery > Add.
-
Enter a name to identify the sender.
-
Enter the IP of the NPS server.
-
In Server Type, choose Syslog Sender.
-
In Default Domain Name, enter the AD domain.
-
In Filters, add the two profiles we just created and specify which one is for login and which one is for logout.
-
Click OK to save.

-
At the top, click Save and then Commit to save the changes.
-
Verify under Monitoring that users who sign in via RADIUS appear, and then confirm that the information is visible on the firewalls integrated with the agent.
Conclusions
This article presents a specific configuration for integrating RADIUS with User-ID, but with minimal changes it is possible to build similar integrations with non-NPS RADIUS servers or integrate directly with the User-ID agent on the NGFW.