LookingGlassLookingGlass(修正版)源代码:https://github.com/ILLKX/LookingGlass/
LookingGlass源代码:https://github.com/telephone/LookingGlass
推举利用修正版,修正版不仅增加了对PHP7的支持;traceroute利用的是ipip的besttrace,相较于原版,还能查看回程IP的运营商和归属地。

默认已经安装了HTTP做事端(Nginx、Apache等) PHP 安装这些也很大略,有lnmp、宝塔等,干系教程很多,在此就不赘述了。
安装下载LookingGlass源代码到做事器,建议下载到网站目录中,就不用移动了
wget https://github.com/ILLKX/LookingGlass/archive/master.zip
解压
unzip master.zip
修正文件夹名称
mv LookingGlass-master lg
进行安装:
bash lg/LookingGlass/configure.sh
按照提示进行安装:
########################################## LookingGlass is a user-friendly script# to create a functional Looking Glass# for your network.## Created by Nick Adams (telephone)# http://iamtelephone.com#########################################Do you wish to install LookingGlass? (y/n): y### #### Starting install #### ###
#这一步是检讨干系依赖是否安装 没有安装的话会自动安装的
Checking script requirements:Checking for host...Checking for mtr...Checking for ping...Checking for traceroute...Checking for sqlite3...Checking for previous config:Creating Config.php...Creating test files:Test files already exist...### #### Starting configuration #### ###Running setup:#输入网站的名字,会显示在标题和header上Enter your website name (Header/Logo) []: Xiaomage`s LookingGlass#输入lookingGlass的URL(你想把LG放在哪,包含http协议头)Enter the public URL to this LG (including http://) []: https://bbx.xmgspace.me/lg#做事器位置 可不填Enter the servers location []: San Jose, LA, USA#做事器IP 为了放在IP透露,可不填Enter the test IPv4 address []:#IPv6地址 可不填Enter the test IPv6 address (Re-enter everytime this script is run) []:#天生测速文件的大小 可不填Enter the size of test files in MB (Example: 25 50 100) []:#限定每个IP每小时的测试次数 选n就表示不开启此功能Do you wish to enable rate limiting of network commands? (y/n): n#不选择其他主题,主题就一套Would you like to choose a different theme? (y/n): nCreating Config.php...Creating SQLite database...#输入做事器的用户名或用户组 root一把梭Enter the username of your webserver (E.g. www-data): rootEnter the user group of your webserver (E.g. www-data): rootFixing besttrace permissions...Installation is complete
这样安装过程就完成了。访问你的网站:http://你的域名/lg就可以看到LookingGlass的主界面了。可以显示出你的IP,点击你的IP地址,就会自动输入到输入框中。
如果点击开始测试后没有相应,缘故原由可能是由于LookingGlass调用了mtr等系统命令,某些环境会默认禁止这些函数,修正php.ini就可以解除限定。
测试分辨填写测试的网站或者IP,测试类型,并点击Run Test即可开始测试。