Default iptables has UDP Multicast disabled
I have been trying to figure out how to program a UDP Multicast server, but no matter what I did I could not make it work, until I tried disabling iptables and suddenly everything works fine. So my question is, why is this disabled by default (I have never touched iptables)? And how do I insert a rule to make it work?
Output of iptables -L looks like this. I suppose there should be a rule in the INPUT table (before REJECT) to accept udp multicast packets.
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination