I have been thinking about the problem for a few days now, maybe you guys can give me some sensible suggestions. Networking is a bit of a new topic for me and I may be confusing some concepts.
I need to connect 10 devices with the same IP (I can't change it). I want to be able to talk to them simultaneously.
The effect I want to achieve is as follows:
192.168.0.1 -> 10.0.0.250 on physical port 1
192.168.1.1 -> 10.0.0.250 on physical port 2
...
192.168.9.1 -> 10.0.0.250 on physical port 10
Is this possible?
I was thinking to create 10 VLANs, each in a different class and use the address of that class to indicate where the packet should go. Then change the source and destination IP and it is done. However, it is not that easy, in POSTROUTING you can only change the source IP, in the other direction the problem is similar - destination IP only in PREROUTING. I cannot change the IP in the FORWARD table, because it will go to the wrong interface. Besides, I wonder how ARP will work in all this. Even if I managed to change both IPs in POSTROUTING, will the MAC be entered correctly or is there no such option?
Of course, I'm not counting on a ready-made solution, but any tips on what I should read will be invaluable.
Thanks in advance and best regards.