In order to access a web server from the internet located on a private lan, we need to resort to the concept of dnat. My understanding is that dnat is kind of port forwarding. If someone on an external public network (e.g. the Internet) makes a connection to the web port (80) of a router's public address, they are transparently redirected to the ip address of the web server running on the internal network.
In a nutshell:
- router public ip: 159.149.xx.xxx
- web server private ip: 192.168.10.2
If someone tries to connect to 159.149.xx.xxx:80 it gets redirected to 192.168.10.2:80 Is that correct? dnat simply allows any host on the “outside” to get to a single host on the “inside”.
If my reasoning is right, can the same concept be applied to microtik routerboard? A technician from Microtik said that he enabled port ether5 to which it established an association with the internal subnet 192.168.10.0/24 A UPS web server has been placed on the same lan with static ip: 192.168.10.2 Now the guy said: please let me know the ports you want to be enalbled so that the UPS can be accessible from outside. Should I tell him: port 80? or any other port?
Thanks in advance.