Sign inSign up

forward3d/mtr-web

By forward3d

•Updated about 6 years ago

MTR Web

Image
1

2.7K

forward3d/mtr-web repository overview

⁠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";
        }
}

Tag summary

Content type

Image

Digest

Size

37.4 MB

Last updated

about 6 years ago

docker pull forward3d/mtr-web