OPNsense Forum

English Forums => General Discussion => Topic started by: SiD67 on August 31, 2017, 09:17:19 pm

Title: [SOLVED] Avahi / mDNS Proxy avaiable?
Post by: SiD67 on August 31, 2017, 09:17:19 pm
Hi everyone,

I am a long user of pfsense in my home enviroment, but since pf was a little bitchy sometimes when updating and I wanted to try ips I switches over to opnsense 2 weeks ago.
System feels much faster, and most things I was able so setup without problems.

But one feature I am missing is to forward mdns from interface to interface.

I have nothing special here, just a lan network and some vlans for wifi - control, internal wifi and guest wifi.

So my airplay receiver for example is not in the same network as my smartphone. On pf I just installed avahi for that and most of the time it workes without problems, sometimed I had to restart the service when the devices were not able to "see" them anymore ;)

I can´t find avahi in the plugins :( is there a different package avaiable for that or how can I implement forwarding mdns?

Regards

Dennis

Chage: Mark as solved
Title: Re: Avahi / mDNS Proxy avaiable?
Post by: SiD67 on August 31, 2017, 09:53:07 pm
Hi found in the forum that mdns-responder will do the job ;)

I installed it with  pkg install mdns-repeater

and simply started it with my 2 interfaces and in this moment I am listening to my airplay stream from smartphone to my hifi receiver ;)

I would like to see this in upcoming releases an an generel option in the system configuration. I think there are much users that are using this and when it is so simple to start it could be general installed and used as an gui option maybe?

regards

Dennis
Title: Re: Avahi / mDNS Proxy avaiable?
Post by: franco on August 31, 2017, 10:23:56 pm
Hi Dennis,

Indeed, a plugin is missing at this point. If we can get a bit of guidance which type of integration / configuration is needed we can see about changing that. Some people already use the package, they could also chip in.


Cheers,
Franco
Title: Re: Avahi / mDNS Proxy avaiable?
Post by: SiD67 on September 01, 2017, 11:38:50 pm
Hi Franko,

thank you for feedback.

I didn´t know mdns-repeater until I read it here in forum.
I can say, that avahi on pfsense had some options to play with (forward of ipv6 to ipv4 and vice versa e.g), but mdns-repeater seems to only need the interfaces it should work with (reX and reX_vlan in my case) and thats it, it out itself into deamon/background mode and there is a switch to see some kind of logging on console.

So I think it would be enough to just have an option in the general system configuration where you can select the known interfaces of the system to enable mdns-repeater to work with.

I am not really a programmer, didnt get any further than some pascal stuff 20 years ago and some shell scripting ;) but I think someone who knows the opnsense system and gui could do this very quick ;)

I hope there would be a way to implement this, that would be very nice ;)

regards and a beautiful weekend everyone ;)
Title: Re: Avahi / mDNS Proxy avaiable?
Post by: franco on September 02, 2017, 12:47:00 pm
Looks like this escalated quickly thanks to Fabian...

https://github.com/opnsense/plugins/commit/275803fd8


Cheers,
Franco
Title: Re: Avahi / mDNS Proxy avaiable?
Post by: fabian on September 02, 2017, 12:52:37 pm
You can try the plugin here: https://forum.opnsense.org/index.php?topic=5879.0
Title: Re: Avahi / mDNS Proxy avaiable?
Post by: SiD67 on September 06, 2017, 09:56:37 pm
Hi guys,

wow your guys are awesome, tried it right now and it works great so far!

Thanks for quick answering and developing!