NAT Question

Hi everyone,

I’m after a bit of help with a NAT question… I know what I want to do, but I’m not sure how to do it with RouterOS.

I’ve got 1x RB450G with 2x public IP’s assigned to Eth1 (1.2.3.4 + 1.2.3.5) and Eth2 has a private IP address assigned, serving the internal network (10.10.10.1/24)

I’ve then got a whole network of servers & devices which I want to NAT all inbound and outbound traffic to the public IP 1.2.3.4

I’ve also got a separate server (Server 2) which I want to NAT all inbound and outbound traffic to the public IP 1.2.3.5

To clarify this a little, here’s a diagram:

I might be over thinking this, but the way I am thinking I need to do this is create 4x NAT rules:

srcnat, source address: 10.10.10.5, out interface: eth1, to address: 1.2.3.5
srcnat, source address: 10.10.10.0/24, out interface: eth1, to address: 1.2.3.4
dstnat, dest address: 1.2.3.5, in interface: eth1, to address: 10.10.10.5
dstnat, dest address: 1.2.3.4, in interface: eth1, to address: 10.10.10.0/24

That could be totally wrong, but I hope you guys can clarify this for me!

Thanks,

Verta

That should work. You don’t need the last rule though.

Cheers - it all worked fine, I don’t know what I was stumped on… it just didn’t seem right in my head!