Centos 7 and firewalld to allow SNMP
We need to add a profile for SNMP to use UDP 161. Edit /etc/firewalld/services/snmp.xml <?xml version=”1.0″ encoding=”utf-8″?> <service> <short>SNMP</short> <description>SNMP protocol</description> <port protocol=”udp” port=”161″/> </service> 2. Reload the firewall: firewall-cmd –reload 3. Add it to the public zone: firewall-cmd –zone=public –add-service snmp –permanent 4. Reload the firewall again. It should be working now.