交换机设置定时脚本发送get请求

{
local server "http://192.168.1.58:8999/dynamicdns"
:local ipaddr [/ip address get [/ip address find interface="pppoe-out1"] address]
:set ipaddr [:pick $ipaddr 0 ([len $ipaddr] -3)]
local par "\?&ip=$ipaddr"
/tool fetch url=($server . $par) mode=http 
/ip firewall address-list add address=$ipaddr disabled=no list=pppoe
}

猜你喜欢

转载自blog.csdn.net/qq_30920479/article/details/103973378