grantc / mtr-web

A WebSockets-based frontend for mtr.

Home Page:http://trace.hamwan.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
git clone https://github.com/kd7lxl/mtr-web.git
cd mtr-web
virtualenv env
source env/bin/activate
pip install Flask-Sockets gunicorn

Usage

gunicorn -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.

http://trace.hamwan.net/

License:GNU Affero General Public License v3.0


Languages

Language:HTML 64.5%Language:Python 35.5%