2 以L2TP为例
请在您作为服务器端的RouterOS设备上开启VP*账号(ppp/secrets),并开启L2TP服务,然后system/scripts增加以下内容的脚本,并在计划任务(system/scheduler)中让其每60秒执行一次。
脚本中红色的user和password,分别替换为您在99ht.com注册的登陆名和密码。
{
local ipaddr
local user "user"
local psw "password"
:set ipaddr [/ip address get [/ip address find interface=pppoe-out1] address]
:set ipaddr [:pick $ipaddr 0 ([len $ipaddr] -3)]
local server "http://ip.99ht.com:8077"
local par "/update.asp?user=$user&ip=$ipaddr&psw=$psw"
/tool fetch url=($server . $par) mode=http
}