Before I try to implement this, is this a possible setup?
I have two networks and one zerotier network.
network1:
192.168.1.0/24
- 192.168.1.2 local dns resolver, resolves *.home and forwards the rest (zerotier: 172.25.1.2)
- 192.168.1.3 machine1.home (zerotier: 172.25.1.3)
- 192.168.1.4 printer.home (no zerotier)
network2:
192.168.2.0/24
- 192.168.2.3 machine2.home (172.25.2.3)
zerotier:
172.25.0.0/16
The following should be possible:
-
on machine2.home (192.168.2.3)
ping printer.home (192.168.1.4) -
on machine1.home (192.168.1.3)
ping machine2.home (192.168.2.3) -
on mobile (iOS/Android)
with an active connection the dns resolver (192.168.1.2) will be used (for all 192.168.0.0/16 IPs).
ping machine1.home (192.168.1.3)
ping machine2.home (192.168.2.3)
This seem to require a little more routing than just using the zerotier network itself.
Is this feasible at all?
Or would you suggest to implement this a different way?