I have 2 subnets (remote_network
and home_network
) connected via VPN (openvpn).
I would like to bridge mDNS between those 2 subnets.
Rationale:
In my home network I have several servers running docker. It is setup in a such a way that I can access several of those docker services through a specific hostname (e.g. portainer1.local
) that is resolved via mDNS.
FYI: I am using container docker-mdns-helper that is automatically publishing CNAME records pointing to the local host over multicast DNS using the Avahi daemon.
The problem is that those .local
hostnames are not resolved when in the other subnet as mDNS traffic is not crossing subnets.
Request:
So what do I need to do to assure that those .local
hostnames are also resolved in the other subnet.
This subnet is connected to my home LAN via a site-2-site VPN where
- the openVPN client in my
remote_network
is running on an openWrt router and - the openVPN server in my
home_network
is running on an ubuntu server (intel nuc device).
Proposal
My proposal is to run smcroute both on my:
- my openWrt router (= where the OpenVPN client is running) where it should route all mDNS traffic between interfaces
br-lan
andtun0
- my ubuntu server (= where the OpenVPN server is running) where it should route all mDNS traffic between interfaces
enp3s0
andtun0
(and maybe alsowlp2s0
in both directions)
I guess I also need to add firewall rules to increase the TTL so that those mDNS packets are allowed to be forwarded.
Does this proposal makes sense and is complete ?
Are there any issues with this proposal ?