ports icon indicating copy to clipboard operation
ports copied to clipboard

mdns-repeater: ipv6 support

Open tokyovigilante opened this issue 1 year ago • 16 comments

I have found mdns-repeater works well across VLANs using IPv4, but does not support IPv6. The upstream project has a recently updated pull request to add this (https://github.com/geekman/mdns-repeater/pull/25). Is this something that could be considered for OPNsense?

tokyovigilante avatar Dec 07 '24 05:12 tokyovigilante

If they merge it and ship it in a release—sure.

fichtner avatar Dec 07 '24 07:12 fichtner

Thanks, hopefully upstream is not abandoned! Is there any way to build this on my local device to test? Found https://forum.opnsense.org/index.php?topic=21739.0, but that may be out of date. I don't have a huge amount of BSD experience.

tokyovigilante avatar Dec 07 '24 07:12 tokyovigilante

If you insist I can provide you with a compiled package if the patch applies and compiles in FreeBSD, but I’m really not that comfortable with shipping features and refactored that ads not even merged to the development version of the project. Because then we become upstream in a way. 😉

fichtner avatar Dec 07 '24 09:12 fichtner

Thanks, that would be fantastic. I'm very happy to work with the upstream devs on testing and code review etc. to get it merged there, but my packaging/porting experience on BSD is pretty limited to appreciate the help.

tokyovigilante avatar Dec 07 '24 19:12 tokyovigilante

@tokyovigilante granted this took some time to remember but 3de30c0 compiled without much effort needed

Here is your test package:

# pkg add -f https://pkg.opnsense.org/FreeBSD:14:amd64/snapshots/misc/mdns-repeater-1.11_2.pkg

Cheers, Franco

fichtner avatar Dec 18 '24 14:12 fichtner

Thanks! Will test it out and feed back.

tokyovigilante avatar Dec 20 '24 01:12 tokyovigilante

Thanks! Will test it out and feed back.

Any feedback on this? Really could use the IPv6 mDNS-repeater.

texzag avatar Mar 14 '25 18:03 texzag

The package should still be there. You can try it as well?

fichtner avatar Mar 14 '25 18:03 fichtner

The package should still be there. You can try it as well?

Unless I'm missing something, it doesn't appear to be there anymore. I'd be happy to give it a try.

texzag avatar Mar 15 '25 14:03 texzag

Apologies, was probably removed when we moved to 25.1 default build. I'll try to put it back on Monday. Just to be sure you are using 25.1.x?

Cheers, Franco

fichtner avatar Mar 15 '25 14:03 fichtner

Apologies, was probably removed when we moved to 25.1 default build. I'll try to put it back on Monday. Just to be sure you are using 25.1.x?

Cheers, Franco

OK, great. I'm on 25.1.3.

Thanks so much

texzag avatar Mar 15 '25 14:03 texzag

Here it is:

# pkg add -f https://pkg.opnsense.org/FreeBSD:14:amd64/snapshots/misc/mdns-repeater-1.11_2.pkg

If this needs new config options or works out of the box I honestly do not know.

Cheers, Franco

fichtner avatar Mar 17 '25 16:03 fichtner

Here it is:

# pkg add -f https://pkg.opnsense.org/FreeBSD:14:amd64/snapshots/misc/mdns-repeater-1.11_2.pkg

If this needs new config options or works out of the box I honestly do not know.

Cheers, Franco

Thanks. I gave it a shot. Seems to repeat ipv6 ok, but since my devices only seem to send out link-local addresses, I don't think it will work for my situation apparently. Thanks for the help.

texzag avatar Mar 17 '25 19:03 texzag

@fichtner I get the following error in the OPNsense log files: "send6(): No route to host" whenever it tries to respond to a IPv6 mDNS query. (For instance from: "fe80::8941:df22:12f5:4607.5353" or "fe80::5aee:794f:4563:720e.5353")

Does it use the correct interface to retry?

christiaangoossens avatar Jul 30 '25 13:07 christiaangoossens

@christiaangoossens are you testing the experimental version? can't say much about it and unfortunately it also hasn't been merged upstream. :/

fichtner avatar Jul 30 '25 13:07 fichtner

@christiaangoossens are you testing the experimental version? can't say much about it and unfortunately it also hasn't been merged upstream. :/

Yep mdns-repeater-1.11_2. Just making sure it is reported here. Let's wait on upstream then.

christiaangoossens avatar Jul 30 '25 14:07 christiaangoossens