How to connet to multiple networks with same Ip address range

I have a scenario that I need to be able to communicate with multiple networks with same Ip address ranges in different networks.

Imagine that I need to run Nmap from a container on multiple networks with same Ip address range ( on differenet interfaces ) .

network of peer_1 => 192.168.1.0/24
network of peer_2 => 192.168.1.0/24
network of peer_3 => 192.168.1.0/24

I need to be able to communitcate with all of those 192.168.1.0/24 ip addresses of peers.

Can zerotier make a NAT or something for me that I could set a virtual subnet for each 192.168.1.0/24 and communicate with that virtual subnet ? ( 1-to-1 NAT would be ok in my opinion, to nat whole subnet to another ip range )

I mean when I run Nmap on 172.17.1.0/24, zerotier would translate it to 192.168.1.0/24 on peer_1
And
When I run Nmap on 172.17.2.0/24, zerotier would translate it to 192.168.1.0/24 on peer_2
And
When I run Nmap on 172.17.3.0/24, zerotier would translate it to 192.168.1.0/24 on peer_3

What is the solution ?

You’re going to have this issue no with or without ZeroTier as this is a general networking issue. You’d have the same problem if you had 3 ethernet cards on a computer plugged into 3 different networks with the same IP ranges.

No, ZeroTier can’t do this for you. Your best bet is to either re-address the networks so they don’t overlap, or connect to them one at a time.

Thanks for your reply, please take a look at this :

he has my problem too, the address in both LANs are the same

Can I use this approach ?

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