Community discussions

MikroTik App
 
lukaszg
just joined
Topic Author
Posts: 17
Joined: Thu Apr 28, 2016 10:46 am

Google Cast (chromecast and youtube) with vlan and bridge filtering.

Thu Feb 02, 2017 8:54 pm

TL;DR: I can access you tube application on my TV via google cast protocol, but cannot access chromecasts audio.

My access point broadcasts two wireless network - home and guest. Packets incoming from guest network are marked as vlan-guest.
I have my network configured in a following way:
  • - access point is connected to eth10. The traffic from it can be vlan-guest or without vlan mark.
    - ethernet ports (eth1-eth5) are using eth1 as a master.
    - bridge contains following ports:
    • - eth1-master (which are ports 1 to 5)
      - vlan-guest
      - eth10

I want to block guest network from accessing my other devices, so I added following rules to the bridge:
 0   ;;; vlan-guest -> 10.1.100.x
     chain=forward action=accept in-interface=vlan-guest 
     mac-protocol=ip dst-address=10.1.100.0/24 log=no 

 1   ;;; vlan-guest -> 239.255.255.250/32 (multicast)
     chain=forward action=accept in-interface=vlan-guest 
     mac-protocol=ip dst-address=239.255.255.250/32 log=no 

 2   ;;; vlan-guest -> *
     chain=forward action=drop in-interface=vlan-guest mac-protocol=ip 
     log=no 

I have 4 chromecasts audio:
10.1.100.2, 10.1.100.3, 10.1.100.4 and 10.1.100.5
and one smart TV with youtube app:
10.1.100.10


When a device connects for the first time to my guest network, it can cast to YouTube app, but cannot see any chromecast devices.
However when I remove last rule (block all traffic), allow my device to discover chromecasts, then add the rule again - the chromecasts audio are visible and I can cast to them.
This seems to be persistent (i.e. even after few days, the chromecasts are still accessible even when the rule is still added).

Chromecasts are connected via wifi, while TV is connected to eth port.
  • - chromecasts are using wifi, while TV not - can this be a problem for some reason? Router needs to remove vlan mark before transmitting the data from vlan to other interface, so the rules should be also checked
    - maybe there is a problem with protocol (should I allow all something else than ip?)
    - maybe there is a problem with multicast protocol?
 
User avatar
arturportella
newbie
Posts: 46
Joined: Wed Oct 30, 2013 3:16 pm

Re: Google Cast (chromecast and youtube) with vlan and bridge filtering.

Fri Feb 03, 2017 6:48 pm

Can you (if you could) draw it and explain it more clearly?

Regards,
 
lukaszg
just joined
Topic Author
Posts: 17
Joined: Thu Apr 28, 2016 10:46 am

Re: Google Cast (chromecast and youtube) with vlan and bridge filtering.

Fri Feb 03, 2017 6:55 pm

To explain it more clearly - there is isolated guest network which is blocked from other hosts on the bridge interface.

In the meantime I found a solution - seems that chromecast audio uses one more multicast network: "224.0.0.0/24". After allowing this in the filters everything started to work.
 
iScape
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Sun Dec 23, 2012 1:23 am

Re: Google Cast (chromecast and youtube) with vlan and bridge filtering.

Sat Jan 05, 2019 12:02 am

In the meantime I found a solution - seems that chromecast audio uses one more multicast network: "224.0.0.0/24". After allowing this in the filters everything started to work.
Can someone please give example of filter rule (or what's required) how this can be done (assuming the goal is to get closs-vlan google cast / chromecast usage) in RB?