How can I allow IGMP-traffic in FirewallD?

Following a guide, the author allow IGMP-traffic with IPtables with the following line:

sudo iptables -I INPUT -p igmp -j ACCEPT

But I want/need to do it with FirewallD. I’ve looked everywhere and got nothing. Can anyone tell me?

Thanks in advance.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m uncertain if firewalld has built in support for IGMP. Though you could use firewall-cmd’s direct options which allow you to use a syntax much the same as IP tables. This should do what you’re looking for:

firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p igmp -j ACCEPT