Edit: /etc/sysconfig/iptables
Add the following lines AFTER the line “# dlm”
-A RH-Firewall-1-INPUT -p udp --dport 161 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 162 -j ACCEPT
Execute:
systemctl restart iptables.service
systemctl enable snmpd.service
systemctl restart snmpd.service
Test localhost:
snmpwalk -v 2c -c public 127.0.0.1