Commit graph

845 commits

Author SHA1 Message Date
Alfredo Cardigliano
610cb69b9c builtin packet dump code cleanup (moving to continuous recording) 2018-10-25 09:56:52 +02:00
Simone Mainardi
73a9b6c85d Fixes swapped eBPF events 2018-10-24 15:03:45 +02:00
Alfredo Cardigliano
186e7c2a4b nbox integration cleanup 2018-10-23 13:00:35 +02:00
Simone Mainardi
a75a6c6212 Code cleanup of old captive portal functions 2018-10-19 16:46:12 +02:00
Simone Mainardi
b3018f52d6 Code cleanup of bridge wizard 2018-10-19 15:23:15 +02:00
emanuele-f
9f8a70e279 Improve category editor labels and protocol navigation 2018-10-18 19:22:02 +02:00
Alfredo Cardigliano
963c4bb721 fixed invalid nindex detection, other improvements 2018-10-15 12:43:52 +02:00
Simone Mainardi
57e035ed2f Implements One-Way traffic filter for hosts
Implements #2091
2018-10-12 12:56:52 +02:00
emanuele-f
aa1ead94c4 Add Customized Categories editor
Also unify the blacklist category handler to use the nDPI API
2018-10-10 18:41:47 +02:00
Alfredo Cardigliano
a8081cc66f computing n2disk buffer based on system memory size 2018-10-10 17:36:56 +02:00
Simone Mainardi
6d99be2f2d Adds application category to the flow details page 2018-10-09 12:17:19 +02:00
emanuele-f
a8967a910a Fix forbidden device protocols reporting 2018-10-05 17:22:55 +02:00
emanuele-f
2749c08dcf Fixes for protocol policies integrations in nEdge 2018-10-03 15:19:30 +02:00
emanuele-f
457dcb3457 Implement Device Protocols Alerts 2018-10-02 22:35:00 +02:00
emanuele-f
f82a8e9767 Return 0 filled points instead of nil when no data is available on InfluxDB
This behaviour makes InfluxDB consistent with the RRD driver
2018-10-01 10:49:51 +02:00
Luca Deri
cd7f7335c0 SNMP community is now shown as obfuscated string 2018-09-26 16:22:26 +02:00
emanuele-f
5468fc8528 Update localization 2018-09-25 17:53:43 +02:00
Luca Deri
bc79a6f41e Fix to remove toggle buttons exceeding the max value
Fix to remove comma on Lua (non JIT)
Minor cleanup
2018-09-22 09:05:40 +02:00
emanuele-f
eb79229048 Implement alerts links to graphs 2018-09-20 20:18:12 +02:00
emanuele-f
ffe2c629bc Implement timeseries cleanup
Closes #1940
2018-09-11 17:16:56 +02:00
emanuele-f
433cbb3142 Fix custom interface speed not accounted in ts_common.getMaxPointValue 2018-09-11 13:06:44 +02:00
Simone Mainardi
8a055b39c5 Implements a lua endpoint to send alerts to syslog
Implements #1973
Implements #1954
2018-09-05 15:26:57 +02:00
Simone Mainardi
a1a5d53c8e Improves Lua-based params validation
Fixes #1935
2018-08-28 15:08:34 +02:00
emanuele-f
0004e08191 Add experimental support for 5sec granularity for host timeseries
To enable it (only on *InfluxDB* right now):

- uncomment HOST_NUM_TIMESERIES_POINTS in ntop_defines.h
- run `redis-cli set ntopng.prefs.30_sec_dump 1` and restart ntopng
2018-08-23 18:10:46 +02:00
emanuele-f
354dd697c0 Add max value checks for traffic and packets metrics 2018-08-20 16:19:01 +02:00
emanuele-f
6ba093872f Fix multiple alignment issues with timeseries 2018-08-16 17:06:38 +02:00
emanuele-f
d4ea15619f Add support for InfluxDB authentication 2018-08-13 14:36:06 +02:00
Luca Deri
30e22c3a71 Implemented multiple-pcap file download and monitor 2018-08-08 14:06:25 +02:00
Simone Mainardi
3eeb37c3f0 Fixes invalid login page encoding 2018-07-25 18:15:04 +02:00
Simone Mainardi
4ce97fe86d Implements live pcap capture and download 2018-07-23 19:28:00 +02:00
Simone Mainardi
1c27af9b90 Initial flows dbms api skeleton 2018-07-18 17:24:25 +02:00
Emanuele Faranda
4cbe45a948
New pro charts features and timeseries api (#1865)
* Integrate modified nvd3 library with zoom and multicharts working support

* Fix count in RRD driver

* Initial chart ajax migration

* Update nvd3 with zoom stack support

* Fix RRD listSeries with directories

* Work in progress graphs

* Compatibility fix

* Initial support for schema based api

* Add missing script

* Fix listSeries for existance check

* Implement topk timseries api

* Implement topk queries and fix labels and formats

* Migrate interface top sender and receivers

* Migrate charts to new API

* Move timeseries list for menu inside respective scripts

* Add support for extended labels

* Fix missing fields while chaning graph resolution

Also Rename drawRRD in drawGraphs

* Fix historical tabs

* Add missing time fence in influx topk

* Add graphs support for custom statistics visualization

* Initial support for graphs statistics footer

* Implement statistics in single graphs for RRD driver

* Move sampling function into the driver and fix graph statistics

* Fix max/min value offset

* Implement influxdb sampling use built-in FILL

* Implement stats and total serie in influxdb driver

* Update nvd3 with multiChart fixes

* Update nvd3 with new multiChart fixes

* RRD driver fixes

* Move metrics type from single metric to schema

* Handle ajax errors and empty data in charts

* Fix flow device interfaces graphs

* Use timeserie label as timeseries dropdown text

* Implement topk aggregation into one data serie

* ts_utils module now provides all the schemas

* Migrate ntop.exist(rrd) to ts_utils.exist

* Fix timeseries dropdown label

* L4 protos fixes for charts

* Migrate getProtoVolume to new API

* Integrate nvd3 fix for tooltip position

* Initial community graphs migration to timseries API

* Fix community timeseries dropdown and historical tabs

* Hide total serie by default

* Remove l4 protos from topk charts
2018-07-18 15:09:19 +02:00
Luca Deri
8eb25b54b5 Lua cleanup 2018-07-17 11:50:05 +02:00
Luca
0921f88ce6 Fix for float to integer conversion 2018-07-09 15:08:56 +02:00
Simone Mainardi
b980a1808f Implements web UI ACL 2018-06-22 19:31:02 +02:00
Simone Mainardi
8f1228c04f Captive portal HTTP server fixes 2018-06-19 17:29:36 +02:00
Luca Deri
0d6d3e4c58 Lua code cleanup
Added ability (in Makefile.in) to use the non-JIT Lua interpreter (usefult on some platforms)
2018-06-11 10:16:42 +02:00
emanuele-f
bbfb40cc9f Add user members management page in nedge 2018-06-06 20:11:47 +02:00
emanuele-f
2f89d21b36 Remove lua_utils dependency from timeseries 2018-06-01 10:41:54 +02:00
Luca
f67849e5b9 Minor Lua cleanup 2018-05-30 22:34:26 +02:00
emanuele-f
cb56b5d5ec Implement layer above RRD for timeseries storage 2018-05-25 10:04:18 +02:00
emanuele-f
e022f234db Fix getPageUrl 2018-05-17 16:15:31 +02:00
emanuele-f
a70dce4301 Secure ntopng cookies with SameSite and HttpOnly
HttpOnly prevents the cookie from being accessed by javascript code and restricts XMLHttpObject utilization.
See https://blog.codinghorror.com/protecting-your-cookies-httponly/ .

SameSite=lax restricts cookie utilization in iframes, images or XMLHttpRequests, but still allows external
sites to link to the ntopng webserver and use the existing authenticated user session.
See https://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/ .
2018-05-16 11:43:23 +02:00
emanuele-f
89d203883f Add support for custom categories lists
- Extend malware hosts from list
- Read web mining hosts from list and generate alerts
2018-05-10 17:12:53 +02:00
Simone Mainardi
0a0d2d76ee Fixes Mac manufacturers escaping 2018-05-10 17:09:13 +02:00
Simone Mainardi
c95c075008 Fixes attempts to call nil alert format functions
17/Apr/2018 12:24:00 [Lua.cpp:7662] WARNING: Script failure [/Users/simone/code/ntopng/scripts/callbacks/interface/minute.lua][...s/simone/code/ntopng/scripts/lua/modules/alert_utils.lua:1757: attempt to call field 'fmt' (a nil value)]
2018-04-17 12:24:00.360600+0200 ntopng[34202:3875024] [Lua.cpp:7662] WARNING: Script failure [/Users/simone/code/ntopng/scripts/callbacks/interface/minute.lua][...s/simone/code/ntopng/scripts/lua/modules/alert_utils.lua:1757: attempt to call field 'fmt' (a nil value)]

By implementing a format_utils module
2018-04-17 12:44:20 +02:00
Luca Deri
00004494bf Reworked alarms
Added informative message at ntopng startup/shutdown
2018-04-13 17:19:58 +02:00
emanuele-f
23d7a2676a Rework alerts export to provide more endpoint control 2018-04-12 18:10:45 +02:00
emanuele-f
c5bf5072f5 Fix string shortening 2018-04-11 16:14:59 +02:00
emanuele-f
d1b77ade45 Interface disaggregation gui improvements 2018-04-11 11:33:50 +02:00