Code Monkey home page Code Monkey logo

vtraceroute's Introduction

vTraceRoute - A simple traceroute visualizer.

vTraceRoute is a simple tool that allows visualization of IP address's Geolocation points on an OpenStreetMap (Mapbox) map. Tools used:

  1. Go programming language
  2. Reactjs
  3. Mapbox.js (leaflet)

#Getting started First install npm and go programming language SDK. Once you've got it setup perform the following in sequence:

  1. go get github.com/aishraj/vtracerroute
  2. cd $GOPATH/src/github.com/aishraj/vtracerroute
  3. npm install
  4. gulp build
  5. go clean && go build
  6. sudo ./vtracerroute -host <server you'd like to ping>
  7. Navigate to localhost:4000/ to view the paths that your packet took to reach the host specified in step 6 above.

#Disclaimer This is my first react.js project and hence the quality of the JS (and JSX) code might be mediocre at best. In case you feel that things can be improved, go ahead and send a pull request.

#Sample Example on running traceroute with facebook.com from my EC2 machine in North Virigina

#TODO

  1. Make paths traceable in terms of direction.
  2. Figure out if the React DOM is having any benefit (since leaflet.js renders the map component)
  3. Stop redrawing once you hit a certain hops / certain number of fetch calls.

vtraceroute's People

Contributors

aishraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vtraceroute's Issues

No map shown on localhost

Very cool project. But I'm having problems with either the install or runtime. I couldn't execute gulp build (/usr/bin/env: 'node': No such file or directory). But I did the go clean && go build w/o error. Running as root shows a blank screen (Hello React in title tab).

Any idea what I'm doing wrong?

fsnotify failed for /tmp/freegeoip/db.gz

tried to traceroute 10.28.158.140 (which doesn't exist in my network)

2015/08/03 18:15:43 Got IP as 0.0.0.0
2015/08/03 18:15:44 Reading from the geoip file
2015/08/03 18:15:44 Approximate location is 0, 0
2015/08/03 18:15:45 hop is there
2015/08/03 18:15:45 0.0.0.0
2015/08/03 18:15:45 Got IP as 0.0.0.0
2015/08/03 18:15:46 Reading from the geoip file
2015/08/03 18:15:46 Approximate location is 0, 0
2015/08/03 18:15:47 hop is there
2015/08/03 18:15:47 0.0.0.0
2015/08/03 18:15:47 Got IP as 0.0.0.0
2015/08/03 18:15:48 Reading from the geoip file
2015/08/03 18:15:48 Approximate location is 0, 0
2015/08/03 18:15:49 hop is there
2015/08/03 18:15:49 0.0.0.0
2015/08/03 18:15:49 Got IP as 0.0.0.0
2015/08/03 18:15:49 fsnotify failed for /tmp/freegeoip/db.gz: kqueue: too many open files

sudo?

Hi,
first of all thanks for your project, I'm just wondering what does this app do that it requires root privileges?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.