tarian 发表于 2009-2-5 16:20:06

求ARP没有绑定就报警的脚本

求一个没有绑定ARP没有绑定就报警并此IP不能上网的脚本。ARP没有绑定就不能上网我已经知道怎么设置。现在需要这个脚本。08年做过,但忘记了。只有备份。谁能帮我恢复一下这个脚本吗?

\n:set mac \[/ip arp \rce=":global mac
\n:if \(\$mac != \"0\"\) \\] mac-address \]
\n:beep length=1s \requency=1046
\n:delay \ngth=1s frequency=1318
\n:beep length=1s \requency=1397
\n:delay \ngth=1s frequency=1760
\n:beep length=1s \requency=1976
\n:log info \(\"somebody had changed the \
    IPneed manager check it!\"\)}" \
    policy=ftp,reboot,read,write,policy,test,winbox,password

zooyo 发表于 2009-2-5 23:06:44

哎,论坛成了许愿森林,自己看看学着做嘛,挺简单的。

tarian 发表于 2009-2-6 07:47:06

哎,论坛成了许愿森林,自己看看学着做嘛,挺简单的。
zooyo 发表于 2009-2-5 23:06 http://bbs.routerclub.com/images/common/back.gif
会做我就不会发论坛上来啦。

zooyo 发表于 2009-2-6 09:31:42

禁用客户机地址也简单,判断条件后,加入源地址列表里,再在防火墙里加条规则,这些源地址的IP访问ROS,DROP,就完了。

tarian 发表于 2009-2-7 22:34:37

已经自己通过GOOGLE找到的各种脚本延伸了一个,和原来的差别好像很大,版主帮助修改一下呢:
:foreach i in do={
:beep length=1s frequency=1046
:delay 400ms
:beep length=1s frequency=1175
:delay 200ms
:beep length=1s frequency=1318
:delay 200ms
:beep length=1s frequency=1175
:delay 150ms
:beep length=1s frequency=1397
:delay 150ms
:beep length=1s frequency=1318
:delay 200ms
:beep length=1s frequency=1175
:delay 200ms
:beep length=1s frequency=1046
:delay 100ms
:beep length=1s frequency=976
:delay 100ms
:beep length=1s frequency=1046
:delay 100ms
:beep length=1s frequency=988
:delay 100ms
:beep length=1s frequency=1046
:delay 100ms
:beep length=1s frequency=1175
:delay 200ms
:beep length=1s frequency=988
:delay 150ms
:beep length=1s frequency=784
:delay 300ms
:beep length=1s frequency=0
:delay 500ms
:beep length=1s frequency=1046
:delay 400ms
:beep length=1s frequency=1175
:delay 200ms
:beep length=1s frequency=1318
:delay 200ms
:beep length=1s frequency=1175
:delay 150ms
:beep length=1s frequency=1397
:delay 150ms
:beep length=1s frequency=1318
:delay 200ms
:beep length=1s frequency=1175
:delay 200ms
:beep length=1s frequency=1046
:delay 100ms
:beep length=1s frequency=976
:delay 100ms
:beep length=1s frequency=1046
:delay 100ms
:beep length=1s frequency=988
:delay 100ms
:beep length=1s frequency=1046
:delay 100ms
:beep length=1s frequency=1175
:delay 200ms
:beep length=1s frequency=988
:delay 150ms
:beep length=1s frequency=1046
:delay 200ms
:log info ("somebody had changed the IPneed manager check it!")
}

jykgcx 发表于 2009-2-8 02:49:46

:loveliness:
页: [1]
查看完整版本: 求ARP没有绑定就报警的脚本