K
K
ks3122019-09-15 21:42:39
Virtualization
ks312, 2019-09-15 21:42:39

How to configure the router so that you can directly set the ip to the virtual machine?

Hello. The problem is this: there is a server with client virtual machines. Mikrotik is on the perimeter and access from the outside to virtual machines is carried out through portmapping, white ips are entered on the micro. Tell me please, who knows how it is possible to organize so that the user himself can register "white" without portmapping, how is it organized by those who provide VDS services? Thanks in advance

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey c0re, 2019-09-15
@erge

mikrotik multiple ip addresses on one interface
see Mikrotik multiple ip addresses on one wan interface
...
/ip address add address=1.1.1.3/29 interface=WAN
....
Next, a list of NetMap addresses to which we “bind” white ones
/ip firewall nat add chain=srcnat src-address=192.168.0.3 action=netmap to- addresses=1.1.1.3
/ip firewall nat add chain=dstnat dst-address=1.1.1.3 action=netmap to-addresses=192.168.0.3
write a microtik script that will “communicate” with another script from the admin panel via fetch (for example, PHP, Node, Python, and whatever), which will take data from the database and give the microtik script which white IP to map to which one in LAN.
then, respectively, the three commands described above will be executed
- bind an external IP to the WAN
- natit a local one to this IP
- and do netmap back something
like this ...

A
Andrey Barbolin, 2019-09-15
@dronmaxman

Rent another IP from the provider and forward it to the client's server. Let him play)

S
Sasha Odarchuk, 2019-09-15
@Fanta

I did this https://forummikrotik.ru/viewtopic.php?t=7672

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question