routing networks

I’m using a rb750g to isolate 2 lan’s and connect them to a server, i have NAT’ed the 2 LAN’s to get access to the server and all work OK.

But now all the pc’s are seen in the server like 10.0.0.2, and I need to see each network with one diferent IP.

192.168.1.x → 10.0.0.3
192.168.2.x → 10.0.0.4

It’s this possible???
grp1.PNG

First add the two address 10.0.0.3 and 10.0.0.4 to the output interface.

Create 2 rules for nat. one for each subnet. Specify the source address on each rule (192.168.1.0/24)
Don’t use action masquerade but use action=src-nat, and write in to-src-address the ip of the output interface (10.0.0.3)

Works!!!

Fantastic, and now only for information, i’ts possible that the ip addresses (10.0.0.3,10.0.04) are assigned dinamicaly from server???

No,i don’t think it will work.