ROS软路由常用脚本集合Word下载.docx
《ROS软路由常用脚本集合Word下载.docx》由会员分享,可在线阅读,更多相关《ROS软路由常用脚本集合Word下载.docx(12页珍藏版)》请在冰豆网上搜索。
if($a=up)do={:
seti1}}
然后再在/toolnetwatch里添加监控
host=你要监控的ip
在down里填写
/systemscriptrun你要监控的ip
setshendown1[/systemclockgetdate]
setshendown2[/systemclockgettime]
setshendown("
你要监控的ipdown"
.$shendown1."
"
.$shendown2)
logwarning$shendown
ROS小包策略:
/ipfirewallmangle
addchain=forwardprotocol=tcptcp-flags=synaction=change-mssnew-mss=1440
comment="
"
disabled=no
addchain=forwar**2*=all-p2paction=mark-connection
new-connection-mark=p2p_connpassthrough=yescomment="
addchain=forwardconnection-mark=p2p_connaction=mark-packet
new-packet-mark=p2ppassthrough=yescomment="
addchain=forwardconnection-mark=!
p2p_connaction=mark-packet
new-packet-mark=generalpassthrough=yescomment="
addchain=forwardpacket-size=32-512action=mark-packetnew-packet-mark=small
passthrough=yescomment="
addchain=forwardpacket-size=512-1200action=mark-packetnew-packet-mark=big
/queuetree
addname="
p2p1"
parent=wanpacket-mark=p2plimit-at=600000queue=default
priority=8max-limit=800000burst-limit=0burst-threshold=0burst-time=0s
p2p2"
parent=lanpacket-mark=p2plimit-at=800000queue=default
priority=8max-limit=600000burst-limit=0burst-threshold=0burst-time=0s
ClassA"
parent=lanpacket-mark="
limit-at=0queue=default
priority=8max-limit=100000000burst-limit=0burst-threshold=0
burst-time=0sdisabled=no
ClassB"
parent=ClassApacket-mark="
priority=8max-limit=0burst-limit=0burst-threshold=0burst-time=0s
Leaf1"
parent=ClassApacket-mark=generallimit-at=0queue=default
priority=7max-limit=0burst-limit=0burst-threshold=0burst-time=0s
Leaf2"
parent=ClassBpacket-mark=smalllimit-at=0queue=default
priority=5max-limit=0burst-limit=0burst-threshold=0burst-time=0s
Leaf3"
parent=ClassBpacket-mark=biglimit-at=0queue=default
priority=6max-limit=0burst-limit=0burst-threshold=0burst-time=0s
ROS封杀常用P2P策略脚本:
/ipfirewallfilter
addchain=inputprotocol=udpdst-port=137-138action=dropcomment="
dropudp137-138"
#讯雷
addchain=forwardprotocol=tcpdst-port=3076-3079action=dropcomment="
downToolsXunlei"
disabled=yes
2楼
addchain=forwarddst-address=202.96.155.91/32action=drop
addchain=forwarddst-address=210.22.12.53/32action=drop
addchain=forwarddst-address=61.128.198.97/32action=drop
#电骡
addchain=forwardprotocol=tcpdst-port=4661action=dropcomment="
downP2PVeryCD"
addchain=forwardprotocol=tcpdst-port=4662action=drop
addchain=forwardprotocol=tcpdst-port=4242action=drop
addchain=forwarddst-address=62.241.53.15/32action=drop
#屁屁狗(PPGOU)
addchain=forwardprotocol=tcpdst-port=8505action=dropcomment="
downToolsPPGOU"
addchain=forwarddst-address=219.153.0.152/32action=drop
addchain=forwarddst-address=61.145.116.186/32action=drop
#KUGO酷狗
addchain=forwardprotocol=tcpdst-port=3318action=dropcomment="
downMP3KUGO"
addchain=forwardprotocol=tcpdst-port=1043action=dropdisabled=yes
addchain=forwardprotocol=tcpdst-port=4224action=dropdisabled=yes
addchain=forwardprotocol=tcpdst-port=2371action=dropdisabled=yes
addchain=forwardprotocol=udpdst-port=7000action=dropdisabled=yes
addchain=forwarddst-address=218.16.125.227/32action=dropdisabled=yes
addchain=forwarddst-address=61.143.210.56/32action=dropdisabled=yes
addchain=forwarddst-address=218.16.125.226/32action=dropdisabled=yes
addchain=forwarddst-address=61.129.115.206/32action=dropdisabled=yes
addchain=forwarddst-address=61.145.114.33/32action=dropdisabled=yes
#RFonline
addchain=forwarddst-address=218.30.85.16/32dst-port=8888action=acceptcomment="
RFonline"
addchain=forwarddst-address=59.34.215.133/32dst-port=8888action=accept
addchain=forwarddst-address=60.28.26.66/32dst-port=8888action=accept
#比特精灵
addchain=forwardprotocol=tcpdst-port=16881action=dropcomment="
downP2PBitSpirit"
addchain=forwardprotocol=tcpdst-port=6881-6890action=drop
addchain=forwardprotocol=tcpdst-port=8881-8890action=drop
addchain=forwardprotocol=udpdst-port=16881action=drop
addchain=forwardprotocol=udpdst-port=6881-6890action=drop
addchain=forwardprotocol=udpdst-port=8881-8890action=drop
#宝酷
addchain=forwardprotocol=tcpdst-port=6346action=dropcomment="
downP2PBaoCue"
addchain=forwardprotocol=tcpdst-port=11300action=drop
addchain=forwarddst-address=61.172.197.196/32action=drop
addchain=forwarddst-address=218.1.14.3/32action=drop
addchain=forwarddst-address=218.1.14.4/32action=drop
addchain=forwarddst-address=218.1.14.9/32action=drop
addchain=forwarddst-address=61.172.197.209/32action=drop
addchain=forwarddst-address=61.172.197.197/32action=drop
addchain=forwarddst-address=218.1.14.5/32action=drop
addchain=forwarddst-address=218.5.72.118/32action=drop
#百事通下载工具
addchain=forwarddst-address=61.145.126.150/32action=dropcomment="
downP2PBai****ong"
#XXMP3下载
addchain=forwarddst-address=202.108.156.206/32action=dropcomment="
downMP3BaiDuMP3"
#PTC下载工具
addchain=forwardprotocol=tcpdst-port=50007action=dropcomment="
downP2PPTCdown"
#eDonkey2000下载工具
addchain=forwardprotocol=tcpdst-port=4371action=dropcomment="
downP2PeDonkey2000"
addchain=forwarddst-address=62.241.53.17/32action=drop
#Poco2005
addchain=forwardprotocol=udpsrc-port=8094action=dropcomment="
downP2PPoco2005"
addchain=forwardprotocol=tcpdst-port=2881action=drop
addchain=forwardprotocol=tcpdst-port=5354action=drop
addchain=forwarddst-address=61.145.118.224/32action=drop
addchain=forwarddst-address=210.192.122.147/32action=drop
addchain=forwarddst-address=207.46.196.108/32action=drop
#卡盟
addchain=forwardprotocol=tcpdst-port=3751action=dropcomment="
downP2PKAMUN"
addchain=forwardprotocol=tcpdst-port=3753action=drop
addchain=forwardprotocol=tcpdst-port=4772action=drop
addchain=forwardprotocol=tcpdst-port=4774action=drop
addchain=forwarddst-address=211.155.224.67/32action=drop
#维宇RealLink
addchain=forwarddst-address=211.91.135.114/32action=dropcomment="
downP2PRealLink"
addchain=forwarddst-address=221.233.18.180/32action=drop
addchain=forwarddst-address=61.145.119.55/32action=drop
addchain=forwarddst-address=221.3.132.99/32action=drop
#百宝
addchain=forwardprotocol=tcpdst-port=3468action=dropcomment="
downP2P100bao"
addchain=forwarddst-address=219.136.251.56/32action=drop
addchain=forwarddst-address=61.149.124.173/32action=drop
#百花PP
addchain=forwardprotocol=tcpdst-port=5093action=dropcomment="
downP2PBaiHua"
addchain=forwarddst-address=221.229.241.243/32action=drop
#快递通
addchain=forwarddst-address=202.96.137.56/32action=dropcomment="
downP2PKDT"
#酷乐
addchain=forwardprotocol=tcpdst-port=6800-6801action=dropcomment="
downMP3Kuro"
addchain=forwardprotocol=tcpdst-port=7003action=drop
addchain=forwarddst-address=218.244.45.67/32action=drop
addchain=forwarddst-address=220.169.192.145/32action=drop
#XX下吧
addchain=forwardprotocol=tcpdst-port=11000action=dropcomment="
downP2PBaiDuXiaBa"
addchain=forwarddst-address=202.108.249.171/32action=drop
#百兆P2P
addchain=forwardprotocol=tcpdst-port=9000action=dropcomment="
downP2PbaizhaoP2P"
addchain=forwarddst-address=221.233.19.30/32action=drop
#石头(OPENEXT)
addchain=forwardprotocol=tcpdst-port=5467action=dropcomment="
downP2POPENEXT"
addchain=forwardprotocol=tcpdst-port=2500action=drop
addchain=forwardprotocol=tcpdst-port=4173action=drop
addchain=forwardprotocol=tcpdst-port=10002action=drop
addchain=forwardprotocol=tcpdst-port=10003action=drop
addchain=forwarddst-address=66.197.13.166/32action=drop
addchain=forwarddst-address=210.22.12.245/32action=drop
addchain=forwarddst-address=69.93.222.56/32action=drop
#iLink1.1
addchain=forwardprotocol=tcpdst-port=5000action=dropcomment="
downP2PiLink"
#DDS
addchain=forwardprotocol=tcpdst-port=11608action=dropcomment="
downP2PDDS"
addchain=forwarddst-address=210.51.168.13/32action=drop
addchain=forwarddst-address=211.157.105.252/32action=drop
addchain=forwarddst-address=212.179.66.17/32action=drop
#iMesh5
addchain=forwardprotocol=tcpdst-port=4662action=dropcomment="
downP2PiMesh5"
addchain=forwarddst-address=212.179.66.24/32action=drop
addchain=forwarddst-address=38.117.175.23/32action=drop
#winmx
addchain=forwardprotocol=tcpdst-port=5690action=dropcomment="
downP2Pwinmx"
addchain=forwarddst-address=64.246.15.43/32action=drop
#网酷
addchain=forwardprotocol=tcpdst-port=2122action=dropcomment="
downP2Pnetcool"
addchain=forwarddst-address=211.152.22.9/32action=drop
addchain=forwarddst-address=211.152.22.101/32action=drop
addchain=forwarddst-address=221.192.132.29/32action=drop
#PPlive网络电视
addchain=forwardprotocol=tcpdst-port=8008action=dropcomment="
P2PTVPPlive"
addchain=forwardprotocol=udpdst-port=4004action=drop
#QQ直播
addchain=forwardprotocol=udpdst-port=13002-13999action=dropcomment="
P2PTVQQ"
disabled