Page 1 of 1

Mikrotik router and IPTV, can't get it to work

Posted: Sun Aug 17, 2014 5:24 pm
by Destiny
Hello there,

I will try to be quick and describe my problem precisely.

ISP: Telekom Hungary, Cisco EPC3925 cable modem, 50/5 mbit/s
Router: RB2011UiAS-RM
Wifi Access Point and switchport for IPTV: TP-Link TL-WR1043ND
Topology: Coax internet->EPC3925 WAN ||| EPC3925 LAN->Mikrotik Eth1 ||| Mikrotik Eth2->TP-Link TL-WR1043ND LAN->IPTV set-top box, Wifi access
Scenario:
Router's Eth1 port receives public IP address. Eth2 is local network (IPTV+wifi). Traffic from local network to internet is masqueraded. Firewall: default firewall rules + allow input and forward udp packets, as well as input igmp packets. Multicast package for router is installed, IGMP-proxy set up for Eth1 upstream (alt. subnet 0.0.0.0/0), Eth2 downstream.

Problem: IPTV does not work.

MFC table shows groups and source addresses, but TV does not work.

Any ideas? I can provide more info if needed.

Thanks in advance.

Re: Mikrotik router and IPTV, can't get it to work

Posted: Mon Aug 18, 2014 10:25 am
by Destiny
I got this working even before my post got approved :lol: It turned out that I configured everything correctly, I only needed to wait for ISP to accept my new home configuration.

Re: Mikrotik router and IPTV, can't get it to work

Posted: Mon Aug 18, 2014 4:09 pm
by plisken
Can you post the correct configuration please?
This are for many people helpfull

Re: Mikrotik router and IPTV, can't get it to work

Posted: Tue Aug 19, 2014 11:27 am
by Destiny
Configuration of IPTV

IPTV uses IGMP to subscribe to your provider's TV broadcast. To make this work, we need an IGMP proxy which can forward multicast traffic to your IPTV, and configure firewall to allow such traffic. In this tutorial, I will follow my router's settings, so at some places it is up to you to change the settings described here to your needs. My goal was to make this work with the set top box provided by my ISP, so if you want to watch stream on your computer (with VLC for example) this might or might not work for you. This tutorial will not tell you how to configure anything else in the router, I assume you have a minimal knowledge in RouterOS, and the ability to search online for solutions if needed.

Settings of Mikrotik:

Model - RB2011UiAS-RM (should work with any model capable of running RouterOS)
RouterOS version - 6.18
Ether1 - gateway to internet, gets public IP from ISP via DHCP
Ether2 - your local network, also the place where your IPTV is (set top box or VLC or whatever)

First, check if your router has the multicast package installed. You can do this by navigating to Routing in RouterOS menu (either via Webfig or winbox). If you have it already, you should see a submenu called "IGMP Proxy". If you don't have it, you need to download it from mikrotik's website and install it on your router. Be sure to get the correct one for your platform and RouterOS version. The easiest way to install a package is to login to your router with winbox, and drag&drop the package file to the "Files" root folder. After rebooting the router, the package installs automatically.

Click on IGMP Proxy. Then click the "Add New" button:

-Enabled: yes
-Interface: Ether1 (the gateway to internet)
-Treshold: 1
-Alternative subnets: 0.0.0.0/0
-Upstream: yes

Click apply, then OK.

Click "Add New" again.

-Enabled: yes
-Interface: Ether2 (your LAN with the IPTV)
-Treshold: 1
-No alternative subnets
-Upstream: no

Click apply, then OK.

Click "Settings".

-Quick Leave: yes
-leave everything else as is

Click apply, then OK.
Proxy configuration is done. Now we need to check firewall rules to allow IPTV's traffic. I assume you have default firewall configuration, same as on my router (you can see the default firewall config here: http://wiki.mikrotik.com/wiki/Manual:De ... igurations, Firewall, NAT and MAC server section). We are going to extend this.

Navigate to IP->Firewall menu. Add new filter rule.

-Chain: input
-Protocol: udp
-action: accept

Apply and OK.

Add new filter rule.

-Chain: forward
-Protocol: udp
-action: accept

Apply and OK.

Add new filter rule.

-Chain: input
-Protocol: igmp
-action: accept

Apply and OK.


This is it. If everything else in your network is configured properly, your IPTV should work now. Any questions, just ask, I try to answer them.

Re: Mikrotik router and IPTV, can't get it to work

Posted: Mon Jan 12, 2015 7:33 pm
by sajjadsdk
Configuration of IPTV

IPTV uses IGMP to subscribe to your provider's TV broadcast. To make this work, we need an IGMP proxy which can forward multicast traffic to your IPTV, and configure firewall to allow such traffic. In this tutorial, I will follow my router's settings, so at some places it is up to you to change the settings described here to your needs. My goal was to make this work with the set top box provided by my ISP, so if you want to watch stream on your computer (with VLC for example) this might or might not work for you. This tutorial will not tell you how to configure anything else in the router, I assume you have a minimal knowledge in RouterOS, and the ability to search online for solutions if needed.

Settings of Mikrotik:

Model - RB2011UiAS-RM (should work with any model capable of running RouterOS)
RouterOS version - 6.18
Ether1 - gateway to internet, gets public IP from ISP via DHCP
Ether2 - your local network, also the place where your IPTV is (set top box or VLC or whatever)

First, check if your router has the multicast package installed. You can do this by navigating to Routing in RouterOS menu (either via Webfig or winbox). If you have it already, you should see a submenu called "IGMP Proxy". If you don't have it, you need to download it from mikrotik's website and install it on your router. Be sure to get the correct one for your platform and RouterOS version. The easiest way to install a package is to login to your router with winbox, and drag&drop the package file to the "Files" root folder. After rebooting the router, the package installs automatically.

Click on IGMP Proxy. Then click the "Add New" button:

-Enabled: yes
-Interface: Ether1 (the gateway to internet)
-Treshold: 1
-Alternative subnets: 0.0.0.0/0
-Upstream: yes

Click apply, then OK.

Click "Add New" again.

-Enabled: yes
-Interface: Ether2 (your LAN with the IPTV)
-Treshold: 1
-No alternative subnets
-Upstream: no

Click apply, then OK.

Click "Settings".

-Quick Leave: yes
-leave everything else as is

Click apply, then OK.
Proxy configuration is done. Now we need to check firewall rules to allow IPTV's traffic. I assume you have default firewall configuration, same as on my router (you can see the default firewall config here: http://wiki.mikrotik.com/wiki/Manual:De ... igurations, Firewall, NAT and MAC server section). We are going to extend this.

Navigate to IP->Firewall menu. Add new filter rule.

-Chain: input
-Protocol: udp
-action: accept

Apply and OK.

Add new filter rule.

-Chain: forward
-Protocol: udp
-action: accept

Apply and OK.

Add new filter rule.

-Chain: input
-Protocol: igmp
-action: accept

Apply and OK.


This is it. If everything else in your network is configured properly, your IPTV should work now. Any questions, just ask, I try to answer them.
Dear bro, I configured my router iptv works very well with me but other clients can't receive it and hotspot page also down with other clients and whole hotspot network breaks down when iptv runs. when i close iptv all networking started working again.. Help