As a newbie I have followed the manual for setting up my Mikrotik router. I have managed to gain internet access from my two servers connected to the router and access them locally via http and the local ip. I have one service running on http port 9000 one of the servers which I now try to reach through my external/public ip. I have done as described in the manual:
"Port Forwarding
Some client devices may need direct access to the internet over specific ports. For example, a client with an IP address 192.168.88.254 must be
accessible by Remote desktop protocol (RDP).
After a quick search on Google, we find out that RDP runs on TCP port 3389. Now we can add a destination NAT rule to redirect RDP to the client's PC.
/ip firewall nat add chain=dstnat protocol=tcp port=3389 in-interface=ether1 action=dst-nat to-address=192.168.88.254"
In this case I have done
/ip firewall nat add chain=dstnat protocol=tcp port=9000 in-interface=ether1 action=dst-nat to-address=192.168.88.253
as my server is running on the local ip 192.168.88.253 on port 9000.
After this I would expect to access my server through http://<my public ip>:9000 but I can't. Locally I can access it through http://192.168.88.253:9000. What I see is that I actually can access <my public ip>:80 which is interesting as I haven't done any forwarding of port 80, but maybe that is some default behavior.
What am I missing or doing wrong?
"Port Forwarding
Some client devices may need direct access to the internet over specific ports. For example, a client with an IP address 192.168.88.254 must be
accessible by Remote desktop protocol (RDP).
After a quick search on Google, we find out that RDP runs on TCP port 3389. Now we can add a destination NAT rule to redirect RDP to the client's PC.
/ip firewall nat add chain=dstnat protocol=tcp port=3389 in-interface=ether1 action=dst-nat to-address=192.168.88.254"
In this case I have done
/ip firewall nat add chain=dstnat protocol=tcp port=9000 in-interface=ether1 action=dst-nat to-address=192.168.88.253
as my server is running on the local ip 192.168.88.253 on port 9000.
After this I would expect to access my server through http://<my public ip>:9000 but I can't. Locally I can access it through http://192.168.88.253:9000. What I see is that I actually can access <my public ip>:80 which is interesting as I haven't done any forwarding of port 80, but maybe that is some default behavior.
What am I missing or doing wrong?
Statistics: Posted by janib — Thu Feb 29, 2024 3:30 pm