By default, pfSense supports the SNMPv1 and SNMPv2 protocols for monitoring via monitoring software (such as: Zabbix, Nagios, ...).
However, these versions of the SNMP protocol are not secure and therefore require the use of difficult-to-guess community names and/or a separate network to limit possible attacks.
To overcome this security problem, you can use the SNMPv3 protocol using a third-party package available for pfSense.
Before you can use the SNMPv3 protocol (which necessarily uses the same port as previous versions of SNMP), you must disable the SNMP protocol installed natively in pfSense.
To do this, go to: Services -> SNMP.
On the "SNMP" page that appears, simply uncheck the "Enable the SNMP Daemon and its controls" box, then click the "Save" button (at the bottom of the page).
To install the "net-snmp" package, go to: System -> Package Manager.
Go to the "Available Packages" tab, search for "NET-SNMP" and click the "Install" button for the "net-snmp" package.
Confirm the installation of this package "pfSense-pkg-net-snmp" by clicking on Confirm.
Wait while the "pfSense-pkg-net-snmp" package is installed.
Once the package is installed, the "pfSense-pkg-net-snmp installation successfully completed" message will appear.
Once the package is installed, go to: Services -> SNMP (NET-SNMP).
To begin, in the "General" tab, check the "Check to enable snmpd" box.
At the bottom of the page, click on: Save.
Then, in the "Host Information" tab, fill in the 4 proposed fields:
Note: this information is purely for information purposes.
At the bottom of the page, click on: Save.
In the "Users" tab, you will see that a "manager" user exists by default.
Click "Add" to add one.
In the "SNMPv3 User" section, indicate:
In the "SNMPv3 Access Control" section, you can specify:
In the "SNMPv3 USM User Configuration" section, you can configure:
At the bottom of the page, click Save.
The desired user has been created.
To install Zabbix, refer to step "2. Installing Zabbix (for monitoring via SNMP)" of our tutorial on monitoring pfSense with Zabbix.
Once Zabbix is installed, go to the "Monitoring -> Hosts" section and click "Create host" (top right).
In the "New Host" window that appears, indicate:
For the SNMP interface that appears, you can configure the settings:
Once the settings are configured, click "Add".
Your "pfsense" host appears and for the moment, SNMP availability appears grayed out.
A little later, SNMP availability will turn green.
Otherwise, it will turn red and you will just need to hover over the word "SNMP" to see the error encountered.
If you click on the "Latest data" link for your "pfsense" host, you will see a page with the various data recoverable via SNMP.
By clicking on the "Graphs" link on your "pfsense" host, you will be able to obtain graphs regarding pfSense network usage for the desired time period.
Note that you might also get more information by using the Zabbix agent as well.
To do this, you will need to install the Zabbix agent on pfSense and add an "agent" interface for your "pfsense" host that you have just added in the Zabbix interface.
To do this, refer to the step "4. Configure Zabbix 6 to monitor pfSense via Zabbix agent and SNMP" of our previous tutorial concerning monitoring pfSense via Zabbix and SNMPv2.
Firewall 6/25/2025
Firewall 8/13/2025
Firewall 8/6/2025
Firewall 5/15/2025
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment