Posted April 4, 2007
Install the net-snmp software.
cd /usr/ports/net-mgmt/net-snmp make install
Add firewall rules to prevent anyone other than you from communicating with your snmp daemon. If you're running mrtg at 126.96.36.199:
ipfw add 11 deny udp from me snmp to not 188.8.131.52 ipfw add 11 deny udp from not 184.108.40.206 to me snmp ipfw add 11 deny udp from any to me smux
Create a configuration file in /usr/local/etc/snmpd.conf.
Enable snmpd in /etc/rc.conf.
Make sure it's running.
tail /var/log/snmpd.log netstat -an|grep '*.161'