Skip to content

Instantly share code, notes, and snippets.

@roc-ld
Forked from juliojsb/iptables-multicast.sh
Created October 15, 2024 13:12
Show Gist options
  • Select an option

  • Save roc-ld/719208ed7a4a08924d8ec4c0390817e5 to your computer and use it in GitHub Desktop.

Select an option

Save roc-ld/719208ed7a4a08924d8ec4c0390817e5 to your computer and use it in GitHub Desktop.
Allow multicast communications in iptables
Run the following:
iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
iptables -A FORWARD -m pkttype --pkt-type multicast -j ACCEPT
iptables -A OUTPUT -m pkttype --pkt-type multicast -j ACCEPT
Or:
iptables -A INPUT -s 224.0.0.0/4 -j ACCEPT
iptables -A FORWARD -s 224.0.0.0/4 -d 224.0.0.0/4 -j ACCEPT
iptables -A OUTPUT -d 224.0.0.0/4 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment