I have my routerboard setup to use DDNS cloud services. And a hairpin NAT rule so that when users inside the LAN type the web address of an internal website not to route outside the network, but forward to the local address.
Note: The router sits between another nat and the internet, so the WAN of the router is not the public IP.
The problem is that when the public ip does change the DST.Address in the NAT rule must be changed manually (the router doesn't allow this address to be a URL like xxxxxxe.sn.mynetname.net which of course would make it easy as this address resolves to my public ip.
How can I pickup my public ip from /ip cloud (or another way) save it as a variable (or file) and then set the hairpin NAT rule DST.address to that ip?
Thanks in advance..