If you have access to multicast television in your network (such as UNINETT’s IPTV offer), and you’re running Ubuntu’s «Uncomplicated Firewall» aka. ufw, you’ll find that you’re unable to actually watch any of the channels. Here’s how you can adjust your firewall to receive the UDP multicast traffic:
sudo ufw allow in proto udp to 224.0.0.0/4 sudo ufw allow in proto udp from 224.0.0.0/4
This will take care of the coming and going UDP packets, but you also need to allow IGMP packets through. I haven’t found any command to make this change, so instead, you need to open up the file
/etc/ufw/before.rules
and add the following lines somewhere before the COMMIT line:
# allow IGMP -A ufw-before-input -p igmp -d 224.0.0.0/4 -j ACCEPT -A ufw-before-output -p igmp -d 224.0.0.0/4 -j ACCEPT
Now you can reload the firewall and you should be able to watch that glorious multicast IPTV.
Thanks!
Actually you don’t need to allow igmp because that is only needed on OUTPUT, not INPUT and with ufw OUTPUT default policy is ACCEPT.
This also means you don’t have to add:
sudo ufw allow in proto udp to 224.0.0.0/4
also, I’d think you must have meant:
sudo ufw allow out proto udp to 224.0.0.0/4
(though it isn’t needed)