Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickpegg/lg
A simple looking glass tool (for ping and MTR)
https://github.com/nickpegg/lg
Last synced: 17 days 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 (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2024-10-26T20:17:02.000Z (2 months ago)
- Last Synced: 2024-10-26T22:20:33.969Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 123 KB
- Stars: 8
- Watchers: 4
- 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.