A
A
Andrey Filipov2015-12-12 08:38:33
Mikrotik
Andrey Filipov, 2015-12-12 08:38:33

MikroTik - how to forward ports from two external IPs?

There are 2 external channels, let's say 1.1.1.1 (ether4) and 2.2.2.2 (ether5), the local Mikrotik interface 192.168.0.1 (ether1) and the local web server 192.168.0.2
. Create 2 rules:

Chain: dstnat
Protocol: tcp
Dst. Port: 80
In. Interface: ether4
Action: dst-nat
To Addresses: 192.168.0.2

Chain: dstnat
Protocol: tcp
Dst. Port: 80
In. Interface: ether5
Action: dst-nat
To Addresses: 192.168.0.2

As a result, the first rule works, but the second does not. If you switch to a backup channel, then the second one starts working, and the first one stops. It is clear that the matter is in the routes, but how to configure so that 2 rules work simultaneously?
AS routes
dst-address=0.0.0.0/0 gateway=1.1.1.2 gateway-status=1.1.1.2 reachable via ether4 distance=2 scope=30 target-scope=10 routing-mark=ISP-1
AS dst-address=0.0 .0.0/0 gateway=2.2.2.3 gateway-status=2.2.2.3 reachable via ether5 distance=5 scope=10 target-scope=10 routing-mark=ISP-2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nimbo, 2015-12-12
@nimbo

well so show routing. I think you need labels.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question