O
O
ODISW2015-10-15 15:25:49
Mikrotik
ODISW, 2015-10-15 15:25:49

How to connect several WEB servers to one external IP via Mikrotik?

There is RB951 OS v.6.32.2, as well as 2 hardware WEB servers on Mikrotik ports, a local network with ESXi and a virtual WEB server, and one "white" external IP.
Hardware WEB servers are normally visible from the outside and share one IP through Mikrotik's WebProxy (in "back to front" mode) and Mikrotik's static DNS settings.
It was decided to add another WEB server on a virtual machine running ESXi, which is connected to the local network.
The virtual server site is visible in the local area by the internal IP and domain name. The domain is registered to an existing "white" IP. But from the outside, the site is not visible by the domain name.
Difference in connections: hardware servers are connected directly to the Mikrotik ports, and the virtual server is connected via ESXI and a LAN switch to the Mikrotik port.
In what direction do you need to "dig" to solve this problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cool Admin, 2015-10-15
@ifaustrue

It looks like you need to dig proxy settings (which is backwards), but I don't understand why you need it.
Get nginx up and running in two minutes and use the default DNAT rule on MK. Further, it will only be necessary to ensure traffic from nginx to the web servers, and open the 80th ports on the web servers. SSL, if necessary, can also be "removed" on nginx'e.

M
Maksim, 2015-10-16
@chumayu

In fact, you need to do the following:
1. Do not fence a garden with a bunch of web machines, but do everything on one (apache - virtual server) - well, a recommendation, if possible.
2. If they are separated, we still open our own external port for each server (the internal one can remain 80) and execute the rule in DNAT Mikrotik and turn off all kinds of proxy hueksi there.
It turns
out the external ip: port 82 ->DNAT-> ext.ip of some server: 80
external ip: port 81 ->DNAT-> ext.ip of some server: 80
external ip: port 80 ->DNAT-> ext.ip of some server :80
and that's all but remotely access machines http://external_ip:port

O
OsyaBender, 2015-10-15
@OsyaBender

Try forwarding port 80 to the address of the virtual machine. But, most likely, working web servers will no longer be available.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question