I
I
Igor Krivintsov2020-07-13 14:02:34
Mikrotik
Igor Krivintsov, 2020-07-13 14:02:34

How to set up Mikrotik port forwarding?

Good afternoon, please tell me the solution in this matter.
There is office A with external ip 96.96.96.96 and office B with external ip 58.58.58.58 , office "A" has a server with a virtual machine, a VPN connection to office "B" is created in this machine. Port forwarding is configured on the virtual machine, and it is possible to go, for example, to this address 96.96.96.96:3389, everything is fine, but when VPN is connected, this option is not available. Since there is a checkbox to use the remote network gateway, you need to configure port forwarding in office "B" and only then will I go to the virtual machine. How to make it so that the VPN is connected and for access from outside use the ip of office "A
5f0c3ec08f350482274077.png
"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2020-07-13
@wizart23

/ip firewall nat add action=src-nat chain=srcnat dst-port=3389 protocol=tcp dst-address=192.168.88.33 to-addresses=192.168.88.1
where 192.168.88.1 - Mikrotik
192.168.88.33 - PS virtual machine
In a more general case, something like Policy-based Routing would be required https://habr.com/ru/post/101796/
https://habr.com/ru /post/114197/
But the problem is that this would have to be configured in a virtual machine, and Windows is too poor an OS for such tricky network tricks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question