Modern, super simple and fresh looking glass based on Bootstrap 5 and PHP 8.
Modern, super simple and fresh looking glass based on Bootstrap 5 and PHP 8.
Modern, super simple and fresh looking glass based on Bootstrap 5 and PHP 8. A looking glass is a network utility which is made user-friendly for everyone to use. It allows you to execute network related commands within a remote network, usually that of an ISP.
For this installation we will assume that we are working on AlmaLinux 8 or 9. Warning: This guide does not cover any security hardening or rate limiting. Note: These steps also work with AlmaLinux 9, but it will install PHP 8 instead of 7.
dnf install mtr traceroute -y.dnf install httpd mod_ssl php php-posix -y.systemctl enable --now httpd && systemctl enable --now php-fpm.ln -s /usr/sbin/mtr /usr/bin/mtr and also mtr helper called mtr-packet: ln -s /usr/sbin/mtr-packet /usr/bin/mtr-packet.setenforce 0 and possibly make it permanent: nano /etc/selinux/config change to SELINUX=disabled.dd if=/dev/zero of=100MB.bin bs=1024 count=0 seek=$[1024*100] (this is for 100MB).For installation using Docker, follow these steps and run the commands on the target machine where the application should be installed:
git clone https://github.com/hybula/lookingglass.git.docker compose build.docker-compose.yml file to the desired values. For testing purposes, the default values are fine.docker compose up -d.http://$your_server_ip/!It is recommended to install iPerf3 on a different server from your looking glass to avoid network congestion.
Again, we will assume that we are working on AlmaLinux 8 or 9.
dnf install iperf3 -yiperf3 -sD -p 5201.LG_SPEEDTEST_CMD_INCOMING and LG_SPEEDTEST_CMD_OUTGOING respectively in config.php.hostname in these lines to the IPv4 address of your iPerf3 server.iperf3 in docker-compose.yml if you want iPerf3 and the looking glass to be on the same server.
Otherwise, please copy the iperf3 section and save it as docker-compose.yml on another server with Docker and Docker Compose installed.docker compose up -d.LG_SPEEDTEST_CMD_INCOMING and LG_SPEEDTEST_CMD_OUTGOING respectively in docker/php-fpm/src/config.php.hostname in these lines to the IPv4 address of your iPerf3 server.Upgrading from a previous version is easy, simply overwrite your current installation with the new files. Then update your config.php accordingly, the script will automatically check for missing variables.
If you open up config.dist.php you will see that there are some features that allows you to customize the looking glass, this includes a custom CSS override. You may also extend the looking glass with a custom block.
We would love to receive code contributions in the form of a pull request. We prefer this over forking, so if you have any code improvements feel free to commit.
This project is inspired by the LookingGlass project of @telephone and uses his procExecute() function, although slightly modified. It would be great to keep the "powered by" link the footer to help development of this project.
Apache License, Version 2.0 and the Commons Clause Restriction
No open issues yet, or sync has not completed.