Answer the question
In order to leave comments, you need to log in
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
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 ...
Rent another IP from the provider and forward it to the client's server. Let him play)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question