注册 登录
自由的生活_软路由 返回首页

moou的个人空间 https://bbs.routerclub.com/?5058 [收藏] [复制] [分享] [RSS]

日志

Show TCP and UPD 连接 需修改范围

已有 659 次阅读2012-7-29 18:29 | warning

:global ipnetmask "10.0.0."
:for aaa from 1 to 50 do={
:global s 0
:global e 0
:foreach a in=[/ip firewall connection find src-address~($ipnetmask . $aaa)] do={
:if ([/ip firewall connection get $a protocol]="tcp") do={:set s ($s+1)}
:if ([/ip firewall connection get $a protocol]="udp") do={:set e ($e+1)}}
:log warning ($ipnetmask . $aaa . " tcp-" . $s . " udp-" . $e)}

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

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

GMT+8, 2024-6-2 03:03 , Processed in 0.038192 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

返回顶部