A
A
Anatoly Evladov2017-01-02 19:05:57
Mikrotik
Anatoly Evladov, 2017-01-02 19:05:57

Setting up MikroTik, how to set up access to the same address from outside and inside the local network?

In general, a question. There are two interfaces. From two different providers.
The interfaces themselves seem to be configured correctly (everything works and there are no problems, but since I did it according to the guides, I'm not completely sure)
. traffic walks the way it should walk. There is a domain, let it be test.example.com - it refers to the static IP that the first provider provides. And then through dst-nat there is forwarding to the local address.
I want that when I try to go to test.example.com inside the local network, I would also be redirected to this local address. Because now he is gone.
The most interesting thing is that if I enter test.example.com:9000 - I will get to this address. (9000 is the default port for the Play Framework), at the same time - I don’t see that I would have written that test.example.com looks at this local machine ... And when pinging from this local machine, it is the external address that is issued. ..
In general, I'm confused and don't understand how it works... can anyone help?...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wexter, 2017-01-02
@Wexter

wiki.mikrotik.com/wiki/Hairpin_NAT

A
akelsey, 2017-01-03
@akelsey

Probably, when connecting to port 9000, the Dst-NAT rule is triggered (apparently it is not specified what to listen on the external interface, so it works from the local network).
There are two options:
1. The first one has already been pointed out to you - hairpin nat (additional nat)
2. Static entry in the local dns (pointing to the local address - I have dns, for one and caching, for the network it is a microtic, previously there was a hairpin nat).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question