作者:admin人气:0来源:网吧系统下载站2015-04-14 10:38:33
映射脚本自动绑定到默认路由的接口更新IP
--------------对NAT规则备注名进行查找-----------------
:global adcmname "3389"
:global adgw [/ip route get [/ip route find static=yes active=yes dynamic=yes distance=1] gateway]
:global ip [/ip add get [find network=$adgw] address]
:global newip [:pick $ip 0 [:find $ip "/"]]
:global oldip [/ip fi nat get [/ip fi nat find comment=$adcmname] dst-address]
:if ($newip != $oldip) do={
:log info [/ip fi nat set [/ip firewall nat find comment=$adcmname] dst-address=$newip]
}
继续阅读:ROS
2016-12-21显微镜模拟软件(microscope) v2.5.0.23 绿色版
2016-12-20Microsoft Edge即将开始默认禁用Adobe Flash Player
2016-12-07ROS远程维护管理器2.63
2016-12-07ROS 6.X 流量过高发送邮件
2016-11-04DDNS动态域名脚本(花生壳+3322公云)for ROS 6.x
2016-10-10Rhinoceros 3D(犀牛软件) v5.13 SR13 破解版