欢迎来到天天文库
浏览记录
ID:22860794
大小:69.00 KB
页数:12页
时间:2018-11-01
《ros软路由常用脚本集合》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、ROS软路由常用脚本集合转载自:创意安天论坛看完请指出错误 以及自己感想 如果自己有什么好的想法不妨说出来RouterOS监控脚本,断线报警,线路恢复自动解除报警:在/systemscript里添加脚本name=你要监控的ip内容如下:seti0:while($i=0)do={:beeplength=2sfrequency=2755;:delay5;:setaabc;:foreachiin=[/toolnetwatchfindhost=你要监控的ip]do={:seta[/toolnetwatchget$i
2、status]};:put$a;:if($a=up)do={:seti1}}然后再在/toolnetwatch里添加监控host=你要监控的ip在down里填写/systemscriptrun你要监控的ip:setshendown1[/systemclockgetdate]:setshendown2[/systemclockgettime]:setshendown("你要监控的ipdown".$shendown1."".$shendown2):logwarning$shendownROS小包策略:/ipfirewa
3、llmangleaddchain=forwardprotocol=tcptcp-flags=synaction=change-mssnew-mss=1440 comment=""disabled=noaddchain=forwar**2*=all-p2paction=mark-connection new-connection-mark=p2p_connpassthrough=yescomment=""disabled=noaddchain=forwardconnection-mark=p2p_connacti
4、on=mark-packet new-packet-mark=p2ppassthrough=yescomment=""disabled=noaddchain=forwardconnection-mark=!p2p_connaction=mark-packet new-packet-mark=generalpassthrough=yescomment=""disabled=noaddchain=forwardpacket-size=32-512action=mark-packetnew-packet-mark=s
5、mall passthrough=yescomment=""disabled=noaddchain=forwardpacket-size=512-1200action=mark-packetnew-packet-mark=big passthrough=yescomment=""disabled=no/queuetreeaddname="p2p1"parent=wanpacket-mark=p2plimit-at=600000queue=default priority=8max-limit=800000bu
6、rst-limit=0burst-threshold=0burst-time=0s disabled=noaddname="p2p2"parent=lanpacket-mark=p2plimit-at=800000queue=default priority=8max-limit=600000burst-limit=0burst-threshold=0burst-time=0s disabled=noaddname="ClassA"parent=lanpacket-mark=""limit-at=0queue
7、=default priority=8max-limit=100000000burst-limit=0burst-threshold=0 burst-time=0sdisabled=noaddname="ClassB"parent=ClassApacket-mark=""limit-at=0queue=default priority=8max-limit=0burst-limit=0burst-threshold=0burst-time=0s disabled=noaddname="Leaf1"paren
8、t=ClassApacket-mark=generallimit-at=0queue=default priority=7max-limit=0burst-limit=0burst-threshold=0burst-time=0s disabled=noaddname="Leaf2"parent=ClassBpacket-mark=smalllimit-
此文档下载收益归作者所有