Community discussions

MikroTik App
 
rutman286
newbie
Topic Author
Posts: 41
Joined: Sat Oct 29, 2011 9:18 pm

Apple Bonjour across vlans?

Tue Nov 05, 2019 9:54 pm

Hi Mikrotik community! I am playing around with replacing my home lab setup with all Mikrotik. Right now I am using a Fortinet stack that was gifted to me. It is awesome, but I get bored and want to try something new... anyhow, right to the point.
In my home lab I use 3 VLANs. My TVs and AppleTV, multifunction printer and such are on VLAN 5, my wife and I are on VLAN 10, and my kids are on VLAN 15. We use airprint to our printer, and our phones to control the AppleTV. Both of those features use multicast. Right now I have no problem with the Fortinet stack routing that multicast traffic between VLANs. I dabbled briefly in this before with Mikrotik and got stumped. I am not using Mikrotik wireless access points at this time. Not sure if that detail helps, but incase it does, there you go!

So my specific question: I want multicast traffic to be able to flow between my TV VLAN (vlan 5), and my "parents" vlan (VLAN 10). Can someone help me understand the right want to do that on Mikrotik?
 
mada3k
Long time Member
Long time Member
Posts: 697
Joined: Mon Jul 13, 2015 10:53 am
Location: Sweden

Re: Apple Bonjour across vlans?

Sat Nov 09, 2019 9:11 pm

Well. Multicast routing is available on RouterOS with the multicast packet.

Another solution is a mDNS repeater/reflector. This is not yet supported by RouterOS, but can be run on any Linux-machine.
https://linux.die.net/man/5/avahi-daemon.conf
 
sydsyd
just joined
Posts: 14
Joined: Tue Aug 12, 2014 10:44 am

Re: Apple Bonjour across vlans?

Fri Jan 10, 2020 12:17 pm

Well. Multicast routing is available on RouterOS with the multicast packet.
...
Is there an example or a dummies' guide on doing this somewhere?
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: Apple Bonjour across vlans?

Tue Feb 25, 2020 8:12 am

Not being a huge fan of bridging bonjour as it creates a point where a router could be injected it's actually possible to use the Apple associated services via DNS directly in a way that isn't tied to leaking an intentionally link-local discovery protocol throughout your wan. That said the RouterOS DNS server is lacking the features to implement it.

RFC 6763
Last edited by idlemind on Tue Feb 25, 2020 8:15 am, edited 1 time in total.
 
sydsyd
just joined
Posts: 14
Joined: Tue Aug 12, 2014 10:44 am

Re: Apple Bonjour across vlans?

Tue Feb 25, 2020 8:15 am

Not being a huge fan of bridging bonjour as it creates a point where a router could be injected it's actually possible to use the Apple associated services via DNS directly in a way that isn't tied to leaking an intentionally link-local discovery protocol throughout your wan. That said the RouterOS DNS server is lacking the features to implement it.
So what are the tools/apps, and hardware to do this via Apple associated services?
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: Apple Bonjour across vlans?

Tue Feb 25, 2020 8:17 am

Not being a huge fan of bridging bonjour as it creates a point where a router could be injected it's actually possible to use the Apple associated services via DNS directly in a way that isn't tied to leaking an intentionally link-local discovery protocol throughout your wan. That said the RouterOS DNS server is lacking the features to implement it.
So what are the tools/apps, and hardware to do this via Apple associated services?

Just correctly crafted DNS records in your DNS server. It just so happens that RouterOS has a very limited DNS resolver.
 
sydsyd
just joined
Posts: 14
Joined: Tue Aug 12, 2014 10:44 am

Re: Apple Bonjour across vlans?

Tue Feb 25, 2020 8:21 am

Not being a huge fan of bridging bonjour as it creates a point where a router could be injected it's actually possible to use the Apple associated services via DNS directly in a way that isn't tied to leaking an intentionally link-local discovery protocol throughout your wan. That said the RouterOS DNS server is lacking the features to implement it.
So what are the tools/apps, and hardware to do this via Apple associated services?

Just correctly crafted DNS records in your DNS server. It just so happens that RouterOS has a very limited DNS resolver.
Isn't the whole point of Bonjour/ZeroConf discovery supposed to be DNS independent?
For example, the HDHomeRun TV tuner discovery requires the EyeTV application to probe and listen on the same subnet. How would DNS records address this issue across VLANs?
 
vortex
Forum Guru
Forum Guru
Posts: 1092
Joined: Sat Feb 16, 2013 6:10 pm

Re: Apple Bonjour across vlans?

Tue Feb 25, 2020 11:17 pm

I don't think it is possible to do it just on a router. I tried.
 
User avatar
macsrwe
Forum Guru
Forum Guru
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Apple Bonjour across vlans?

Thu Feb 27, 2020 9:41 am

Can't be done in RouterOS without MT creating an avahi server package, which they have no plans to do.
 
sydsyd
just joined
Posts: 14
Joined: Tue Aug 12, 2014 10:44 am

Re: Apple Bonjour across vlans?

Thu Feb 27, 2020 11:23 am

I don't think it is possible to do it just on a router. I tried.
...
Can't be done in RouterOS without MT creating an avahi server package, which they have no plans to do.
...
Thanks @vortex and @macsrwe - that was my understanding too, but @idlemind said that it was possible to do it via DNS:
.
Just correctly crafted DNS records in your DNS server. It just so happens that RouterOS has a very limited DNS resolver.
 
User avatar
macsrwe
Forum Guru
Forum Guru
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Apple Bonjour across vlans?

Thu Feb 27, 2020 12:16 pm

It's not that you can use a DNS to make Bonjour work, it's that you can use a DNS as a next-best option to compensate for the fact that Bonjour doesn't work.
 
sydsyd
just joined
Posts: 14
Joined: Tue Aug 12, 2014 10:44 am

Re: Apple Bonjour across vlans?

Thu Feb 27, 2020 12:20 pm

It's not that you can use a DNS to make Bonjour work, it's that you can use a DNS as a next-best option to compensate for the fact that Bonjour doesn't work.
And how does one do that?
 
User avatar
macsrwe
Forum Guru
Forum Guru
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Apple Bonjour across vlans?

Fri Feb 28, 2020 5:38 am

Give your devices names and preassigned DHCP reservations, then reference them by name instead of using Bonjour at all.

Yes, it's replacing a zero-configuration process with a configuration process. Sorry, but that's all there is.
 
sydsyd
just joined
Posts: 14
Joined: Tue Aug 12, 2014 10:44 am

Re: Apple Bonjour across vlans?

Fri Feb 28, 2020 5:46 am

Give your devices names and preassigned DHCP reservations, then reference them by name instead of using Bonjour at all.
...
.
Not sure how that is a work around so devices in one VLAN can "see" devices in another VLAN when they are listening for Bonjour broadcasts.
 
User avatar
macsrwe
Forum Guru
Forum Guru
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Apple Bonjour across vlans?

Fri Feb 28, 2020 5:51 am

They're never going to see those broadcasts. The mechanics of why have been previously posted. Bonjour will not work on remote access connections without active server assistance.

If you absolutely need Bonjour to work, you'll have to obtain the avahi server, invest in a Linux device to run it, and configure it to your taste.
 
sydsyd
just joined
Posts: 14
Joined: Tue Aug 12, 2014 10:44 am

Re: Apple Bonjour across vlans?

Fri Feb 28, 2020 5:56 am

...If you absolutely need Bonjour to work, you'll have to obtain the avahi server, invest in a Linux device to run it, and configure it to your taste.
.
That was my understanding too, but @idlemind said:
it's actually possible to use the Apple associated services via DNS directly in a way that isn't tied to leaking an intentionally link-local discovery protocol throughout your wan.
.
Do you know what he might have had in mind?
 
User avatar
macsrwe
Forum Guru
Forum Guru
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Apple Bonjour across vlans?

Fri Feb 28, 2020 6:46 am

No.

Who is online

Users browsing this forum: No registered users and 24 guests