S
S
Smoke User2021-06-08 13:33:03
Computer networks
Smoke User, 2021-06-08 13:33:03

How to forward the same port to different domains in Mikrotik?

Hello gentlemen,
I now have the following task:
One external IP address, two different subdomains are registered to this IP address.
this IP address is assigned in microte and plows.
One subdomain is fastened and plows, and the second goes to the first redirect immediately.
Nginx is installed on every LAN server

60bf46c6483e5208378924.jpeg

. Is this possible in Mikrotik?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Andrey Barbolin, 2021-06-08
@dronmaxman

Mikrotik will not destroy it.
You need a proxy.
Set up a proxy on one of the servers, traffic to the second server will go (proxied) through the first one.

R
Ruslan Fedoseev, 2021-06-08
@martin74ua

Forward to one server, raise nginx there and resolve it to different servers.

N
nApoBo3, 2021-06-08
@nApoBo3

You can try through the l7 firewall. Make two labels and select layer7 protocol in nat advanced.

V
Vladislav, 2021-06-09
@Wyrd

With a probability of 99%, it can be done by installing nginx in openwrt inside MetaROUTER on Mikrotik
- Mikrotik allows you to run "virtual" routers on itself (MetaROUTER feature)
- MetaROUTER supports openwrt
- you can install nginx on openwrt
- processing the HOST header (aka "domain") - this is one of the main features of nginx
. Here they do something similar, but more complicated (they generally raise the site in nginx inside MetaROUTER) - https://habr.com/en/post/248009/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question