获取 ASN 下的所有 IP 段 6/15/2021 yitong 其实很简单,就一句话。 whois -h whois.radb.net AS137256 -i origin | egrep -e "route: " -e "route6: " | awk '{print $NF}'出来是 CIDR 的格式。能拿来做什么呢? 自己看呗。也许是不那么精致的 "按照 AS 号进行分流" 评论
为 SmokePing Web 添加过滤器和刷新控制 9/29/2021 yitong 添加功能: 可关闭的 JavaScript 重载计时器 详情内容的过滤(按监测点/关键词) 安装: 推荐 SmokePing 2.8.2,代码是在这个版本编写的,我不知道旧版本能否适用。 但是我尝试了 2.7.x 也是可以用的,所以大概无所谓...? 下载 smokeping_add.js ,移动到 SmokePing 的网页目录中的 js 文件夹内。 编辑 SmokePing 的配置文件 /etc/smokeping/config ,在 Presentation 的设置下面将 htmltitle 打开。 *** Presentation *** template = /etc/smokeping/basepage.html htmltitle = yes graphborders = no charset = utf-8 然后编辑 /etc/smokeping/basepage.html ,在页面尾部 <script> 区域添加: < script > let refresh_timeout = < ## step ## > </ script > < script async src =" js/smokeping_add.js " type =" text/javascript " > </ script > 哦,别忘了我们还有 SmokePing 原本的自动刷新。 这个时候需要在文件顶端找到 <head> 的区域,将 <META http-equiv="Refresh" content="<##step##>"> 这句话删除或是使用 <noscript> 包裹起来,类似这样: < noscript > < META http-equiv =" Refresh " content =" <##step##> " > </ noscript > 就完成了。 也许你想做更多: 为你的 Smokeping 添加媒 阅读全文
评论
发表评论