Lookingglass

screenshot of Lookingglass

Modern, super simple and fresh looking glass based on Bootstrap 5 and PHP 8.

Overview:

The Looking Glass is a modern network utility based on Bootstrap 5 and PHP 8. It allows users to execute network commands within a remote network, commonly used by ISPs. The tool features real-time command output, supports various network commands, and offers customization options.

Features:

  • Bootstrap 5 UI: Modern and responsive user interface.
  • Real-time Command Output: Execute network commands with instant feedback.
  • Supports Multiple Commands: Supports ping, traceroute, and mtr commands.
  • Customizable: Easy to customize and configure according to specific needs.
  • DNS Checking: Prevent unnecessary executions by checking DNS.
  • Latency Feature: Displays latency from visitor to Looking Glass.
  • Dark/Light/Auto Mode Theme: Choose from different themes for better user experience.

Manual Installation:

  1. Install required network tools: dnf install mtr traceroute -y
  2. Install web server with PHP: dnf install httpd mod_ssl php php-posix -y
  3. Enable and start Apache/PHP-FPM: systemctl enable --now httpd && systemctl enable --now php-fpm
  4. Helper command for MTR: ln -s /usr/sbin/mtr /usr/bin/mtr and ln -s /usr/sbin/mtr-packet /usr/bin/mtr-packet
  5. Configure SELinux or disable it: nano /etc/selinux/config and change SELINUX=disabled
  6. Upload contents to web directory: Upload ZIP contents to /var/www/html/
  7. Rename config file: Rename config.dist.php to config.php and adjust settings
  8. Optional: Enable SSL using LetsEncrypt.

Docker Installation:

  1. Ensure Docker and Docker Compose are installed.
  2. Clone repository: git clone https://github.com/hybula/lookingglass.git
  3. Move to repository directory.
  4. Build Docker images: docker compose build
  5. Modify environment variables in docker-compose.yml.
  6. Create and start containers: docker compose up -d

Summary:

The Looking Glass offers a user-friendly interface for executing network commands efficiently. With features like real-time output, support for various commands, and customization options, it provides a comprehensive tool for network troubleshooting. The installation process includes manual steps for Linux servers and Docker installation for easier deployment.