Question

How can I allow IGMP-traffic in FirewallD?

Posted April 1, 2015 2.5k views
CentOSFirewall

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.

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.

×
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
Submit an Answer