I use some Nat rules in order to have access to some local devices when I am outside my network also I use a rule in order to use the same address ( MikroTik cloud address) when I am on my local network, my issue is when my provider change the ip I have to set all the rules again . Is there a way to use cloud address on Nat rules or an other way to keep them update.
My knowledge is not great so sorry if I didn’t use the proper names .
Example : on synology photo app I use on local network and external the address ******.sn.mynetname.net:3001 if my provider change the ip my external works ok but my internal doesn’t .
So I understand that you want to use the same name both inside and outside your local network, is that correct? If not, can you send your current configuration, with sensitive bits redacted?
You can use an address list in your rules, something like this one (example for the WAN interfaces). Don’t forget to replace with your values.
/ip/firewall/address-list/add list=myextname address=<your ext name>
/ip/firewall/nat/add action=dst-nat dst-address-list=myextname to-addresses=<internal IP> in-interface-list=WAN [rest of the rule as needed]
NOTE: exposing a NAS to the Internet is very risky. A better solution is to use a VPN when you need the access.