Giter Club home page Giter Club logo

netacct-mysql's Introduction

Network Traffic Accounting Daemon

The application is used for accounting of the network traffic passing through your router/gateway. It is based on the libpcap library and functions as a userspace daemon. Options for dividing the network traffic into 4 categories:

  • international
  • peering
  • direct
  • local

The traffic accounts are saved in a database, and for the time being MySQL is (and Oracle might be) supported. As libpcap is used for gathering the network data the application runs (for the moment) on the following operating systems:

  • Linux
  • FreeBSD
  • OpenBSD
  • Solaris

Please be aware of the fact that only the Linux sources are built and used at the moment, but you are very welcome to submit feedback or merge requests to support other operating systems.

For more detailed information regarding a particular OS, please read the FAQ file and the original README files.

Dependencies

To download this project, use: git clone https://github.com/pyrox777/netacct-mysql.git

To build this project, the following is needed:

  • gcc
  • libpcap - libpcap-dev
  • mysqlclient-dev (up to Debian 8) or libmariadb-dev libmariadb-dev-compat (from Debian 9)
  • make

On a Debian-based system, try using: apt install gcc libpcap-dev libmariadb-dev libmariadb-dev-compat make

Build

Inside the project's root directory:

  • ./configure
  • make

If you would like to install nacctd on the local system, use make install. This copies the nacctd binary to /usr/local/sbin, the configuration files nacctab.sample to /usr/local/etc/nacttab and nacctpeering to /usr/local/etc/nacctpeering. The man pages nacctd and nacctpeering are copied as well.

Configure

See README for the meantime.

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.