Commit graph

145 commits

Author SHA1 Message Date
Luca Deri
d997343c2d Win fixes 2018-12-18 00:18:37 +01:00
emanuele-f
e08798c2d4 Fix user password change after f65c618b3f 2018-12-17 19:57:04 +01:00
emanuele-f
697eccf931 Add IPv6 support for login blacklist 2018-12-17 17:36:38 +01:00
emanuele-f
5e321077ca Disable user login after failed attempts 2018-12-17 17:36:38 +01:00
Simone Mainardi
61d90f8d3e Disables SNMP build in nEdge 2018-12-17 12:05:24 +01:00
emanuele-f
14c68a5b21 Fix getLuaVMUserdata dirty lua stack
The lua_getglobal pushes a value on the lua stack. It was not removed after the call.
2018-12-14 18:45:00 +01:00
emanuele-f
af02c76c8b Implement scan detection alerts for remote hosts
Closes #2068
2018-12-14 12:28:23 +01:00
emanuele-f
acdc67e28a Revert "Add lua_pcall errors trace"
This reverts commit 261d76e430.

Will replace pcall with require in the next commit
2018-12-11 18:53:01 +01:00
emanuele-f
f65c618b3f Move user group information into the session
This fixes issues and inconsistencies when the same user logins from different authenticators at the same time
Fixes #2212
2018-12-11 18:44:34 +01:00
emanuele-f
5e85b3910a Non local users should not be able to modify users settings.
Fixes #2210
2018-12-11 14:08:33 +01:00
Luca Deri
ac9f7e3c7a Updated eBPF support 2018-12-10 22:31:44 +01:00
emanuele-f
95713ddfc6 Add driver:deleteOldData and delete old RRDs 2018-12-10 17:42:39 +01:00
emanuele-f
9bae8e234a Implement InfluxDB alerts when export fails
Fixes #2193
2018-12-06 14:32:37 +01:00
Alfredo Cardigliano
48c20ec844 Tracking flows data download 2018-12-06 10:58:19 +01:00
emanuele-f
261d76e430 Add lua_pcall errors trace 2018-12-05 13:18:25 +01:00
emanuele-f
c69c500dd1 Fix getFirstInterfaceId returning different ids 2018-12-05 11:02:14 +01:00
emanuele-f
9dd33409df Implement sort by IP in network discovery page
Fixes #2197
2018-12-03 23:22:58 +01:00
emanuele-f
1df7ebfed8 Hide radius auth if radius support is not available 2018-12-01 15:17:16 +01:00
emanuele-f
8a8a016283 Replace lua_pushnumber with lua_pushinteger where necessary.
Lua 5.3 now supports 64bit integers. Using a number instead of an integer can cause problems since
tostring adds the decimal dot:
	- Lua 5.2: tostring(5.0) = "5"
	- Lua 5.3: tostring(5.0) = "5.0"
2018-11-29 15:36:19 +01:00
Emanuele Faranda
b4ca9d368f Fix mark: trailing garbage after value for option "--mark" 2018-11-29 13:17:19 +01:00
Alfredo Cardigliano
01f5bcac1a Support for custom page titles 2018-11-29 11:26:29 +01:00
Simone Mainardi
73aa6e1f37 Fixes failing require with unexpected symbol
Fixes
27/Nov/2018 18:33:31 [LuaEngine.cpp:8308] WARNING: Script failure [/usr/share/ntopng/scripts/callbacks/system/housekeeping.lua][error loading module 'shaper_utils' from file '/usr/share/ntopng/pro/scripts/lua/modules/shaper_utils.lua':
    /usr/share/ntopng/pro/scripts/lua/modules/shaper_utils.lua:1: unexpected symbol near '<\135>']
2018-11-27 18:39:21 +01:00
Simone Mainardi
994580a243 Updates lua to version 5.3.5 2018-11-26 14:12:10 +01:00
Simone Mainardi
0b0a836a7d Uses LUA_MAXINTEGER and LUA_MININTEGER only when available 2018-11-23 16:12:05 +01:00
Simone Mainardi
859e85c7ce Fixes C to Lua integer types conversions affecting OS X 2018-11-23 15:58:38 +01:00
Simone Mainardi
3f275417a3 Fixes race conditions with custom categories reload 2018-11-19 17:03:58 +01:00
Alfredo Cardigliano
6f029bb74c added extraction limit (optional) 2018-11-16 10:05:59 +01:00
Alfredo Cardigliano
279d51593b added ifid param in live extraction to be used with curl 2018-11-15 10:06:16 +01:00
Luca Deri
b7347e5b5d Record estraction fixes 2018-11-14 19:33:08 +01:00
emanuele-f
4d3f584d84 Add HTTP_HOST into the _SERVER lua variable 2018-11-14 15:45:15 +01:00
Alfredo Cardigliano
1fb192d6c6 mg_write timeout, limitung number of live extractions 2018-11-14 14:16:17 +01:00
Luca Deri
c193dc7576 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2018-11-14 00:57:48 +01:00
Luca Deri
ab5f73aed9 Little API call fix 2018-11-14 00:57:34 +01:00
Alfredo Cardigliano
c849fde491 interface.runLiveExtraction API to extract traffic with a direct download, live_traffic_extraction.lua endpoint 2018-11-13 22:35:28 +01:00
emanuele-f
69137c2a87 Expose MD5 function to Lua 2018-11-09 17:14:57 +01:00
Simone Mainardi
cc87e8ffe3 Adds interface.hasEBPF lua function to show certain menu entries 2018-11-06 16:08:14 +01:00
Simone Mainardi
5776e74da6 Implements eBPF username page with processes filtering 2018-11-05 17:21:04 +01:00
Simone Mainardi
128dbd086a Adds VLAN support to nIndex queries 2018-10-29 19:25:01 +01:00
Alfredo Cardigliano
610cb69b9c builtin packet dump code cleanup (moving to continuous recording) 2018-10-25 09:56:52 +02:00
Simone Mainardi
6c70cf5e2c Better handling of Lua states creation failures. 2018-10-22 12:26:54 +02:00
Alfredo Cardigliano
507fa3e972 ability to stop extractions while processing, time cap for pcap (1m by default) 2018-10-19 10:24:30 +02:00
Alfredo Cardigliano
2b565d1d63 traffic extraction jobs page to list and delete jobs, pcap download endpoint 2018-10-16 17:29:08 +02:00
Alfredo Cardigliano
a3a2b222de keeping track of extractions status, added getExtractionStatus lua api 2018-10-16 11:58:05 +02:00
Alfredo Cardigliano
0265d84479 runExtraction/isExtractionRunning lua api 2018-10-16 09:44:51 +02:00
emanuele-f
6717e3850b Rework l7 policies to properly handle nDPI categories 2018-10-15 17:18:27 +02:00
Alfredo Cardigliano
e9149d8806 footer badge when running traffic recording, logs page, --storage-dir option renamed to --pcap-dir 2018-10-12 18:09:35 +02:00
emanuele-f
936c869c3f Move expensive string concatenations to C while inserting timeseries 2018-10-12 17:58:59 +02:00
Simone Mainardi
3291161aed Fixes userddefined device type overwritten by ntopng
Fixes #2084
2018-10-12 16:51:38 +02:00
emanuele-f
99a0cf0dd6 Optimize foreachLocalRRDHost for timeseries extraction 2018-10-12 14:20:27 +02:00
Simone Mainardi
57e035ed2f Implements One-Way traffic filter for hosts
Implements #2091
2018-10-12 12:56:52 +02:00