LookingGlass
Overview
LookingGlass is a user-friendly PHP based looking glass that allows the public (via a web interface) to execute network commands on behalf of your server.
Current version: v1.4.0
It's recommended that everyone updates their existing install!
Demo
Demo is running on a Cloud Server of Hetzner Online GmbH.
Features
- Automated install via bash script
- IPv4 & IPv6 support (DualStack, Only IPv4 or IPv6)
- Separate Domains for IPv4/IPv6
- Live output via long polling
- Multi Language System. New Languages are Welcome!
- Rate limiting of network commands
Implemented commands
- host
- host (IPv6)
- mtr
- mtr6 (IPv6)
- ping
- ping6 (IPv6)
- traceroute
- traceroute6 (IPv6)
IPv6 commands will only work if your server has external IPv6 setup (or tunneled)
Requirements
- PHP >= 5.6
- PHP PDO with SQLite driver (required for rate-limit)
- SSH/Terminal access (able to install commands/functions if non-existent)
Install / Update
- Download LookingGlass to the intended folder within your web directory
- Move archive to the correct directory
- Extract archive with unzip LookingGlass-1.4.0.zip
- Navigate to the
LookingGlass
subdirectory in terminal - Run
bash configure.sh
- Follow the instructions and
configure.sh
will take care of the rest- Note: Re-enter test files to create random test files from
GNU shred
- Note: Re-enter test files to create random test files from
Forgot a setting? Simply run the configure.sh
script again
Apache
An .htaccess is included which protects the rate-limit database, disables indexes, and disables gzip on test files.
Ensure AllowOverride
is on for .htaccess to take effect.
Output buffering should work by default.
For an HTTPS setup, please visit:
Nginx
To enable output buffering, and disable gzip on test files please refer to the provided configuration:
The provided config is setup for LookingGlass to be on a subdomain/domain root.
For an HTTPS setup please visit:
License
Code is licensed under MIT Public License.
- If you wish to support my efforts, keep the "Powered by LookingGlass" link intact.