ntopng/doc
2018-04-17 17:23:00 +02:00
..
nedge/src Implement SNMP alerts on port status change 2018-03-29 23:00:43 +02:00
src Add nEdge documentation 2018-03-29 11:50:30 +02:00
doxygen.conf.in Fixes spellings and typos 2017-03-06 17:54:48 +01:00
mainpage.dox Initial import from SVN 2015-04-30 12:22:35 +02:00
README.alerts Initial README for alert internals that people can use to develop on top of ntopng alert engine 2018-04-13 16:08:15 +02:00
README.captive_portal Fixes spellings and typos 2017-03-06 17:54:48 +01:00
README.cento Notes on how to use nProbe cento with ntopng for realtime traffic monitoring 2016-01-07 19:56:07 +01:00
README.compilation Initial work towards better flow serialization 2017-10-03 14:55:35 +02:00
README.custom_scripts Add the possibility to specify custom scripts parameters 2017-02-17 20:25:40 +01:00
README.docker_openstack Reworked README files 2015-05-18 09:47:04 +02:00
README.doxygen Added documentation for the historical interface 2015-09-26 10:15:20 +02:00
README.elasticsearch Update README.elasticsearch 2015-09-29 00:36:24 +02:00
README.FreeBSD Updates FreeBSD readme 2017-06-12 10:46:46 -04:00
README.fritzbox Typo 2017-07-26 00:45:29 +02:00
README.grafana Updates grafana readme 2017-07-21 17:24:14 +02:00
README.historical Added documentation for the historical interface 2015-09-26 10:15:20 +02:00
README.httpbl Reworked -k parameter to introduce support for flashstart service (work in progress) 2015-12-05 11:55:48 +01:00
README.influxdb Added Influx and Prometheus support in ntopng 2018-04-17 17:23:00 +02:00
README.inline Implements Captive Portal over SSL 2017-06-01 19:30:07 +02:00
README.inline_http_configuration Adapts http bridge conf to the new nEDGE 2018-03-15 16:12:21 +01:00
README.IPv6 Minor text change 2015-09-11 12:24:07 +02:00
README.LDAP Fixes spellings and typos 2017-03-06 17:54:48 +01:00
README.logstash Code revision for issue #1144 (#1147) 2017-04-11 23:24:40 +02:00
README.md Redis connection via Unix domain socket (#1657) 2018-03-07 14:12:58 +01:00
README.mysql Readme for MySQL 5.7 2016-08-03 22:00:09 +02:00
README.nagios Added readme for highlighting how to use ntopng with nagios plugins 2015-05-30 19:03:16 +02:00
README.netbeans.pages added tutorial to develop ntopng in netbeans 2015-09-03 19:50:49 +02:00
README.netbeans.pdf added tutorial to develop ntopng in netbeans 2015-09-03 19:50:49 +02:00
README.netfilter Update netfilter README with captive portal setup information 2017-11-22 18:20:07 +01:00
README.OpenBSD Adjustments to obtain an OpenBSD build 2017-02-09 19:11:06 +01:00
README.pfsense Updates divert Readme 2017-02-15 13:23:50 +01:00
README.prometheus Added Influx and Prometheus support in ntopng 2018-04-17 17:23:00 +02:00
README.raspberry Fixes spellings and typos 2017-03-06 17:54:48 +01:00
README.redis Added README for redis setup 2015-08-05 14:52:14 +02:00
README.slack Generalize alerts external report 2018-03-30 20:36:05 +02:00
README.SSL Fixes spellings and typos 2017-03-06 17:54:48 +01:00
README.systemd.md Adds a systemd doc file 2017-11-21 12:44:46 +01:00
README.user_scripts Fix typo 2017-05-19 15:10:08 +02:00
README.users Update README.users (#1102) 2017-03-28 10:29:14 +02:00
README.vagrant Reworked README files 2015-05-18 09:47:04 +02:00
README.valgrind Added notes on how to enable valgrind with ntopng 2016-06-14 18:38:54 +02:00
README.windows Reworked README files 2015-05-18 09:47:04 +02:00
README.zmq Updated ZMQ readme with collector mode 2016-07-19 19:43:47 +02:00
UserGuide.pages Refreshes the User Guide: PF_RING interfaces merge 2018-03-01 20:22:22 +01:00
UserGuide.pdf Refreshes the User Guide: PF_RING interfaces merge 2018-03-01 20:22:22 +01:00

Building ntopng

See README.compilation for more information.

Prior to Starting ntopng

Please make sure that you have redis server installed and active on the same host where ntopng will be running. If you plan to use a remote redis, please consider using the --redis option to specify a remote redis server IP address and port or a local socket. We suggest you run redis as a service so that you do not have to start it every time you want to use ntopng.

Using ntopng as a flow collector

In order to use ntopng as a flow collector with nprobe you need to start the apps as follows:

  • collector

    • ntopng -i tcp://127.0.0.1:5556
  • probe (nProbe)

    • nprobe --zmq "tcp://*:5556" -i ethX -n none -b 2

You can instruct ntopng to merge onto the same interface multiple endpoints by separating them with a comma. Example:

ntopng -i tcp://127.0.0.1:5556,tcp://192.168.0.1:5556

Creating Hierarchies of ntopng Instances

You can create a hierarchy of ntopngs (e.g. on a star topology, where you have many ntopng processes on the edge of a network and a central collector) as follows:

  • Remote ntopng's

    • Host 1.2.3.4 ntopng -i ethX -I "tcp://*:3456"
    • Host 1.2.3.5 ntopng -i ethX -I "tcp://*:3457"
    • Host 1.2.3.6 ntopng -i ethX -I "tcp://*:3458"
  • Central ntopng

    • ntopng -i "tcp://1.2.3.4:3456" -i "tcp://1.2.3.5:3457" -i "tcp://1.2.3.6:3458"

Note that on the central ntopng you can add -i ethX if you want the central ntopng monitor a local interface as well.

Accessing ntopng URLs from command line tools (no web browser)

You need to specify the user and password as specified below (please note the space in the cookie). Note that you can optionally also specify the interface name.

curl --cookie "user=admin; password=admin" "http://127.0.0.1:3000/lua/network_load.lua?ifname=en0"

Using ntopng from Windows

  1. Remember to start the redis server prior to start ntopng
  2. You must start ntopng as a service using the "Services" control panel

Defaults

The ntopng default user is 'admin' (without ') and the default password is also 'admin' (without ')

Resetting admin user password

  1. shutdown ntopng
  2. run redis-cli del ntopng.user.admin.password
  3. restart ntopng and now the admin password has been reset

Running multiple ntopng instances on the same host

In order to run multiple ntopng instances independently (i.e. they do not interfere each other), each instance must:

  1. Set a different value for -d
  2. Set a different database id for -r
  3. Use a different http port iwth -w

Example: ntopng -d /path1 -r 127.0.0.1:6379@1 -w 3001 ntopng -d /path2 -r 127.0.0.1:6379@2 -w 3002 ...

Using Interface Views

Suppose you want to start ntopng as follows -i eth0 -i eth1. ntopng will show you traffic of these two interfaces without any merge so you can see exactly what happens on each interface. If you also need an aggregated view of both interfaces you can start ntopng as ntopng -i eth0 -i eth1 -i view:eth0,eth1 so ntopng will create a virtual interface that merges information from the two physical interfaces.

Using ntopng behind a Proxy

If you have many ntopng instances that you want to mask behind a proxy the -Z option is what you look for. See the man page for more information.

Traffic with sampling rate

If you apply a sampling rate to capture traffic on an interface, say x100, the traffic volume you see on ntopng will be 100 times smaller. In order to simulate more traffic to match real traffic volume, you can apply a scaling factor to the size of each received packet. The scaling factor can be specified through the UI, into the interface settings.

Debugging ntopng

handle SIGPIPE nostop noprint pass