Zenarmor Application Control on OPNsense
Zenarmor's Application Control engine uses App DB
to understand and classify the application a particular connection packets carry. The database contains dynamic signatures which hint the packet engine to be able to classify the connections more accurately.
To define application control for a policy on your network, you may follow the steps given below:
- Navigate to the Zenarmor → Policies on OPNsense Web UI.
- Click the name of the policy that you want to define application control.
- Go to App Controls tab.
It is important to note that web controls are given priority over application controls. As a result of blocking a connection based on web control rules, the corresponding sessions will not undergo application control processing, and related reports will not contain application control information.
Updating Application Database
APP DB
is maintained by the Zenarmor team. You can easily check and update the installed Application database on your OPNsense by following the next steps:
- Navigate to the Zenarmor → Settings → About on OPNsense Web UI.
- Click Check Update on the Software tab. This will check if there is a new Application database.
- Click Update Now button to install the available Application DB updates.
Figure 1.: Check & Update Application Database
Application Categorization
Applications are categorized by their type and listed in a click-to-open tree view for convenient access.
Figure 2. Application Categories
Searching Applications to Filter
There are quite many applications on the App controls page and sometimes it might be hard to just scroll down and navigate through all individual application categories. You can use the Search field to search and find a specific application. To search for an application in the list just type the application name in the search form.
Figure 3. Dynamic search for Zenarmor application control
If you don’t remember the name of the application that you want blocked/allowed, you can locate it by browsing under the category folder. To browse, you must click on the Category Name
in the All Categories
list.
Figure 4. Browsing Under an Application Category
Blocking an Application or a Category
Zenarmor allows you to block an application individually as well as an entire application category.
Blocking an application
Zenarmor allows you to block individual applications by clicking on the toggle button located on the right side of each application.
Figure 5. Blocking an Application
When you block some of the applications in a category, the total number of blocked applications for that category is shown on the Category list. In the next Figure, for example, 44 applications in the Instant Messaging
category are blocked.
Figure 6. Total number of blocked applications in the Instant Messaging
category
Blocking an entire category
You can also block the entire category by clicking on the toggle button located on the right of the category name.
Figure 7: Blocking Entire Application Category (Ad Tracker, Ads, and Blogs categories are blocked)
Defining/Updating A Custom Application
If you want to filter an application that doesn’t exist in our database/list, you can define a custom application.
Define New Custom Application
To define a new custom application you may follow the steps listed below:
-
Click on +Create Custom Apps button at the top right of the App Controls page.
-
Enter the name of the application (mandatory field).
-
Add a description for the application.
-
Select the category of the application (mandatory field).
-
Define the protocol type (mandatory field).
-
Specify the IP Addresses.
-
Specify the hostnames (hostname or IP is a mandatory field, one should be filled).
-
Specify the Ports.
-
After providing all necessary information for the new application, you need to accept sharing of this application signature with the Zenarmor team to improve App Database quality.
-
Click on the Create button.
Figure 8. Define New Custom Application
Update/Delete A Custom Application
On the Define new custom application
pop-up page you can update or delete existing custom applications also.
To update/delete existing custom applications you may follow the next steps:
-
Start typing the application name, such as
myapp
, in the search bar. -
Click Edit button with a pen icon next to the application name.
Figure 9. Editing Custom Application
-
Update the required fields.
-
Click the check box to accept the privacy policy of Zenarmor.
-
Click Update Application or, click Delete Application to delete the application.
Figure 10. Updating Custom Applications
For managing the application list easily you can use the Display custom applications only toggle button to show only the custom-created applications.
Figure 11. Displaying Custom Applications Only
Activating the rules
When you're ok with the changes you made, click on the Apply Changes button at the top right corner of the screen to activate the rules.
Testing the results
The rules go into action immediately after you hit the Apply Changes button. The request silently blackholed on the user's end.
Testing MSN before the Ads blocked
Figure 12. MSN homepage with ads
MSN Homepage after the Ads blocked by Zenarmor silently
Figure 13. MSN homepage without ads