I’ve configured firewalld using the public zone as default zone, and the interface eth0 is part of the internal zone.
I’ve enabled the snmp service, I get no error messages when firewalld starts, but SNMP queries are still being blocked:
kernel: filter_IN_internal_REJECT: IN=eth0 OUT= MAC=00:50:56:bd:3b:f6:08:f1:ea:5f:e6:00:08:00 SRC=172.24.6.22 DST=172.20.16.35 LEN=72 TOS=0x00 PREC=0x00 TTL=127 ID=26051 PROTO=UDP SPT=55183 DPT=161 LEN=52
The service definition for snmp (/usr/lib/firewalld/services/snmp.xml) is:
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>SNMP</short>
<description>Simple Network Management Protocol is an "Internet-standard protocol for managing devices on IP networks". Enable this service if you run SNMP agent (server).</description>
<port protocol="tcp" port="161"/>
<port protocol="udp" port="161"/>
</service>
And I’ve added this to zones/public.xml:
<service name="snmp"/>
Most services added the same way do work; one thing that does not work is this service I defined myself:
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>multicast-query</short>
<description>Multicast Query (IGMP)</description>
<protocol value="igmp"/>
<destination ipv4="224.0.0.0/4" ipv6="ff00::00/9"/>
</service>
kernel: filter_IN_internal_REJECT: IN=eth0 OUT= MAC=01:00:5e:00:00:01:08:f1:ea:5f:07:00:08:00 SRC=172.20.17.252 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=55709 PROTO=2
I’m kind of clueless; what could be the problem?