找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3569|回复: 0

[脚本] 关于 FIREWALL 中的L7脚本

[复制链接]
发表于 2009-3-5 18:13:55 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
1:我在国内官网把L7脚本 下载了 用IM命令 然后 到Layer7 protocols里一看 就一条?
2:我在用记事本把 这个脚本 打开一看 里面好多条呢!! 为什么它只添加了一条?
3:这脚本官方说是用REGEXP编写 没学过编程 不明白呀。。。
4:能不能手动在WINBOX里添写吗? 好像 运行写这个脚本 在看L7里就和下面的原本就不一样了?

/ip firewall layer7-protocol
:if ([:len [find name=edonkey]] > 0) do={ :put "already have edonkey" } else={ add name=edonkey regexp="^[\C5\D4\E3-\E5].\?.\?.\?.\?([\01\02\05\14\15\16\18\19\1A\1B\1C\20\21\32\33\34\35\36\38\40\41\42\43\46\47\48\49\4A\4B\4C\4D\4E\4F\50\51\52\53\54\55\56\57\58[\60\81\82\90\91\93\96\97\98\99\9A\9B\9C\9E\A0\A1\A2\A3\A4]|\59................\?[ -~]|\96....\$)" }
:if ([:len [find name=goboogy]] > 0) do={ :put "already have goboogy" } else={ add name=goboogy regexp="<peerplat>|^get /getfilebyhash\\.cgi\\\?|^get /queue_register\\.cgi\\\?|^get /getupdowninfo\\.cgi\\\?" }
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-12 07:56 , Processed in 0.083012 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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