Zenarmor - MS Active Directory Integration for OPNsense platforms - Displaying Users in Reports
Zenarmor supports Active Directory (AD) and OPNsense Captive Portal for username resolution. You can quickly integrate your Active Directory with Zenarmor running on the OPNsense firewall to display usernames and groups in analytics if you have Active Directory. Using Zenarmor AD agent you can define custom policies for your specific AD groups and users and empower your network security with User/Group based filtering.
To start to get the benefit of user-based filtering, you can easily integrate your Active Directory with Zenarmor by following the 3 steps explained below:
-
Download Zenarmor AD Agent
-
Install Zenarmor AD Agent to Domain Controller (DC)
-
Configure Zenarmor AD Agent
To take advantage of user-based filtering, you must upgrade to one of the premium editions. You must have a Zenarmor Business Edition subscription for AD integration.
You may need to install NoMAD tool on your MacOS clients from https://nomad.menu/
if you encounter name resolution problems for them.
1. Download Zenarmor AD Agent
To download the latest Zenarmor Active Directory Agent installation file, you may follow the next steps:
-
Connect to the Zenarmor Active Directory Agent Download page via your favorite browser on your Domain Controller (DC).
-
Click the Download Now button on the download page.
Figure 1. Zenarmor AD Agent Download Page
-
Click on the Save button in the dialog box to start downloading the compressed installation file, like
adagent-1.3.8.zip
.Figure 2. Downloading Zenarmor AD Agent (adagent-1.3.8.zip)
2. Install Zenarmor AD Agent
After downloading the Zenarmor AD Agent installation file on your Domain Controller (DC), you may follow the instructions given below to install the Zenarmor AD Agent:
-
Extract the compressed installation file,
adagent-1.3.8.zip
, on your Domain Controller (DC). -
Navigate to the extracted directory, such as
adagent-1.3.8
. -
Click on the
setup
installation file with the right mouse button. This will open a dropdown menu. -
Click on the
Run as administrator
. This will start Zenarmor AD Agent Setup Wizard.Figure 3. Running setup as administrator
-
Click on the Next button to proceed with the installation wizard.
Figure 4. Zenarmor AD Agent Setup Wizard
-
You can select the installation path and user permissions or you can proceed with the default preferences. You may click the Browse... button to change the installation folder. The default installation folder is
C:\Program Files (x86)\Zenarmor\Zenarmor Active Directory Agent\
.Figure 5. Selecting Zenarmor AD Agent Installation Folder
-
You may check the available disk space on your server by clicking on the Disk Cost... button. This will list the available disk partitions on your Domain Controller (DC) along with available and required disk space.
Figure 6. Zenarmor AD Agent Wizard - Viewing Available Disk Space
-
You may leave other settings as default to install the Zenarmor AD agent for
Everyone
. -
Click Next to proceed the wizard.
-
Click Next to confirm the installation.
Figure 7. Confirming Zenarmor AD Agent Setup
-
Click Close after the installation is complete. This will automatically launch the Zenarmor Active Directory Agent application for configuration.
Figure 8. Zenarmor AD Agent Setup Wizard- Installation Completed
3. Configuring Zenarmor AD Agent
You may easily configure the Zenarmor AD Agent by following the steps below:
-
You may leave the Platform option as default, OPNsense, for your OPNsense node or select Other Platforms (Linux, FreeBSD, pfSense) option depending on your Zenarmor platform.
Figure 9. Zenarmor AD Agent Configuration
-
Set Host IP by typing the IP address of your Zenarmor platform, such as OPNSense Software firewall, with
https://
prefix. For example, you may typehttps://10.10.10.1
if your Zenarmor firewall IP address is10.10.10.1
. -
You may leave the Port option as default which is
443
. -
Connect your OPNsensefirewall via Web UI. Since you must enable API and generate a Zenarmor AD Agent Authentication Token for your firewall.
-
Navigate to the Settings > Active Directory Integration.
-
Click on the +Generate API key button to generate an API key. This will automatically create a new Zenarmor AD Agent authentication token.
Figure 10. Creating Zenarmor AD Agent Authentication Token
-
Copy the newly created Zenarmor AD Agent authentication token.
Figure 11. Zenarmor AD Agent Authentication Token List
tipIf you need to remove or disable/enable the created Zenarmor AD Agent authentication token, you may easily perform these tasks using the related button on Active Directory Integration pane.
To disable the Zenarmor AD Agent authentication token, click the Enabled button in the Token pane.
To enable the Zenarmor AD Agent authentication token, click the Disabled button in the Token pane.
To delete the Zenarmor AD Agent authentication token, click the Revoke button in the Token pane. This will open a dialog box for confirmation. Click the Revoke button to confirm token removal.
-
Return back to the Zenarmor AD Agent Configuration window and fill in the API Token field by entering the newly created Zenarmor AD Agent authentication token.
-
Click the Add Host to List button to add your Zenarmor host URL and token to the list. This will pop up a notification window.
-
Click OK to close the notification window and proceed with the configuration.
tipIf you need to remove or change the Zenarmor platform settings from your Active Directory Agent configuration, you may easily delete host settings by following the next steps:
- Right-click on the Host in the list. This will open a toolbox.
- Click on the Remove Record button. This will open a dialog box.
- Click Yes in the dialog box to confirm the Host removal.
-
You may enter one IP address per line in the Exclude Hosts pane. Zenarmor will not perform username resolution for the IP addresses in the Exclude Hosts list.
-
You may set Log Level or leave it as default,
INFO
. AvailableLog Level
options are as follows:- ALL
- DEBUG
- INFO
- WARN
- ERROR
- FATAL
- OFF
-
Click on the Service Status button to enable the service.
Figure 12. Enabling Zenarmor AD Agent Configuration
-
Click
Save
to activate the settings. This will popup a notification window. -
Click OK to close the notification window.
Figure 13. Notification for Zenarmor AD Agent Configuration Save
Now, you can configure user-based filtering policies and view usernames in Zenarmor reports.
Hands-on video for Downloading-Installing-Configuring Zenarmor AD Agent
You can access the hands-on installation and configuration steps from next video.
Video on Zenarmor User-based Filtering and Reporting Capabilities
Here is a video about the Zenarmor User-based Filtering and Reporting Capabilities.