How can I allow IGMP-traffic in FirewallD?

April 1, 2015 894 views
Firewall CentOS

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.

1 Answer

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
Have another answer? Share your knowledge.