A while ago i had to install a Unifi Dream Machine Pro on a XS4ALL FTTH line. IPTV had to keep working in conjunction with the UDM. After some trying and reading i came to the conlusion it is not possible to make the UDM handle IPTV. You can only use WAN2 as a failover, and a IGMP proxy is not available. So i tried to find a solution without using a double NAT situation.
XS4ALL delivers a FritzBox 7490 as a router, and with this router it is possible to keep using IPTV, and still have your public IP at your UDM. Below i will explain how to do this
How to connect it all
So the idea is to use the PPPoE passthrough option available on the FritzBox device. I have connected it together like this:
So for this step, i am assuming you have only one local subnet. The fritzbox LAN side has to be in the same subnet as the Settop box(es). Both the UDM and FritzBox have 192.168.178.0/24 on the inside. First you need to change the IP of the Fritzbox so it doesn’t conflict with the UDM (the both have .1 at this point). At the same time we can disable the DHCP server on the Fritzbox because we want the UDM to handle that.
- Navigate to Home Network -> Network -> Network Settings Tab
- Under Advanced Settings click IPv4 Settings
- Change the IP to a free IP in your subnet, for example 192.168.178.3. You can also disable the DHCP server on this page. Click OK to apply the settings.
The second change we have to make is enable PPPoE passthrough, and prevent the FritzBox from making a PPPoE session to your provider.
- Navigate to Internet -> Account Information
- Clear the PPPoE information, or change it to something that doesnt work.
- Expand Change connection settings
- Clear idle connection after 30 seconds
- Enable Connected network devices allowed to establish their own internet connections…
On the UDM we also have to make some modifications. The changes have to be made to the DCHP server (where your Settop box resides) and some static routes.
- Navigate to Settings -> Services
- Click on the tab DHCP and DHCP Options. Add 2 DHCP options:
- Code: 28, Type: IP Address
- Code: 60, Type: Text
- Then navigate to Networks and edit your network where your Settop box is. Configure the Custom DHCP Options you just added.
- 60: IPTV_RG
- 28: 192.168.178.255 <- This is the broadcast address of your local LAN
Last step is to add some static routes. I am pretty sure the destination subnets in these routes are XS4ALL specific. The destination IP is the IP address of the Fritzbox. Where did i find these subnets then? Well i have IPTV running with a pfSense firewall on a XS4ALL line. I found 1 subnet in the routing table, and the other in a online blogpost which describes how to configure XS4ALL IPTV on a pfsense box.
I also have deployed this solution on a Onvi internet connection in conjunction with Canal Digital. For Canal Digital the static routes are not necessary!