Community discussions

MikroTik App
 
empusas
just joined
Topic Author
Posts: 4
Joined: Fri Apr 18, 2014 4:48 pm

Did anybody get Apple Bonjour to work with RouterOS?

Fri Apr 18, 2014 5:15 pm

Hi,

i have a Routerboard with rOS 6.12. I have the network subnettet and the Routerboard is the router in between.
I have tried every configuration i found with igmp-proxy and PIM to get Apple Bonjour services to work.
I even created a firewall mangle rule to increase the TTL of all multicast packet for group 224.0.0.251.

Really nothing works. Has anybody a working configuration with multiple network directly attached to the router board and Apple services work ?
 
empusas
just joined
Topic Author
Posts: 4
Joined: Fri Apr 18, 2014 4:48 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Tue Apr 29, 2014 3:46 pm

I did not get any reply so I started to perform some research with TCPdump and found the issue. As this might be from interest for others as well I will explain how i solved that issue.

First Apple Bonjour is a service that is similar to multicast Domain Name System (mDNS) or zero configuration. It uses the multicast group 224.0.0.251.
This multicast group is a "link-local" so all routers will not route it. It does not matter if you have igmp-porxy enabled or try anything with PIM.
The TTL is set to 1 and even if you change it with a mange rule it will not work.

So you can now surrender and reconfigure your network to a flat layer 2 domain and one big subnet. Then all Apple services will work.

OR you use a nice proxy software like the free avahi daemon from http://avahi.org. So here is how solved it.

I connected my raspberry pi with a trunk port a free port on the routerboard. i created a VLAN interface with a static IP outside of the DCHP ranges on the raspberry pi for each subnet. Then i created vlan interfaces on the router board and connected them to the bridges for the subnets.
Then i installed the avahi daemon:
sudo apt-get install avahi-daemon
sudo update-rc.d avahi-daemon defaults
and i changed those parameters from the avahi daemon config file and restarted the daemon:
sudo vi avahi-daemon.conf
sudo /etc/init.d/avahi-daemon restart
...
[publish]
publish-workstation=yes
...
[reflector]
enable-reflector=yes
reflect-ipv=no
That´s all. My computers and iphone/ipads now see each other again, all can print and use the time capsule for backup.
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 222
Joined: Tue Jan 21, 2014 10:03 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Thu May 01, 2014 11:31 pm

OK that's not good news but at least it is an information I was looking for.

I definitely don't get what IGMP-Proxy and PIM are for as, after one month of trying every single thing, it still couldn't get anything going through.

I'd be interested if someone could explain what are these for as neither VLC multicast stream nor Bonjour will go through...
 
empusas
just joined
Topic Author
Posts: 4
Joined: Fri Apr 18, 2014 4:48 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Fri May 02, 2014 9:43 pm

Hi,

i think the only way to get Apple Bonjour working on the RB without any external system would be that Mikrotik implements avahi or similar software on as a proxy on the system.
They might do this as Apple is a widely distributed brand for mobile devices and Cisco has something similar implemented to bridge between the LAN and WLAN, but i think that might depend on the number of requests.
In the meantime I have decided to improve my Raspberry Pi also as TimeCapsule replacement by attaching a hard drive and announce it vie the avahi daemon as Timecapsule in the network.
Currently I m also working on a solution for AirPrint on it, but currently i still have problems with CUPS and my Samsung printer.

For your VLC problem you should perform also a deep packet analyses as i did. From my point of view it should work with the IGMP proxy or PIM, but i have no experience with it.
 
surroundedbytrees
just joined
Posts: 13
Joined: Fri Jun 06, 2014 4:35 am

Re: Did anybody get Apple Bonjour to work with RouterOS?

Fri Jun 06, 2014 4:50 am

First Post here;

Received my RB2011UiAS-2HND-IN like 4 hrs ago.

Have been able to get the unit up and running seemed fine except for the 2 Apple TV's I have…they played music fine from the iMac, but would not pull m0vies or TV shows across either Wifi or Wired..

PlexConnect also doesn't seem to work….Wish I had seen this post prior to the purchase….

empusas you stated "So you can now surrender and reconfigure your network to a flat layer 2 domain and one big subnet. Then all Apple services will work." Care to elaborate as to how to do this for me please?

My network is relatively simple I mainly bought the RB for its 9 usable ports (Desktop, Apple TV, Ubiquiti AP's, BluRay etc.)

Keeping one 'flat layer' so stuff works is something I can live with….albeit I'm disappointed that I'll never be able to use some of the powerful features of RouterOS….but seeing as I have little knowledge on how they work perhaps thats a good thing


Thx
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 222
Joined: Tue Jan 21, 2014 10:03 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Fri Jun 06, 2014 5:53 pm

Not 100% correct.

Either you flatten your network to one single subnet or if you split it, make use of a raspberry or metarouter to run avahi (advertiser/proxy for mdns).

Did you configure more than one subnet/vlan ?
 
surroundedbytrees
just joined
Posts: 13
Joined: Fri Jun 06, 2014 4:35 am

Re: Did anybody get Apple Bonjour to work with RouterOS?

Fri Jun 06, 2014 6:02 pm

Not 100% correct.

Either you flatten your network to one single subnet or if you split it, make use of a raspberry or metarouter to run avahi (advertiser/proxy for mdns).

Did you configure more than one subnet/vlan ?
No

Thx for the reply…

I bought this unit to replace a Buffalo WZR-HP-AG300H and a TP-Link GB switch (the DDWRT Buffalo required almost a daily reboot to function).

2 iPads, iPhone, AirPrint, Apple TV's (one wired one wifi) need to work with iTunes on my Hackintosh
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 222
Joined: Tue Jan 21, 2014 10:03 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Tue Jun 10, 2014 10:32 am

Did you configure more than one subnet/vlan ?
No

2 iPads, iPhone, AirPrint, Apple TV's (one wired one wifi) need to work with iTunes on my Hackintosh
Then you shouldn't have any issue in regard to multicast/bonjour.
 
ofowler
just joined
Posts: 5
Joined: Tue Oct 04, 2005 4:19 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Fri Sep 12, 2014 12:41 am

It uses the multicast group 224.0.0.251.
This multicast group is a "link-local" so all routers will not route it. It does not matter if you have igmp-porxy enabled or try anything with PIM.
The TTL is set to 1 and even if you change it with a mange rule it will not work.
I just started looking at the same issue. Looking at some Wireshark captures of traffic to 224.0.0.251 from an Apple TV, I see a TTL of 255. Regardless of this, I don't see the purpose of igmp-proxy or PIM if they're aren't able to forward traffic for these addresses. 224.0.0.251 is in the 224.0.0.0 - 224.0.0.255 range designated as "link-local", but the default group address for a new RP under PIM is 224.0.0.0/4, which suggests it's able to deal with these addresses.

Has anyone confirmed that RouterOS truly won't route these multicast messages using either of these methods?
 
Caraboules
just joined
Posts: 4
Joined: Sun Jul 27, 2014 12:28 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Wed Sep 17, 2014 7:22 pm

Hello together,

I bought my first Mikrotik Router and I'm new using RouterOS.
Now I have the Problem, that I can't use the Bonjour Protocol.
I own a RaspberryPi that I want to use as Avahi reflector, but I don't know how to do it.
That's my config:
ether01 - WAN
bridgeDMZ (ether03-ether06) - DMZ (10.0.1.0/24)
bridgePrinter (ether07-ether10) - Printers (10.0.2.0/24)
bridgeHDD (ether11-ether14) - Harddisk (10.0.3.0/24)
bridgeLAN (ether15-ether22) - LAN (10.0.4.0/24)
bridgeGuest (ether23-ether24) - GuestLAN (10.0.5.0/24)

Now I want to use Bonjour between bridgePrinter <-> bridgeHDD <-> bridgeLAN

I understood that the RouterOS isn't able to route Bonjour between the Subnets.

now my question is:
How can I build a Bonjour reflector between the Subnets with the raspberry pi, using one network Interface?

Excuse me, if my english isn't the best, but this is the first english question since 20 years :-D
 
empusas
just joined
Topic Author
Posts: 4
Joined: Fri Apr 18, 2014 4:48 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Sun Oct 05, 2014 7:07 pm

Hi,

i used a raspberry pi too.

First you should install the avahi deamon, tools and netatalk if you want to use it as file server too.
sudo apt-get install avahi-daemon avahi-tools netatalk
Then perform the changes to the /etc/avahi/avahi-daemon.conf from my post above.

Just create some tagged interfaces in /etc/network/interfaces on the raspberry pi like this:
auto lo

#i leave the hw interface to dhcp in case i need to fix something
iface lo inet loopback
iface eth0 inet dhcp

#make sure the tagged interface come up when the real one does
post-up ifup eth0.1
post-up ifup eth0.2
post-up ifup eth0.3
post-up ifup eth0.4

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

# assign static IP´s for the tagged interfaces
iface eth0.1 inet static
address 192.168.1.2
netmask 255.255.255.224
iface eth0.2 inet static
address 192.168.1.33
netmask 255.255.255.224
iface eth0.3 inet static
address 192.168.1.66
netmask 255.255.255.224
iface eth0.4 inet static
address 192.168.1.130
netmask 255.255.255.224

iface default inet dhcp
Don´t forget to add a static route:
sudo route add default gw 192.168.1.1 eth0.1
You can either restart the network service or reboot your raspberry pi now.

On the router board create now VLAN interfaces and make sure the VLAN ID and IP subnet matches with what you used for the raspberry pi(don't use the same IP!)

Assign the VLAN interfaces on the router board now to the right bridges. Then create a tagged interface on the routerboard. To do so go to Switch->Port->select Port. Then VLAN Mode=disabled and VLAN Header=Leave as is.
 
iRet
just joined
Posts: 1
Joined: Wed Jan 14, 2015 11:39 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Wed Jan 14, 2015 11:45 pm

Hi guys!
I've just managed to run OpenWRT in MetaRouter vm inside my Mikrotik.
Then I've installed avahi-daemon and that's it. There's no need to use Rasperry Pi.

http://wiki.mikrotik.com/wiki/Manual:Metarouter
Here is the wiki, but a bit complicated.
I've only used File feature to upload image, then imported it using Winbox, not sure why but web client doesn't show Metarouter menu in my case.
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 222
Joined: Tue Jan 21, 2014 10:03 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Fri Feb 06, 2015 9:48 am

As anyone tried using avahi reflector to advertise services of a multifunction printer ?
The printer itself advertises bonjour frames and avahi just broadcasts them to other subnets.
I have few devices doing the same and the only thing that doesn't work at all is the scanner of the canon printer.
It shows up correctly on my Mac and Image Capture has it in the sidebar, however it ends up saying it wasn't able to contact the scanner.

Cheers
 
vortex
Forum Guru
Forum Guru
Posts: 1092
Joined: Sat Feb 16, 2013 6:10 pm

Re: Did anybody get Apple Bonjour to work with RouterOS?

Sat Feb 21, 2015 10:06 pm

I tried a long time ago with 5.2x and failed.
 
mpalladi
just joined
Posts: 1
Joined: Tue Dec 30, 2014 4:26 am

Re: Did anybody get Apple Bonjour to work with RouterOS?

Sun Feb 22, 2015 3:37 pm

Hi guys!
I've just managed to run OpenWRT in MetaRouter vm inside my Mikrotik.
Then I've installed avahi-daemon and that's it. There's no need to use Rasperry Pi.

http://wiki.mikrotik.com/wiki/Manual:Metarouter
Here is the wiki, but a bit complicated.
I've only used File feature to upload image, then imported it using Winbox, not sure why but web client doesn't show Metarouter menu in my case.
Can you please provide more detailed instructions on how to install and configure the avahi-daemon after openwrt. Thanks

Who is online

Users browsing this forum: Amazon [Bot], infabo and 38 guests