Skip to content

blackjack4494/mtr-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtr-web

mtr-web is a WebSockets-based frontend for mtr, built with Flask (Python), AngularJS, and angular-websocket, allowing you to ping/traceroute a network from a remote HTTP server. This is a useful diagnostic tool while making changes to your own network configuration.

Example

http://trace.hamwan.net/

Installation

sudo apt-get install mtr python python-pip
git clone https://github.com/blackjack4494/mtr-web
cd mtr-web
pip install Flask-Sockets gunicorn

Usage

gunicorn -b 0.0.0.0 -k flask_sockets.worker mtr-web:app

http://127.0.0.1:8000

Proxy through nginx

server {
        listen 80;
        listen [::]:80;
        server_name trace.hamwan.net;

        location / {
                proxy_pass http://127.0.0.1:8000;
        }

        location /mtr {
                proxy_pass http://127.0.0.1:8000;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
        }
}

About

A WebSockets-based frontend for mtr.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 83.0%
  • Python 17.0%