Community discussions

MikroTik App
 
zaqiramdhani
just joined
Topic Author
Posts: 1
Joined: Sat Jan 22, 2022 11:37 am

Multi Public IP Upstream

Sat Jan 22, 2022 1:14 pm

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
You do not have the required permissions to view the files attached to this post.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Multi Public IP Upstream

Mon Jan 24, 2022 12:55 am

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>

Who is online

Users browsing this forum: CGGXANNX, stanisljevic and 84 guests