OpenBSD安装.NET-SNMP
1 安装SNMP
pkg_add ftp://ftp.usa.openbsd.org/pub/OpenBSD/6.4/packages/amd64/net-snmp
2 配置snmp
#vi /etc/rc.local
(使 SNMP 服务开机启动,添加如下内容)
if [ -x /usr/local/sbin/snmpd ];then echo
–n ‘snmpd’; /usr/local/sbin/snmpd
fi
#
3 添加防火墙策略
#vi /etc/pf.conf
block in all
pass on em0 udp to port 161
# pfctl -f /etc/pf.conf(载入 pf.conf 文件)
#pfctl –sr(显示当前的过滤规则)