-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use mdns.Browser over VPN connection #249
Comments
I would also like to clarify that unlike the approach made in #244, I've mounted the dbus system bus socket and started the avahi-daemon inside the container, because I need the service to see the interface |
Hi @manuelnucci,
... for example. Just google for "vpn dnssd" "wireguard vpn bonjour" etc. Also, to exclude |
Hi @agnat! Yes, I should've made the test you suggest before any attempt to use the library. As you said, it's not clear if WG supports multicast. Hopefully I will find the answer this week and will be able to use this library or not. Thanks for all the info. |
After reading the documentation, I'm still unable to understand how service discovery works.
In my case, I have two machines connected through a Wireguard VPN with containerized applications running in both of them. One of them is a Node app based on Alpine and running this library (mdns).
The problem appears after successfully starting avahi-daemon in the container where the app is running. For now, the app consists of this simple file:
Here,
wg0
is the network interface which both containerswireguard
andapp
share in the server.However, I would expect to receive any package over multicast in the client, which successfully connected to the VPN and is in the same network, as seen here:
The logs from the
app
are:I'd expect the app to discover a printer I've previously set in the
cups
container in the client, but after starting atcpdump
in the client, there're no packages sent to this machine.Some of the solutions I've already tried are:
wg0
network interface (ifconfig wg0 multicast
). Somehow breaks completely the app:mcsender
using the following command:mcsender -iwg0 10.13.13.2:<PORT>
, with PORT = 51820 | 631 | 5353. All of them send back a successful response.So, all in all, the questions that still remain are:
mdns
library send multicast packages over a VPN connection?app
) send multicast packages over the network?I've been working on this for several days and don't know what else to do. Any help is really appreciated.
The text was updated successfully, but these errors were encountered: