Use windows 10 as router
I've 8 device split in 2 same groups:
. groups 1: 4 device with IP 192.168.0.1, 192.168.0.2, 192.168.0.3 and 192.168.0.4
. groups 2: 4 device with IP 192.168.0.1, 192.168.0.2, 192.168.0.3 and 192.168.0.4
Device groups 1 are connected with a pc windows 10 with 2 network card: one NIC has ip 192.168.0.254 and the other NIC has ip 10.0.0.1
Device groups 2 are connected with a pc windows 10 with 2 network card: one NIC has ip 192.168.0.254 and the other NIC has ip 10.0.0.2
An other main pc windows 10 (ip 10.0.0.254) has to connect with all the devices throught the pc windows 10 of each group, but since the devices of group 1 have the same ip of devices group 2, each devices has to masquerade as 172.16.x.y (x=number of group, y= number of device).
I've add the route in main pc 172.16.1.0/24 gw 10.0.0.1 and 172.16.2.0/24 gw 10.0.0.2.
Now I need to make something on the pc windows 10 of each group for take the request 172.16.x.y from the main pc to the correct device 192.168.
How can I make this?