yuefy
发表于 2014-11-8 02:14:33
:local domain "bbs.routerclub.com";#域名
:local interfaces "pptp-out1";#接口
:local NewIP [:resolve $domain ];#解析新的IP
:local pptpIP connect-to ]; #获取拔号PPTP IP
if ($NewIP!=$pptpIP) do={/interface pptp-client set name="pptp-out1" connect-to=$NewIP;:log info "IP address changed!" };
注释都去掉就可了。
wssningzdm
发表于 2014-11-10 15:07:44
看看看........................