Feasible zerotier setup?

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:

  1. on machine2.home (192.168.2.3)
    ping printer.home (192.168.1.4)

  2. on machine1.home (192.168.1.3)
    ping machine2.home (192.168.2.3)

  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?

Anyone with some input?
Would be greatly appreciated.

Setup in your Zerotier network a route: 192.168.1.0/24 via 172.25.1.2
In network1 you have to setup a static route: 172.25.0.0/16 via 192.168.1.2

That’s it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.