ALS - Web 网络测试工具

本文最后更新于 2024年3月26日 下午

简介

ALS 是一个在线工具集合。

项目地址:https://github.com/wikihost-opensource/als

Demo:http://lg.hk1-bgp.hkg.50network.com/

注:目前只支持Docker 部署

支持以下功能

  • Ping - IPv4
  • HTML 5 在线速度测试(支持内网)
  • 文件下载测试
  • 获取访问客户IP地址(可内网使用)
  • iPerf3 服务器
  • 服务器流量图
  • Speedtest.net 客户端(可指定服务器ID)
  • 在线Web shell (有限命令 - ping - traceroute - mtr - nexttrace)

图例

安装(需要提前安装好Docker环境)

1
2
docker run -d --name looking-glass --restart always --network host wikihostinc/looking-glass-server

安装注意

默认占用80端口作为Web访问,IPerf3 默认端口范围为30000-31000。

默认使用主机网络。

Docker 变量

Key 示例 默认 说明
LISTEN_IP 127.0.0.1 默认使用所有IP 监听IP
HTTP_PORT 80 80 Web 访问端口
SPEEDTEST_FILE_LIST 100MB 1GB 1MB 10MB 100MB 1GB 静态测试文件的大小,以空格分隔
LOCATION “this is location” (from maxmind database, ip via PUBLIC_IPV4 or PUBLIC_IPV6) 位置字符串
MAXMIND_KEY THE_KEY (empty) about more https://dev.maxmind.com/geoip/geolite2-free-geolocation-data
PUBLIC_IPV4 1.1.1.1 (fetch from http://ifconfig.co) The IPv4 address of the server
PUBLIC_IPV6 fe80::1 (fetch from http://ifconfig.co) The IPv6 address of the server
DISPLAY_TRAFFIC true true Toggle the streaming traffic graph
ENABLE_SPEEDTEST true true Toggle the speedtest feature
UTILITIES_PING true true Toggle the ping feature
UTILITIES_SPEEDTESTDOTNET true true Toggle the speedtest.net feature
UTILITIES_FAKESHELL true true Toggle the HTML Shell feature
UTILITIES_IPERF3 true true Toggle the iperf3 feature
UTILITIES_IPERF3_PORT_MIN 30000 30000 iperf3 监听端口范围 - 开始
UTILITIES_IPERF3_PORT_MAX 31000 31000 iperf3 监听端口范围 - 结束
SPONSOR_MESSAGE “Test message” or “/tmp/als_readme.md” or “http://some_host/114514.md ‘’ 显示服务器赞助商消息(支持Markdown文件,需要映射文件到容器)

ALS - Web 网络测试工具
https://songxwn.com/als/
作者
Song
发布于
2023年12月27日
更新于
2024年3月26日
许可协议