Nov 27, 2011
tom

multicast and iptables

Question

I have secured a linux box, starting with

iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

and after adding rules to enable specific protocols and streams.

  • Which are the correct rules to add multicast support ?

I am trying with these – for both client and server multicast :

iptables -A INPUT  -m pkttype --pkt-type multicast -j ACCEPT
iptables -A OUTPUT -m pkttype --pkt-type multicast -j ACCEPT
iptables -A INPUT  --protocol igmp -j ACCEPT
iptables -A OUTPUT --protocol igmp -j ACCEPT
iptables -A INPUT  --dst "224.0.0.0/4" -j ACCEPT
iptables -A OUTPUT --dst "224.0.0.0/4" -j ACCEPT

Linux 2.6.38-12 / iptables 1.4.10

  • Is there any internet service to test my multicast set ( pc + adsl router + provider ) ?

Answer

multicast over the global internet does not exist, it is unicast only.

If you wish to test multicast addresses, configure it within your own network.

Related posts:

  1. How to make iptables ALLOW rule for multicast?
  2. Stateful matching of multicast responses in iptables
  3. iptables Ubuntu VPS SSH rule
  4. iptables blocking DNS
  5. IPTables configuration help

Leave a comment