2017-04-11
定期检查有效pppoe-out数,自动更新PCC标记
脚本:
#脚本开始
{
:local status
:local i "5"
:local x "0"
:local y "0"
:local z "0"
:set x [:len [/interface pp…
阅读全文 →
2017-03-11
脚本地址如下,复制直接刷到路由里面看效果!
/ip firewall filter
add action=drop chain=forward comment="\CC\DA\D1\B6\CA\D3\C6\B5\B9\E3\B8\E6" content="Host: livem.l.qq.c…
阅读全文 →
2017-03-11
/ip firewall filter
add action=reject chain=forward comment="\C6\C1\B1\CEMircoSoft\CF\B5\C1\D0\B2\FA\C6\B7\B8\FC\D0\C2" content=update.microsoft.com…
阅读全文 →
2017-03-11
针对CAPsMAN模式下的访问列表(Access-list)失效问题,以下是解决方案。
方式1:
:foreach wird in=[/caps-man registration-table find ] do={
:if ([/caps-man registration-table get …
阅读全文 →
2017-01-11
RouterOS-ADSL定时断线重拨
利用系统的定时器功能来实现,如下:
在系统(System)-定时功能(Scheduler)里添加一个Schedule,输入开始时间(Start Time),间隔时间(Interval),然后在事件(On Event)里写入以下语句:
/int…
阅读全文 →
2016-10-11
主要功能:
宽带拨号断线重拨以后,更换以后的新IP地址自动发送到邮箱;
:global pppoeip [/ip address get [find interface=”pppoe-out1″] address]
:global pppoeiptemp1 [ /ip pool get […
阅读全文 →
2016-09-11
脚本内容:
/ip firewall layer7-protocol
add name=Tencent_qq regexp="^.\?.\?[\\x02|\\x05]\\x22\\x27.+|^.\?.\?[\\x02|\\x\
05]\\x22\\x27.+[\\x03|\\x09]…
阅读全文 →
2016-09-11
前言:
为保护路由器不受端口扫描的探测,我们可以记录下试图探测你的IP,并使用IP地址列表记录下,然后拒绝这些IP访问。
/ip firewall filter
add chain=input protocol=tcp psd=21,3s,3,1 action=add-src-to-add…
阅读全文 →
2016-08-11
示例:
/ip firewall nat add chain=dstnat dst-address=120.42.115.6 protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.0.1 to-ports=80 comment=”…
阅读全文 →
2016-08-11
多数情况网吧所有IP都会加入整体PCQ规则,即宽带均分,也有部分需求是部分IP完全不限制,方便随时进行游戏更新:替换脚本中的服务器IP即可,也可以是192.168.1.251-192.168.1.254这样的IP段。
/ip firewall mangle
add chain=prerouti…
阅读全文 →