https://github.com/nickpegg/lg
  
  
    A simple looking glass tool (for ping and MTR) 
    https://github.com/nickpegg/lg
  
        Last synced: 4 months ago 
        JSON representation
    
A simple looking glass tool (for ping and MTR)
- Host: GitHub
 - URL: https://github.com/nickpegg/lg
 - Owner: nickpegg
 - License: mit
 - Created: 2014-02-16T18:15:13.000Z (over 11 years ago)
 - Default Branch: main
 - Last Pushed: 2025-03-22T04:16:34.000Z (8 months ago)
 - Last Synced: 2025-04-06T03:27:36.541Z (7 months ago)
 - Language: HTML
 - Homepage:
 - Size: 148 KB
 - Stars: 8
 - Watchers: 3
 - Forks: 8
 - Open Issues: 2
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
README
          # Looking Glass
This is a simple, not-very-cleverly-named looking glass tool. Supports pinging and MTRing arbitrary addresses. Doesn't support BGP tables like a lot of looking glass tools do since I don't personally own a router that speaks it with the internet.
## Docker Image
This repo is a Docker Trusted Build, so you can easily run your own Looking Glass tool with Docker!
Simply running `sudo docker run -d nickpegg/looking-glass` will get you a container running this app under uwsgi on port 5000, in an rbash environment restricted to only running `ping` and `mtr`.
You will need to configure a webserver to serve this app as well as the files under `/static/`.
## Caveats
I recommend running this as a non-privileged user stuck inside of rbash. I tried to keep people from injecting commands, but you can never be too cautious.
I also don't do any rate-limiting since whichever front-end webserver you choose (nginx, apache, etc.) is better suited to do that task.