System-Scripts-Add New
输入名称:DDNS
{
local ipaddr
local server “http://ddns.oray.com”
local par “/ph/update\?&myip=$ipaddr”
local users “xxx”
local paswd “xxxxx”
:set ipaddr [/ip address get [/ip address find interface=pppoe-out1] address]
:set ipaddr [:pick $ipaddr 0 ([len $ipaddr] -3)]
/tool fetch url=($server . $par) mode=http user=$users password=$paswd
}
System-Scheduler-Add New
在Interval里面设置请求频率:00:03:00,
然后On Event中输入
/system script run DDNS