Commit graph

3564 commits

Author SHA1 Message Date
Luca Deri
4b9a3744a4 Fix to avoid a race condition while execuritn lua scripts (#672) 2016-08-04 17:50:44 +02:00
Luca Deri
cde4d7ba8a Split the VMs for Lua script execution 2016-08-04 17:41:53 +02:00
Luca Deri
748c881487 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2016-08-04 01:23:57 +02:00
Luca Deri
fee5d60091 Added scaffolding code for SSL dissecgtion 2016-08-04 01:23:42 +02:00
Simone Mainardi
bb860a810e Implements Redis LRANGE to retrieve data from lists
This method will be used in the stateful alert utils
2016-08-03 19:48:49 +02:00
Luca Deri
45e0c01377 Fix for #672 2016-08-03 15:05:38 +02:00
Luca
d1acece918 Fixed warning 2016-07-29 20:19:47 +02:00
Luca
516ca1a545 Added the ability to reload the housekeeping script with kill -HUP <ntopng PID>
Calling screpts at flow start/end/update
2016-07-29 20:17:10 +02:00
Luca Deri
9311ecf75f Added the ability to execute a Lua script when flows (and soon hosts) are updated. (work in progress) 2016-07-29 00:22:11 +02:00
Simone Mainardi
85c5beb545 Implements alerts on a per-interface per-vlan basis
Interfaces were handled globally before this commit. Now
alerts can be configured per-interface. So for example alerts
for the same host 193.168.2.1 can be handled differently on multiple interfaces.

Old alerts configured should be automatically migrated thanks to script startup.lua

This commits also paves the way to introduce stateful alerts in the professional version
2016-07-27 22:10:17 +02:00
Luca Deri
d3a770e283 Disabled "too early" and enabled guess for ZMQ interfaces 2016-07-25 09:54:17 +02:00
Simone Mainardi
128c11652c Implements alerts toggle from the web interface 2016-07-22 18:56:07 +02:00
Simone Mainardi
cd5f3dbfd6 Merge branch 'log-preferences' of https://github.com/mathieufrh/ntopng into mathieufrh-log-preferences 2016-07-18 10:31:13 +02:00
Mathieu
1484a3e8af Add flag for cmdl trace level 2016-07-15 14:40:11 +02:00
Mathieu
8f700c0032 Create function Ntop::setTraceLevelFromRedis and call it asap 2016-07-15 14:39:05 +02:00
Simone Mainardi
7a8878a886 Adds bidirectional flags in host_get_json TCP flows
An excerpt of the json returned is:

{"srv.ip":"a.b.c.d","cli.port":50559,"srv.port":443,
"cli2srv.tcp_flags":{"SYN":1,"RST":0,"PSH":1,"FIN":0,"URG":0,"ACK":1},"cli2srv.throughput_bps":0,"bytes":2869,"srv2cli.throughput_bps":0,"cli2srv.throughput_pps":0,
"srv2cli.tcp_flags":{"SYN":1,"RST":0,"PSH":1,"FIN":0,"URG":0,"ACK":1},"tcp_established":true,"srv2cli.throughput_pps":0,"cli.ip":"192.168.2.130","proto.ndpi_id":126,"proto.ndpi":"SSL.Google"},
2016-07-14 12:44:55 +02:00
Mathieu
311065e0ca Add TRACE log level 2016-07-13 18:16:07 +02:00
Mathieu
58d9b079f2 Let redis handle persistant log level 2016-07-13 18:14:52 +02:00
Luca
c85fa80ddd Removed hard-coded number now a #define
Preliminary work for the enterprise edition
2016-07-09 09:58:13 +02:00
Luca Deri
058a2d2b1d Improvements on flow interfaces 2016-07-06 15:22:31 +02:00
Simone Mainardi
a51994cfec Implements asynchronous database schema updates
Database updates are now performed asynchronously.
The web server starts but notifies the user with a
'please wait' message until the updates are completed.
2016-07-04 19:37:44 +02:00
Luca Deri
ef62c85bc7 Implemented host deviceIP/port binding 2016-07-04 00:04:32 +02:00
Luca Deri
9bf27b6940 Removed --zmq-collector-mode replaced with a c at the end of the endpoint. Example -i tcp://1.2.3.4:5678c 2016-07-03 14:23:29 +02:00
Luca Deri
847e5954df implementation of flow devices stats (work in progress) 2016-07-02 16:16:59 +02:00
Simone Mainardi
ffa04d2434 Allows web server binding to system ports for nonpriv. users 2016-06-30 18:25:27 +02:00
Luca Deri
be0ca98806 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2016-06-29 19:27:17 +02:00
Luca Deri
194b3fdb88 Initial work towards supporting sFlow device/interface counters 2016-06-29 19:26:40 +02:00
Simone Mainardi
5ead74816c Minor constant fix 2016-06-29 18:37:59 +02:00
Simone Mainardi
253b431bea Adds IPv6 fields to Elastic Search flows
Added IPV6_SRC_ADDR and IPV6_DST_ADDR fields
for ipv6 flows exported to elastic search

Fixes #548
2016-06-23 18:45:49 +02:00
Luca Deri
1f7022941c Fix for #622
Core cleanup
2016-06-22 13:53:04 +02:00
Simone Mainardi
99448b5ded Dumps SSL certificate name to MySQL if available 2016-06-21 16:43:14 +02:00
Luca Deri
43c17964e5 Implemented non-L3 stats and improved tcp flow stats 2016-06-17 23:51:13 +02:00
Luca Deri
9a717fede5 Implemented ICMPv6 dissection 2016-06-15 16:42:52 +02:00
Luca Deri
d6bc2ce91a Implemented ICMP handling
Optimized flow memory
2016-06-15 15:33:00 +02:00
Luca Deri
46e0fef38b Implemented alert generation for suspicious probing attempts
Refactored code for historical traffic analysis
Added various HTML anchors to quick jump to historical reports if -F is used (Pro version only)
2016-06-15 11:37:52 +02:00
Simone Mainardi
d6f48b1e3e Merge branch 'allowed_interfaces' into dev 2016-06-14 14:59:13 +02:00
Luca Deri
ceca189c8e Implemented per interface TCP stats 2016-06-14 14:31:58 +02:00
Simone Mainardi
4091c9c38d Adds per-user allowed interfaces (WIP) 2016-06-11 15:30:34 +02:00
Simone Mainardi
276a254603 Adds local network filter in flows lookup 2016-06-09 13:11:59 +02:00
Simone Mainardi
5048f0d9af Implements class Paginator to better handle results
A new Paginator class has been implemented. The class
is generic in the sense that it accepts lua tables as input
in order to cofigure, for exampe, the number of results per page
and so on.
2016-06-09 00:23:25 +02:00
Simone Mainardi
11bd10c67f Makes ProtoStats volatile 2016-06-06 23:20:33 +02:00
Simone Mainardi
e79e9dfc7a Refreshes alert status after UI changes
Fixes #595
Fixes #598
2016-06-03 16:25:45 +02:00
Luca Deri
f3cd841bd1 Fix for #569 2016-06-02 12:12:25 +02:00
Luca Deri
306d4c1aaf Added runtime status to ease debugging and support. The new entry has been added to the home menu (below about) 2016-06-02 11:37:47 +02:00
Simone Mainardi
616ca6b3d1 Implements preferences refresh facilities
Preferences set automatically trigger an update of
the class Preferences() members to make sure they are up
to date.

Additionally, the housekeeping frequency has been made customizable.
2016-05-31 19:09:07 +02:00
Simone Mainardi
1013df7db9 Code cleanup 2016-05-30 20:15:39 +02:00
Simone Mainardi
da587f217f Implements multidim. C host groupings facilities 2016-05-30 19:14:16 +02:00
Luca Deri
1d9b316719 Added alert when there are too many active flows/hosts for the ntopng configuration 2016-05-29 12:56:01 +02:00
Simone Mainardi
9953cc2328 Implements IN_BYTES/OUT_BYTES in historical data
MySQL schema change has been implemented together with
new historical talkers.
TODO: historical protocols.
2016-05-24 11:08:11 +02:00
Luca
abf1d0db66 Enlarged constant returning the max number of hits 2016-05-19 07:19:38 +02:00