Peer2peer between 2 teltonika rut 955

Hello,
i have a prolem with 2 router teltonika rut955.
I need to use the peer to peer function of 2 moxas using port 9020, one moxa is connected via LAN (192.168.1.10) on a router teltonika rut955 (192.168.1.1) the other is the same.
I forwarded the port 80 for the web interface of the moxa and i can access the moxa. Right now i’m trying the same, adding up a forward of the port 9020.

moxa1(192.198.1.10:9020) → router1(192.168.1.1:9020)->ZeroTier (10.147.17.A:9020) → ZeroTier (10.147.17.B:9020)->router2(192.168.1.1:9020)->moxa2(192.198.1.10:9020). i can’t understand why it isn’t working.

What is the “peer to peer function”? Do the moxas expect to be on the same subnet?

it’s used to perform remote operations, for example with a digital input on one side, i energize the output on the other.
like in this video: moxa peer to peer - YouTube
If the 2 moxa are in the same subnet (obviously with different IP) it works, but using the router is different, so i forwarded the ports on ZeroTier.

I think I understand. I’m not sure port forwarding is the best solution.

You should use unique subnets behind each router.

moxa1(192.168.101.10) → router1 (192.168.101.1) → zerotier-network → router2(192.168.102.1) → moxa2(192.168.102.10)

Then in my.zerotier.com you can add managed routes
[192.168.101.0/24] via 10.147.17.A
[192.168.102.0/24] via 10.147.17.B

Then there is probably some routing settings in teltonika to do, but I don’t know the specifics of teltonika management. I’m sure there are tutorials online.

This routing setup will let devices on physical LAN A and physical LAN B talk to each other.