A
A
Andrew2016-09-04 00:47:55
Mikrotik
Andrew, 2016-09-04 00:47:55

Port forwarding through 2 Mikrotik?

Good day!
I've been suffering all day, I can't forward ports through 2 Mikrotiks.
The scheme is such that there is a main microtic, the Internet comes to it with dhcp 192.168.0.1, the second microtic with dhcp 192.168.88.1 is connected to it via optics in another building, 4 ip cameras are connected to this microtic, say 192.168.88.64 for example, the camera communicates with a mobile application over 8000 port.
Scheme
31.31.xx.xx[Internet white ip static]>>>192.168.0.1[dhcp 1building 1]>>>192.168.0.3[building 2]>>>192.168.88.1[dhcp 2 building2]>>>192.168.88.64 [ip of the camera]
in the nat settings of the first router, wrote the following

add action=masquerade chain=srcnat out-interface=WAN1
add action=dst-nat chain=dstnat dst-port=8000 in-interface=WAN1 protocol=tcp \
to-addresses=192.168.1.3 to-ports=8000

settings of the second nat router
add action=masquerade chain=srcnat out-interface=ether1
add action=dst-nat chain=dstnat dst-port=8000 in-interface=ether1 protocol=tcp \
to-addresses=192.168.88.64 to-ports=8000

I tried to experiment, changed the first setting to port 80, the admin panel of the second router opens - it means that the first router copes with the task of forwarding, but then for some reason it doesn’t want to ...
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HawK, 2016-09-04
@HawK3D

Try action=netmap instead of action=dst-nat.

A
akelsey, 2016-09-05
@akelsey

Setting up a normal routing is needed here. From the description, unfortunately, little is clear, starting with the phrase "there is a main mikrotik, the Internet comes to it with dhcp 192.168.0.1
"
specify the gateway where to look for 88.1, on 88.1 specify where to look for 0.1, cameras with the default gateway 88.1, after that it is enough to enable the forwarding rule on the border microtic to the desired port on 88.x/24 cameras.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question