Answer the question
In order to leave comments, you need to log in
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
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
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question