Page 1 of 1

IPTV via VLAN

Posted: Fri Dec 09, 2016 6:00 pm
by bartaaldering
hi all,

my isp is using vlan 188 to provide IPTV. Is there a way to passtrough to a port on the routerboard?

thanks!

Re: IPTV via VLAN

Posted: Fri Dec 09, 2016 6:03 pm
by mrz
add vlan188 on public port and bridge vlan with local port.

Re: IPTV via VLAN

Posted: Mon Dec 12, 2016 12:26 pm
by davidmv
I don't know if this will answer your question but... here it goes. In Spain, Movistar uses VLAN 2 for IPTV. The configuration is (in my case, RB750GL, and a netgear switch hooked to eth4, and the decoder to that switch):

Eth4 is a slave port to Eth2.
VLAN2 has been created under Eth1 (my WAN access).
VLAN2 is given the address that Movistar provides for IPTV (in IP->Address)
The decoder is given a specific ip with certain options (I don't think they apply to your case)
VLAN mode disabled and VLAN Header "leave as is" in every port.

In Firewall Rules, NAT:
chain=srcnat action=masquerade out-interface=vlan2
And a special rule for Video on Demand (which is why the decoder is given a static ip):
chain=dstnat action=dst-nat to-addresses=[Decoder_IP] dst-address-type=local in-interface=vlan2 log=no log-prefix=""
Finally, in Mangle:
chain=postrouting action=set-priority new-priority=4 out-interface=vlan2
Again, all this is valid for Movistar in Spain, which uses a ppoe-out connection with a ONT.

Cheers.

Re: IPTV via VLAN

Posted: Mon Dec 12, 2016 2:18 pm
by bartaaldering
add vlan188 on public port and bridge vlan with local port.
hi mrz, i'm not shure how to do that ? I added a VLAN with id 188 to eth1. What should I do next? I can't add another port to that vlan in Winbox it seems.

thanks

Re: IPTV via VLAN

Posted: Mon Dec 12, 2016 5:57 pm
by olkitu
What is your provider? So maybe we can tell more how to configure.

Here is my instruction how to configure Sonera IPTV (Finland) to RouterOS: https://www.taisto.org/RouterOS_IPTV/en

Re: IPTV via VLAN

Posted: Mon Dec 12, 2016 6:03 pm
by bartaaldering
What is your provider? So maybe we can tell more how to configure.

Here is my instruction how to configure Sonera IPTV (Finland) to RouterOS: https://www.taisto.org/RouterOS_IPTV/en
it's Solcon in the Netherlands.

Re: IPTV via VLAN

Posted: Mon Dec 19, 2016 11:36 am
by twanvdschoot
Hello,

I am a colleague of bartaaldering and managed to get it to work.

By adding a vlan 188 subinterface to the main WAN connection.
Then I have created a bridge and added the VLAN 188 and physical "output" interface.

So now we have a bridged IPTV interface, the "nicest" would be to have routed iptv, but I dont think we got enough information from our ISP.

With kind regards,

Twan van der Schoot

Re: IPTV via VLAN

Posted: Tue Oct 16, 2018 12:19 pm
by dgelbers
Hi,

I just changed from provider and i'm trying to configure IPTV in combination with my Mikrotik router. I'm wondering how you solved it.When i try the last coonfoguration that twanvdschoot used it does not work. I see traffic but only RX no TX.

Re: IPTV via VLAN

Posted: Wed Oct 17, 2018 12:48 pm
by dgelbers
Maybe there is someone who can 'translate' the relevant parts of the config of the Fritzbox to Mikrotik. I have exported the settings from the Fritzbox, they can be found at: https://docs.google.com/document/d/1AYh ... sp=sharing

At the moment i have:
* added a sub vlan interface to ether1 with vlan ID 188
* created a bridge
* added the earlier created VLAN interface and the ether6 to the bridge.
* created an address space for the bridge and added the DHCP server to the bridge

The Amino box gets and IP address now, but it seems it cannot connect to the Automatic Configuration Server (ACS).

Re: IPTV via VLAN

Posted: Wed Oct 17, 2018 8:10 pm
by raceboy
...im not sure if you get vlan 188 from fritz. i think you get vlan 188 to fritz wan.

Sent from my Moto G (5) Plus using Tapatalk


Re: IPTV via VLAN

Posted: Wed Oct 17, 2018 11:23 pm
by dgelbers
@raceboy for as far i can see you are completely right!

Re: IPTV via VLAN

Posted: Tue Oct 23, 2018 2:55 pm
by dgelbers
I received an reply from my provider Solcon.

In the bridge solution It is not necessary to have my own DHCP server. The STB (Amino box) should receive an IP address from Solcon. For some reason it does not work. The STB does not receive an IP address.
Using the following commands on my RB2011iL i created the VLAN interface and bridge and added the interfaces to the bridge:
/interface bridge
add fast-forward=no igmp-snooping=yes name=IPTV
/interface vlan
add interface=ether1 name=ether1.188 vlan-id=188
/interface bridge port
add bridge=IPTV interface=ether1.188
add bridge=IPTV interface=ether6
is there someone that has a clue how to solve this problem?

Re: IPTV via VLAN

Posted: Wed Oct 24, 2018 12:32 am
by mkx
Are you sure Amino is not expecting to receive stuff over tagged VLAN?

Re: IPTV via VLAN

Posted: Wed Oct 24, 2018 9:32 am
by gard
Hello!
It's true way, but you need add rules into Filter.
Drop traffic from ether1.188 <--> ether6.
If you not added this rule, you give loop.

Re: IPTV via VLAN

Posted: Wed Oct 24, 2018 7:30 pm
by raceboy
can you elimimate fritz? and estabilish connection with mikrotik to your isp direct?

Sent from my Moto G (5) Plus using Tapatalk


Re: IPTV via VLAN

Posted: Wed Oct 24, 2018 9:44 pm
by dgelbers
@mkx: pretty sure yes. I even connected the Amino box directly to the NTU. It receives an IP address then but does not get an connection to the ACS.

@gard: i do not completely understand. I made an bridge between the VLAN sub-interface on my WAN port and the physical ethernet port on the router. You think i should create some filter rules?

@raceboy: Internet on the Mikrotik works great direcly, without the Fritzbox.

When i use torch on the ether1 (WAN) port i see the VLAN 188 traffic. On the bridge i see only Rx traffic increasing no Tx. On the VLAN interface and the physical port i see Rx as well Tx. Could it be a problem in a route?Or should i enable VLAN in de Switch CPU and ether 6?

Re: IPTV via VLAN

Posted: Wed Oct 24, 2018 10:47 pm
by mkx
@mkx: pretty sure yes. I even connected the Amino box directly to the NTU. It receives an IP address then but does not get an connection to the ACS.
I'm using Netgem set-top box which is configured to use untagged for normal internet (e.g. EPG download, youtube, deezer, etc.) but uses tagged VLAN to receive multicasts (as well as unicasts for retransmissions and/or timeshifted content). So I'm just asking ...

Re: IPTV via VLAN

Posted: Wed Oct 24, 2018 11:14 pm
by dgelbers
@mkx: pretty sure yes. I even connected the Amino box directly to the NTU. It receives an IP address then but does not get an connection to the ACS.
I'm using Netgem set-top box which is configured to use untagged for normal internet (e.g. EPG download, youtube, deezer, etc.) but uses tagged VLAN to receive multicasts (as well as unicasts for retransmissions and/or timeshifted content). So I'm just asking ...
Thanks MKX. I'm happy wiith all people that can help. At some time i thought the same as you. Offcourse it is possible that the problem must be searched in this direction. Solcon (my provider) gave me some clues.

They told me to route VLAN 188 to the STB. Their DHCP server should provide the STB with an IP address. The router must use IGMP Snooping 2.0 + multivlan, not trunked.

Must VLAN 188 routed to the physical port with the STB connected tagged then? How do i do that?