Hi, is there a way to change the RB951Ui-2HnD Router admin port 80 to 8080? I have a web server on the LAN side that has port 80 hard coded and cannot be changed. So when I want to access this server remotely on port 80 all I get is the router console gui.
Thanks.
/ip service
set www port=8080
I believe ip services are for router itself only.
What you want is to create a custom dstnat rule: destination port - 8080, to ports: 80.
Ports in “/ip services” are for router in a way that services running on router use them. So if you want WebFig on port 8080, change it there and it will listen on port 8080.
But it will not solve OP’s problem, because if there was correct dstnat rule for internal webserver, if would have worked even with WebFig on port 80. It’s because dstnat is first thing that happens and decides if packets will go to router itself or elsewhere. Moving WebFig to different port won’t change anything, the key is still correct dstnat rule.
Besides the above remarks; make sure that your routers services are not publically available. If you want remote access to your router, please use VPN.