A tutorial on how to get Swisscom blue TV working with the UDM and Ubiquiti Switches. Original forked from peacey/udm-telus an adpoted for Swisscom blue TV
Swisscom blue TV uses multicast to deliver their TV streams to the Swisscom blue TV boxes. The UDM and UDM-PRO can do multicast routing since version 1.11.0 and above, but it has to be configured manually through the command line. If not configured, TV channels will only play for 10 seconds before stopping if you are watching linear TV, replay will always work.
This tutorial will show you how to install and configure igmpproxy for Swisscom blue TV, and how to connect your blue TV Box to the UDM-PRO. Following this tutorial successfully will allow you to watch Swisscom blue TV without interruption with your Ubiquiti equipment.
Most of this tutorial uses the new UI, so it is recommended to follow this tutorial with the new UI unless you know where the options are in the old UI. The UDM Pro and UDM Base are both supported.
Make sure you check the following prerequisites before trying the other steps:
The kernel on your UniFi device must support multicast routing in order to support IPTV:
This step is optional but recommended so that Swisscom blue TV traffic does not flood your other networks. Creating a separate VLAN will allow us to isolate IPTV traffic to just this network.
In your UDM-PRO network controller, go to Settings -> Networks -> Add New Network. Set Name to IPTV. Change the following options under Advanced.
Hit Add Network to save.
Note if you are using the SFP+ port for your Internet (WAN2) and enabled IPv6, you need to change the IPv6 Prefix Delegation Interface option in the old UI to WAN2. This option is not available yet in the new UI. To change this option, do the following:
Put your Swisscom TV Box on the new VLAN network by changing the port profile to IPTV on the switch ports connected to your Swisscom TV box.
Add the IPTV Multicast Rule to allow IPTV multicast traffic into your WAN.
Add the IGMP Rule to allow IGMP traffic to travel across your WAN.
Your UDM must be updated to at least version 1.11.0 or above to use igmpproxy.
SSH into your UDM. Replace 192.168.1.1 with your UDM's IP.
ssh root@192.168.1.1
Download igmpproxy and configuration file.
mkdir /mnt/data/igmpproxy
cd /mnt/data/igmpproxy
curl -Lo igmpproxy https://raw.githubusercontent.com/bprskalo/udm-blueTV/main/igmpproxy
curl -Lo igmpproxy.conf https://raw.githubusercontent.com/bprskalo/udm-blueTV/main/igmpproxy.conf
chmod +x igmpproxy
The default igmpproxy.conf uses eth9 (WAN2 SFP+ port) for the upstream network, and br70 (VLAN 70) for the downstream network. If you are using the Ethernet WAN port, or another VLAN for your TV, then modify igmpproxy.conf accordingly.
vim igmpproxy.conf
. Press i
to start editing in vim, navigate with your arrow keys and make your changes, press ESC
to exit insert mode, type :wq
to save and exit.Run igmpproxy in the foreground to test if everything is working.
./igmpproxy -nd ./igmpproxy.conf
On your wired Swisscom blueTV Box, tune to a channel and check if the TV is working without interruption for longer than 10 seconds. If igmpproxy is not working, your TV will stop working after 10 seconds.
If the TV is working properly, press Ctrl+C in the SSH window to stop igmpproxy, then run it in the background via:
./igmpproxy ./igmpproxy.conf
igmpproxy will not start on boot by default. If you want to start igmpproxy at boot, read the next section.
Set-up UDM Utilities Boot Script by following the instructions here. This boot script allows us to run igmpproxy on boot.
Install the igmpproxy boot script.
cd /mnt/data/on_boot.d
curl -Lo 99-run-igmpproxy.sh https://raw.githubusercontent.com/bprskalo/udm-blueTV/main/run-igmpproxy.sh
chmod +x 99-run-igmpproxy.sh
That's it, now igmpproxy will start automatically on boot. If you restart and want to check if it's running, you can run the command ps aux | grep igmpproxy
. You should see a line that looks like this in the output if it's running:
6370 root /mnt/data/igmpproxy/igmpproxy /mnt/data/igmpproxy/igmpproxy.conf
This tutorial was adapted for the UDM from the USG TELUS TV tutorial by peacey/udm-telus.
Many thanks to the extremely detailed tutorialas from peacey, fabian and thilo that made it a breeze to adapt and a lot of community entries from Ubiquiti and Swisscom.