So this is possibly a little odd but anyway.
I have 5 pieces of IP addressed hardware that are IP locked to 192.168.0.145, 146, 147, 148 and 149. These IPs are burned into their eeproms so cannot be altered, they cost $6k each and we cannot afford to replace them. The hardware server is on 192.168.0.48/24 (But I might try and change it to 172.16.0.48/16)
The server talks to the 5 pieces of hardware and picks up data for displaying on a web page (nginx with nodejs)
What we have is another 5 pieces of identical hardware that clash as they have the same IPs as the first. but I need to put them all on the same network / server now. I was wondering if I could do a double 1 to 1 NAT using 2 vyos routers (I have done this with simply NAT and pinholing previously)
(hardware A)192.168.0.145 <-- |1 to 1 vyos| 172.16.0.145 <-- |1 to 1 vyos| 192.168.0.135 <— 192.168.0.48(server) --> 192.168.0.145(hardware B)
and repeat this for 146, 7, 8 and 9
this way I can run all 10 off one server on one network subnet.
Is this possible?
or is there a better / simpler way in vyos?
Otherwise I guess I could have 10 vyos routers each doing port forwarding as pairs, but 2 routers is way easier to look after than 10.
I would do this on a x86 laptop (as I have one so free) but would prefer something low powered like say 1 or 2 raspberry pi (I have 2 so free) as it needs to run for 10 hours at a remote location off a battery.