The topology is simple, so I am skipping the diagram.
Computer A, ZeroTier address 192.168.192.6
Computer B (Gateway; in ZeroTier 192.168.192.2), physical address 192.168.1.101
I can ping the ZT address on Computer B from Computer A, but I can’t ping its physical address. I need to access the NVR at address 192.168.1.199
Internet advice suggests setting up iptables on a Linux OS. I have decided to do this on Windows. I probably have gaps in my theory. I understand that something needs to manage NAT, and forward my packet where I want it. Iptables consists of three parts (Filter table, Nat table, Magle table), Nat table is responsible for managing where the package should go, the Windows equivalent is the “route” command. That’s all I know.
Unfortunately, I can’t set this up properly. I should mention that there is a router at 192.168.1.1 in the network I want to access. I don’t know if that matters or not. Either way, I should be able to ping 192.168.1.101
In the ZeroTier configuration, in the section “192.168.1.0/24 via 192.168.192.2”
On computer B you have to make it possible to forward packets between the two network interfaces, the zerotier interface and the physical interface. When done you can ping 192.168.1.101
On network 192.168.1.0/24 you have to set a static route for network 192.168.192.0/24 via 192.168.1.101 just as you did on the zerotier network for 192.168.1.0/24 When done your NVR at 192.168.1.199 knows how packets can return to 192.168.192.6, not via the default gateway but via 192.168.1.101
Thx for answer. That’s a new topic for me. I am trying to understand the general concept.
I have writen in cmd (Computer A) : route add 192.168.1.101 mask 255.255.255.255 192.168.192.2
Now i can ping 192.168.1.101 (computer B physical adress). Ofc if i will delete this route, i will lose possibility to ping this.
But my target is reach 192.168.1.199 , so if You would lead me how to do it. Have I set static route where? On pc, which has adress 192.168.1.101 (Computer B) ? If I have understood You correctly: i have explain packet how to return to me… but is it a task for Computer B or router (192.168.1.1)?
I found solution. It wasn’t hard. Mr mdr has right. I added static routing on my router. It was first step. Second step was added route in A computer. Earlier i did it separately, so that’s why it didnt work.