Would you like to learn how to install Pfsenst net-snmp package and enable the SNMP feature? In this tutorial, we are going to show you all the steps required to perform the Pfsense net-snmp installation and configuration in 5 minutes or less.
• Pfsense 2.4.4-p3
PFsense Related Tutorial:
On this page, we offer quick access to a list of tutorials related to pfSense.
PFSense – NET-SNMP Configuration
Open a browser software, enter the IP address of your Pfsense firewall and access web interface.
In our example, the following URL was entered in the Browser:
• https://192.168.15.11
The Pfsense web interface should be presented.
On the prompt screen, enter the Pfsense Default Password login information.
• Username: admin
• Password: pfsense
After a successful login, you will be sent to the Pfsense Dashboard.
Access the Pfsense Services menu and select the SNMP option.
Make sure the following option is disabled: Enable the SNMP Daemon and its controls
We need to make sure the default SNMP service is disabled.
Next, we need to install the Pfsense NET-SNMP package.
Access the Pfsense System menu and select the Package manager option.
On the package manager screen, access the Available packages tab.
On the Available packages tab, search for snmp and install the Net-snmp package.
Wait the net-snmp installation to finish.
Access the Pfsense Services menu and select the SNMP(NET-SNMP) option.
On the General tab, enable the SNMPD service.
Click on the Save button on the botton part of the screen.
Access the Host information tab, you need to set a SNMP contact and a SNMP location.
Click on the Save button on the botton part of the screen.
Access the Communities tab and click on the Add button.
On the SNMP communities screen, perform the following configuration:
• Community name – Enter a SNMP community name
• Read/Write Access – Read-only
• Address family – IPV4
Click on the Save button on the botton part of the screen.
In our example, we set a snmp community named GokuBlack.
You have successfully enabled the Pfsense NET-SNMP service.
You have successfully configured the Pfsense NET-SNMP service.
PFSense SNMP – Firewall Configuration
By default, the PFsense firewall does not allow external SNMP connections to the WAN interface.
In our example we are going to create a firewall rule to allow the SNMP communication.
Access the Pfsense Firewall menu and select the Rules option.
Click on the Add button to add a rule to the Top of the list.
On the Firewall rule creation screen, perform the following configuration:
• Action – Pass
• Interface – WAN
• Address family – IPV4
• Protocol – UDP
On the Source configuration screen, you need to define the IP address that should be allowed to perform SNMP communication with the Pfsense firewall.
In our example, any computer is able to perform SNMP communication with the firewall.
On the Firewall destination screen, perform the following configuration:
• Destination – Wan address
• Destination port range- From SNMP 161 to SNMP 161
On the Firewall Extra options screen, you may enter a description to the firewall rule.
Click on the Save button, you will be sent back to the Firewall configuration screen.
Now, you need to reload the firewall rules to apply the SNMP configuration.
Click on the Apply changes button to reload the firewall configuration.
You have finished the PFsense firewall configuration to allow SNMP communication using the WAN interface.
PFSense – Testing the SNMP Configuration
To test the Pfsense SNMP configuration from a computer running Ubuntu Linux:
Use the following commands to install the required packages and test the Pfsense SNMP communication.
Keep in mind that you need to change the SNMP community name and the PFsense IP address to reflect your environment.
To test the Pfsense SNMP configuration from a computer running Windows:
Download the SNMP Tester aplication, and test the communication using the following parametes:
• Community name: Your SNMP community
• Device IP: Your PFsense server IP address
• SNMP Version: V2C
• Select Request type: Scan Interfaces
Here is an example from my Pfsense configuration.
You have successfully performed a Pfsense SNMP communication test.