RouterOS 实用脚本
2023-12-24 21:13:36
This post is also available in English and alternative languages.
更新 WireGuard peer 地址。
1 | :global ip [:resolve vpn.example.com] |
获取公网 IP。
1 | :global ip [([/tool/fetch "http://myip.dnsomatic.com/" output=user as-value]->"data")] |
获取网页 response body。
1 | :global result [([/tool/fetch "http://example.com" output=user as-value]->"data")] |
配置 NTP 服务器。
1 | /system ntp client |