RouterOS 实用脚本
2023-04-09 12:57:10
更新 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 |