3 is used after print command, you can accomplish print and store to buffer information about number.
Add ‘comment’ field to NAT rule, then use ‘find’ option to change dst-address for this rule.
I owe you one big ass beer. Of all the things I tried…that wasn’t one of them.
Works perfect. Here is the completed very basic script. But will allow me to update the nat IP when the pppoe ip changes. then all I have to do is check the address from no-ip.com and can rdp into the system.
:global pppoe-ip Verizon-pppoe-out
:local pppoe-ip [/ip route get [/ip route find interface=$pppoe-ip] pref-src]
/ip firewall nat set [find
comment=“RDP1”] dst-address $pppoe-ip
You can remove the dst-address from the nat rule and just specify incoming interface. This removes the need to hardcode your IP in the rule. Perfect for cable modem / dsl addresses.