Multiple ips to an interface

Hello!

I have a routerboard 493

At eth1 i have setup 2 ips (10.0.0.1 and 10.0.0.2) every 10.0.bla..bla ip translated to another public ip

At eth2 i have a subnet (192.168.0.0/25)

At eth3 i have a subnet (192.168.1.0/25)

My target is a way to setup the router:

If someone from the eth2 wants internet gets out with 10.0.0.1 ip
If someone from the eth2 wants internet gets out with 10.0.0.2 ip

Thanks…

At eth1 i have setup 2 ips (10.0.0.1 and 10.0.0.2) every 10.0.bla..bla ip translated to another public ip

I am not sure what that means. blah blah? What device is doing the NAT?

If someone from the eth2 wants internet gets out with 10.0.0.1 ip
If someone from the eth2 wants internet gets out with 10.0.0.2 ip

I assume that’s a typo - you’re mentioning eth2 twice?

If you’re asking how you can source NAT 192.168.0.0/25 to 10.0.0.1 and 192.168.1.0/25 to 10.0.0.2 given that 10.0.0.1 and 10.0.0.2 are IP addresses assigned to ether1, this would do:

/ip firewall nat
chain=srcnat out-interface=ether1 src-address=192.168.0.0/25 action=src-nat to-address=10.0.0.1
chain=srcnat out-interface=ether1 src-address=192.168.1.0/25 action=src-nat to-address=10.0.0.2

If that isn’t what you’re asking please explain in more detail.