V
V
VN2020-11-17 09:03:06
Mikrotik
VN, 2020-11-17 09:03:06

How to split traffic between two ip addresses on the same port?

There is a network
external ip WAN: 11.22.33.44
Internal LAN: 192.168.2.0/24
This network has a mail server 192.168.2.100, which has published ports 80, 443, 25, 110, 587, 995, 143

The provider allocated a secondary ip (from different subnet) 33.55.66.77 which was added to the WAN interface.
Another mail server 192.168.2.200 was also introduced into the network, from which you need to publish the same ports 80, 443, 25, 110, 587, 995, 143.

Tell me how to differentiate traffic between these two ip addresses.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nApoBo3, 2020-11-17
@nApoBo3

Rules dst-nat, specify dst-ip in it and send traffic to the corresponding mail server.
You can also mark the connection and make a return route based on these marks, but it's easier to release each server through its own ip.
Then in src-nat you need to make two rules based on src-ip with an indication of the corresponding to-addresses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question