★我要吧★

 找回密码
 注册[Register]
搜索
qq空间相册密码查看为什么登陆后需要激活无法注册?

[分享] 网吧专用ROS软路由常用脚本集合大全txt下载┆限速、映射、ROS断线恢复等(精华)

[复制链接]
发表于 2009-8-14 01:52:19 | 显示全部楼层 |阅读模式

内容非常多,也很经典,给大家复制部分,其它的自己下载吧,在内网中用处非常大。

RouterOS监控脚本,断线报警,线路恢复自动解除报警:
在/system script里添加脚本
name=你要监控的ip
内容如下
:set i 0
:while ($i=0) do={:beep length=2s frequency=2755;:delay 5;:set a abc;\
:foreach i in=[/tool netwatch find host=你要监控的ip] \
do={:set a [/tool netwatch get $i status]};:put $a;:if($a=up) do={:set i 1}}

然后再在/tool netwatch里添加监控
host=你要监控的ip
在down里填写
/system script run 你要监控的ip
:set shendown1 [/system clock get date]
:set shendown2 [/system clock get time]
:set shendown ("你要监控的ip down " . $shendown1 . " " . $shendown2)
:log warning $shendown
ROS小包策略:
/ ip firewall mangle
add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440  comment="" disabled=no
add chain=forwar* *2*=all-p2p action=mark-connection  new-connection-mark=p2p_conn passthrough=yes comment="" disabled=no
add chain=forward connection-mark=p2p_conn action=mark-packet  new-packet-mark=p2p passthrough=yes comment="" disabled=no
add chain=forward connection-mark=!p2p_conn action=mark-packet  new-packet-mark=general passthrough=yes comment="" disabled=no
add chain=forward packet-size=32-512 action=mark-packet new-packet-mark=small  passthrough=yes comment="" disabled=no
add chain=forward packet-size=512-1200 action=mark-packet new-packet-mark=big  passthrough=yes comment="" disabled=no
/ queue tree
add name="p2p1" parent=wan packet-mark=p2p limit-at=600000 queue=default  priority=8 max-limit=800000 burst-limit=0 burst-threshold=0 burst-time=0s  disabled=no
add name="p2p2" parent=lan packet-mark=p2p limit-at=800000 queue=default  priority=8 max-limit=600000 burst-limit=0 burst-threshold=0 burst-time=0s  disabled=no
add name="ClassA" parent=lan packet-mark="" limit-at=0 queue=default  priority=8 max-limit=100000000 burst-limit=0 burst-threshold=0  burst-time=0s disabled=no
add name="ClassB" parent=ClassA packet-mark="" limit-at=0 queue=default  priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s  disabled=no
add name="Leaf1" parent=ClassA packet-mark=general limit-at=0 queue=default  priority=7 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s  disabled=no
add name="Leaf2" parent=ClassB packet-mark=small limit-at=0 queue=default  priority=5 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s  disabled=no
add name="Leaf3" parent=ClassB packet-mark=big limit-at=0 queue=default  priority=6 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s  disabled=no

ROS封杀常用P2P策略脚本:
/ ip firewall filter
add chain=input protocol=udp dst-port=137-138 action=drop comment="drop udp137-138"
# 讯雷
add chain=forward protocol=tcp dst-port=3076-3079 action=drop comment="downTools Xunlei" disabled=yes
add chain=forward dst-address=202.96.155.91/32 action=drop
add chain=forward dst-address=210.22.12.53/32 action=drop
add chain=forward dst-address=61.128.198.97/32 action=drop
# 电骡
www.abc369.net   我要吧   qq空间破解技术交流专业论坛
add chain=forward protocol=tcp dst-port=4661 action=drop comment="downP2P VeryCD"
add chain=forward protocol=tcp dst-port=4662 action=drop
add chain=forward protocol=tcp dst-port=4242 action=drop
add chain=forward dst-address=62.241.53.15/32 action=drop
# 屁屁狗(PPGOU)
add chain=forward protocol=tcp dst-port=8505 action=drop comment="downTools PPGOU"
add chain=forward dst-address=219.153.0.152/32 action=drop
add chain=forward dst-address=61.145.116.186/32 action=drop
# KUGO酷狗
add chain=forward protocol=tcp dst-port=3318 action=drop comment="downMP3 KUGO" disabled=yes
add chain=forward protocol=tcp dst-port=1043 action=drop disabled=yes
add chain=forward protocol=tcp dst-port=4224 action=drop disabled=yes
add chain=forward protocol=tcp dst-port=2371 action=drop disabled=yes
add chain=forward protocol=udp dst-port=7000 action=drop disabled=yes
add chain=forward dst-address=218.16.125.227/32 action=drop disabled=yes
add chain=forward dst-address=61.143.210.56/32 action=drop disabled=yes
add chain=forward dst-address=218.16.125.226/32 action=drop disabled=yes
add chain=forward dst-address=61.129.115.206/32 action=drop disabled=yes
add chain=forward dst-address=61.145.114.33/32 action=drop disabled=yes
# RF online
add chain=forward dst-address=218.30.85.16/32 dst-port=8888 action=accept comment="RF online"
add chain=forward dst-address=59.34.215.133/32 dst-port=8888 action=accept
add chain=forward dst-address=60.28.26.66/32 dst-port=8888 action=accept
# 比特精灵
add chain=forward protocol=tcp dst-port=16881 action=drop comment="downP2P BitSpirit"
add chain=forward protocol=tcp dst-port=6881-6890 action=drop
add chain=forward protocol=tcp dst-port=8881-8890 action=drop
add chain=forward protocol=udp dst-port=16881 action=drop
add chain=forward protocol=udp dst-port=6881-6890 action=drop
add chain=forward protocol=udp dst-port=8881-8890 action=drop
# 宝酷
add chain=forward protocol=tcp dst-port=6346 action=drop comment="downP2P BaoCue"
add chain=forward protocol=tcp dst-port=11300 action=drop
add chain=forward dst-address=61.172.197.196/32 action=drop
add chain=forward dst-address=218.1.14.3/32 action=drop
add chain=forward dst-address=218.1.14.4/32 action=drop
add chain=forward dst-address=218.1.14.9/32 action=drop
add chain=forward dst-address=61.172.197.209/32 action=drop
add chain=forward dst-address=61.172.197.197/32 action=drop
add chain=forward dst-address=218.1.14.5/32 action=drop
add chain=forward dst-address=218.5.72.118/32 action=drop
add chain=forward dst-address=61.172.197.196/32 action=drop
# 百事通下载工具
add chain=forward dst-address=61.145.126.150/32 action=drop comment="downP2P Bai****ong"
# 百度MP3下载
add chain=forward dst-address=202.108.156.206/32 action=drop comment="downMP3 BaiDuMP3" disabled=yes
# PTC下载工具
add chain=forward protocol=tcp dst-port=50007 action=drop comment="downP2P PTCdown"
# eDonkey2000下载工具
add chain=forward protocol=tcp dst-port=4371 action=drop comment="downP2P eDonkey2000"
add chain=forward protocol=tcp dst-port=4662 action=drop
add chain=forward dst-address=62.241.53.15/32 action=drop
add chain=forward dst-address=62.241.53.17/32 action=drop
# Poco2005
add chain=forward protocol=udp src-port=8094 action=drop comment="downP2P Poco2005"
add chain=forward protocol=tcp dst-port=2881 action=drop
add chain=forward protocol=tcp dst-port=5354 action=drop
add chain=forward dst-address=61.145.118.224/32 action=drop
add chain=forward dst-address=210.192.122.147/32 action=drop
add chain=forward dst-address=207.46.196.108/32 action=drop
# 卡盟
add chain=forward protocol=tcp dst-port=3751 action=drop comment="downP2P KAMUN"
add chain=forward protocol=tcp dst-port=3753 action=drop
add chain=forward protocol=tcp dst-port=4772 action=drop
add chain=forward protocol=tcp dst-port=4774 action=drop
add chain=forward dst-address=211.155.224.67/32 action=drop
# 维宇RealLink
add chain=forward dst-address=211.91.135.114/32 action=drop comment="downP2P RealLink"
add chain=forward dst-address=221.233.18.180/32 action=drop
add chain=forward dst-address=61.145.119.55/32 action=drop
add chain=forward dst-address=221.3.132.99/32 action=drop
# 百宝
add chain=forward protocol=tcp dst-port=3468 action=drop comment="downP2P 100bao"
add chain=forward dst-address=219.136.251.56/32 action=drop
add chain=forward dst-address=61.149.124.173/32 action=drop



游客,如果您要查看本帖隐藏内容请回复

发表于 2009-8-14 02:06:28 | 显示全部楼层
太专业......我直接就没看懂...不会操作:handshake
发表于 2009-8-14 02:07:06 | 显示全部楼层
太难搞懂了~这对那些专业人有用~我就不用了
发表于 2009-8-14 07:51:22 | 显示全部楼层
太专业了 网吧专用
发表于 2009-8-29 16:10:31 | 显示全部楼层
一头雾水,我要努力。。。:hug:
发表于 2009-9-18 09:47:54 | 显示全部楼层
很多很强大{:2_3,9:,}
发表于 2009-9-20 08:19:22 | 显示全部楼层
虽然看不明白不过也支持吧!!
发表于 2009-9-20 13:03:27 | 显示全部楼层
终于找到了。。。
发表于 2009-9-22 11:58:33 | 显示全部楼层
那个封P2P的现在已经不怎么管用了
发表于 2009-9-23 12:04:43 | 显示全部楼层

评分

参与人数 1贡献 -2 好评度 -2 收起 理由
帅的被人砍 -2 -2 文不对题

查看全部评分

发表于 2010-6-19 18:12:08 | 显示全部楼层
DDDDDDDDDDD
发表于 2010-7-6 00:59:07 | 显示全部楼层
回了 。

      还不知道怎么用。
发表于 2010-10-26 13:07:45 | 显示全部楼层
看一下什么好东西.
回复 支持 反对

使用道具 举报

发表于 2010-10-27 08:19:24 | 显示全部楼层
· · 老大· 支持你· · ·不知道什么时候能帮下我呢·?郁闷中·
回复 支持 反对

使用道具 举报

头像被屏蔽
发表于 2010-10-29 18:54:59 | 显示全部楼层
南昌人才网南昌招聘网江西人才网ncsrczpw.com人气飙升的江西人才网站,江西企业招聘、江西人才求职首选平台.网上的江西人才市场!江西招聘网是江西地区起步早规模大的江西人才招聘网.江西找工作,首选江西招聘网!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|☆我要吧☆ ( 豫ICP备13016831号-1 )

GMT+8, 2024-12-24 20:50 , Processed in 0.143269 second(s), 27 queries .

Powered by abc369 X3.4

© 2001-2023 abc369.

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