public IP and remote access

I’ve the question about remote access to my MT Hex Poe on public IP.

How to disable remote access to router from Internet (access only by LAN)?

https://wiki.mikrotik.com/wiki/Manual:Securing_Your_Router

Hello,
You need to make a firewall rule to drop all this request in a single interface.
In Firewall -» Filter
Add a new rule, select the Input chain,
In protocol select TCP
In Dst.port, type 21,22,23 (to drop ftp, telnet, ssh request)
Then in In.Interface select the internet interface
And finally in the Action tab, select Drop.

You have to make another similar rule but selecting UDP protocol.