Multi Public IP Upstream

Hi everyone,

I have some problem on mikrotik routing configuration.

We have 2 block network /28 Public IP with different gateway, and all Public IP listed on Mikrotik IP Address List.

On IP Route dst address 0.0.0.0/0 we set all gateway for different block network on same distance.

Route.jpg
For access server from public site, we used dst-NAT from pointed DNS Public IP to Local IP Server, and this no problem.

And we got a configuration problem for Upstream traffic, how to route traffic from Local Server to Internet using specific Public IP, because specific IP required for registering whitelist on 3rd party service.

If anyone has any solution about this I would really appreciate.

Zaqi

It’s same ISP for both networks, right? Because otherwise it shouldn’t work like this at all.

As for selecting the right address, you need specific srcnat rule for the server before other srcnat rules, e.g.:

/ip firewall nat
add chain=srcnat src-address=<server's internal address> action=src-nat to-addresses=<selected public address>