找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2724|回复: 2

[脚本] 谁帮我看下这些脚本说明意思

[复制链接]
发表于 2009-10-28 19:47:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
:global ip [ /ip address get [/ip address find interface=pppoe-out1] address ]
:global new-ip [:pick $ip 0 [:find $ip "/"]]
:global old-ip [/ip fi nat get [/ip fi nat find comment="8089"] dst-address]
:if ($new-ip != $old-ip) do={
        :log info [/ip fi nat set [/ip firewall nat find comment="8089"] dst-address=$new-ip]
        :log info "〖8089映射修改完毕〗"
}
routeros
发表于 2009-10-28 20:34:37 | 显示全部楼层
这是动态IP修改影射8089端口。
routeros
回复

使用道具 举报

发表于 2009-10-28 21:29:27 | 显示全部楼层
这个脚本有点太累 了吧  每次运行都要读取2个参数 来对比
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-9-30 03:26 , Processed in 0.095058 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表