toxuin / mdns-tunneller

Tunnels two (or more) mDNS domains together
Other
117 stars 9 forks source link

Tunnel mDNS both ways #14

Open AltarBeastiful opened 1 year ago

AltarBeastiful commented 1 year ago

Hi ! Is there a difference in terms of mDNS packets sent between the client and the server ? I would like to forward packet both ways between them.

For now only the packets from the client are seen on the server when browsing locally on the server for mDNS queries. Is that the expected behaviour ? I'm stuck trying to figure out the steps to make the mDNS packets from the server replicated on the client.

toxuin commented 1 year ago

There are two layers to the tunnel: the link layer and the dns layer.

In terms of link layer - yes, there is a difference between client and server: server will sit patiently and wait for connections, not relaying/broadcasting anything without anybody connecting to it. Client would eagerly try to connect/re-connect to it's server and would also not relay/broadcast without a connection.

Once the link is established, however, there is basically no difference between peers (client/server). They will broadcast and relay packets from each other, as long as all the service whitelist/sender blacklist/interface/not already relayed rules were satisfied.

I would check if your client and server installations have same serviceWhitelist setting.