netflow viewer written in node.js
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
setup
views
.gitignore
Cakefile
README.markdown
app.coffee
app.js
config.example.js
model.coffee
model.js
package.json

README.markdown

✿ flower — Netflow viewer

This package is based on Sghazzawi's Node-Netflowd, and is intended to replace National Taiwan Ocean University's dormitory flow viewer.

Design

  • Gathers all Netflow packets and updates on-the-fly (features socket.io for instant push to client)
  • TODO: Trigger to deal with banned users.
  • For an interval (10 minutes), the system writes the data to postgresql database.
  • TODO: The user can check the usage history in daily and hourly perspective.
  • TODO: The usage log can be deleted after a long period.
  • TODO: API support for external program.

Prerequisities

  • A Cisco router (or compatible one) which can output Netflow packet v5 format.
  • node.js with npm (nvm for rescue)

Up and running

  • install postgresql (apt-get install postgresql in Debian or Ubuntu) then configure its user account and password
  • npm install
  • cp config.example.js config.js
  • edit config.js for your environment
  • node app

It is prefered to use forever to run for a long period.