N
N
Nikolay2020-01-01 22:44:49
Computer networks
Nikolay, 2020-01-01 22:44:49

Mikrotik NAT between two LANs?

There is a host with Cloud Hoster Router from Mikrotik in the cloud. There is an external IP through which I want to forward ports.
There is a network at home, with the help of virtualization, I made a network of virtual machines, which have another MikroTik (virtual machine) as a router.
I have already connected these machines to each other, firstly I made an L2TP connection between them, set up a GRE tunnel.
The bottom line is that I can ping local machines on both sides, I can even get access to them.
I tested this by connecting to one of the host via vpn and logging into a machine with a different local subnet via RDP.
But no matter how I tried, the NAT rule didn't work. No traffic forwarding. Although everything is fine inside your own network and the rules work, but on the network of another router, the rule does not work either there or there.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai, 2020-01-02
@SODINNER

It turns out that he did everything right, L2TP and GRE were the solution to the problem. The only problem was the absence of a masquerade in one of the routers, because on the first one I immediately installed it so that I had access to the Internet.
Well, then, as usual, I made the dst-nat rule through NAT and it worked.

H
Harry, 2020-01-20
@garriad

it’s better to use VRF here, it will be better if I understand everything correctly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question