Fri May 13, 2022 10:31 pm
Hello Moron!
I am not sure I could understand you well.
Do you want to create a port fordward? Do you need that some connection origined outside could reach the VM?
In this case, if you have a VM with an IP in the same subnet than your router, you just need to create a dst-nat as follows:
* Through gui should be easier I think, so open winbox and connect to the router
* Go to IP -> Firewall -> Click on the "NAT" tab
* Click in the plus signal to create a new destination nat
- In "Chain" select "dstnat"
- In "Protocol" select the protocol you will use (Probably TCP)
- In "Dst. Port" write the port number you need to use to connect from outside
- In "In Interface" or "In Interface List" select your WAN interface
Go to "Action" tab
- In "Action" select dst-nat
- In "To Addresses" write the private IP of your VM
- Keep "To Ports" empty if you want to use the same port in "Outside -> Router" than in "Router -> VM", if not you can set there the internal port
* Click "Ok" to create the dst-nat rule
* Test
Regards,
Damián