hx99 发表于 2012-4-9 16:45:44

RouterOS 每10分钟统计内网上线客户机脚本 免费的

本帖最后由 hx99 于 2012-4-9 16:47 编辑

/ip firewall mangle
add chain=prerouting src-address=172.16.0.0/16 action=add-src-to-address-list address-list=lan address-list-timeout=10m

/system scheduler
add comment="" disabled=no interval=10m name=ClientNUM2 on-event=":global s 0\r\
\n:foreach i in= do={:set s (\$s+1)}\r\
\n:log info (\"\B5\B1\C7\B0\" . \$s . \"\CC\A8\BF\CD\BB\A7\BB\FA\D4\DA\CF\DF\")" policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 start-time=00:00:00/ip firewall mangle
add chain=prerouting src-address=172.16.0.0/16 action=add-src-to-address-list address-list=lan address-list-timeout=10m

/system scheduler
add comment="" disabled=no interval=10m name=ClientNUM2 on-event=":global s 0\r\
\n:foreach i in=lan] do={:set s (\$s+1)}\r\
\n:log info (\"\B5\B1\C7\B0\" . \$s . \"\CC\A8\BF\CD\BB\A7\BB\FA\D4\DA\CF\DF\")" policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 start-time=00:00:00

hx99 发表于 2012-4-9 16:48:24

脚本网上找的测试了一下5.13可以正常用低版本肯定没问题

mywangba 发表于 2012-4-9 17:30:40

5.8通过。。。。

13858496723 发表于 2012-5-2 16:13:44

address list 记录就可以实现 用计划任务
页: [1]
查看完整版本: RouterOS 每10分钟统计内网上线客户机脚本 免费的