Commit graph

82 commits

Author SHA1 Message Date
Simone Mainardi
95ed93f580 Dereference of null pointer fixes 2018-05-28 17:51:14 +02:00
emanuele-f
271770d887 Emulate redis restore REPLACE flag
This fixes redis restore errors on systems with redis version older than 3.0 (e.g. redis 2.8 on debian 8) not supporting the REPLACE flag.
2018-05-07 17:59:34 +02:00
emanuele-f
6bc2f12d38 Fix nedge crash on factory reset and subsequent crash on reloadPrefs
0x00000000004489b2 in Redis::get (this=0x831370,
    key=0x574594 "ntopng.user.admin.password",
    rsp=0x834c00 "\030\323\037\365\377\177", rsp_len=131052, cache_it=false)
    at src/Redis.cpp:259
0x000000000044a9fc in Redis::setDefaults (this=0x831370) at src/Redis.cpp:719
0x000000000044ac0d in Redis::flushDb (this=0x831370) at src/Redis.cpp:757
0x00000000004752e5 in ntop_flush_redis (vm=0x40000378) at src/Lua.cpp:1948

==18227== Invalid free() / delete / delete[] / realloc()
==18227==    at 0x4C2E10B: free (vg_replace_malloc.c:530)
==18227==    by 0x153431: Prefs::refreshLanWanInterfaces() (Prefs.cpp:1543)
==18227==    by 0x15035A: Prefs::reloadPrefsFromRedis() (Prefs.cpp:557)
==18227==    by 0x137DA7: Redis::checkDumpable(char const*) (Redis.cpp:206)
2018-04-19 17:04:21 +02:00
Luca Deri
6d47e659f1 Reworked alerts
Added informative event when ntopng starts/stops
Fixed packet capture bug on ODX (and other BSD flavous)
Renamed #ifdef linux to #ifdef __linux__ to ease portabiity across architectures
2018-04-13 18:10:19 +02:00
Luca Deri
5c56afba53 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2018-04-13 17:21:33 +02:00
Luca Deri
00004494bf Reworked alarms
Added informative message at ntopng startup/shutdown
2018-04-13 17:19:58 +02:00
emanuele-f
8128a0fcc2 Make prefs cachable again 2018-04-13 15:57:54 +02:00
emanuele-f
23c45f3f4a Ignore 0 mac in IP reassignment alerts 2018-04-12 18:21:49 +02:00
emanuele-f
23d7a2676a Rework alerts export to provide more endpoint control 2018-04-12 18:10:45 +02:00
Luca Deri
b8a870b631 Experimental TS code 2018-03-24 11:37:04 +01:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
emanuele-f
02a3c73217 Oem fix 2018-03-19 18:14:54 +01:00
Simone Mainardi
705425eb0c Fixes for Redis socket connections 2018-03-07 14:38:55 +01:00
melak
7a725cdd6d Redis connection via Unix domain socket (#1657) 2018-03-07 14:12:58 +01:00
emanuele-f
140005907a Fix redis replace of existing keys 2018-01-18 22:50:09 +01:00
Simone Mainardi
a6e386a539 Adds https port to the nEdge conf file 2018-01-16 19:30:23 +01:00
Simone Mainardi
43265da8b0 Makes all ntopng.pref keys persistent to file 2018-01-16 18:47:50 +01:00
Luca Deri
41b2fe440b Added check for redis version 2017-12-14 23:29:37 +01:00
Luca
d1fddd08a3 Extended redis key/val buffer 2017-11-10 12:09:20 +00:00
Simone Mainardi
4bbe36c957 Removes unused DNS-based categorization 2017-10-31 13:53:17 +01:00
Luca Deri
07bb923450 Fix for missing libcap-dev lib in README.compilation
Fixed bugs on ARP/ICMP sorting due to packet formatting
Added drops reset when an interface is just initialized
Fixed bug on RuntimePrefs hash get
2017-09-21 14:57:27 +02:00
Luca Deri
32894420f0 Implemented flow stats set 2017-09-21 00:39:47 +02:00
Luca Deri
29b15ec6bc Implemented Redis dump/restore
Fixes for changed nDPI API
2017-09-20 00:08:16 +02:00
Simone Mainardi
190bb2fe97 Fixes possible deadlocks
A new redis instance is spawned for the trace of events. This
prevents possible deadlocks.
2017-09-15 11:49:13 +02:00
emanuele-f
42ef95548f Add a method to reset redis database 2017-09-05 13:04:46 +02:00
Simone Mainardi
299e59920a Ensures backward compat. with old prefs 2017-07-11 11:12:20 +02:00
Simone Mainardi
a374c23b75 Implements dynamic runtime prefs
Handles generic ntopng.prefs.*

Proper handling of strings

Implements double serialization file

Makes prefs dump dir configurable
2017-07-10 15:09:39 +02:00
emanuele-f
86d2ad35a6 Fix ntopng version cache not working 2017-05-31 22:13:14 +02:00
Simone Mainardi
6f7c2b9616 Reworks default password change 2017-05-02 15:12:52 +02:00
emanuele-f
8202411be3 Fix invalid ntopng users being created when bad credentials are supplied 2017-04-27 21:18:45 +02:00
emanuele-f
cd40d43db7 Search host by custom name 2017-03-23 17:02:22 +01:00
Josh Soref
78e78c018c Fixes spellings and typos
Thank goes to
Josh Soref <jsoref@users.noreply.github.com>
2017-03-06 17:54:48 +01:00
Luca
91c7631da2 Host name resolution is disabled for remote hosts when set in preferences
Minor update to the FreeBSD readme
2017-02-24 17:02:09 +01:00
Luca Deri
941e5d3f0f Reworked Flashstart to avoid using the redis cache
Reorganized code
2017-01-31 19:23:18 +01:00
Martino Sani
a14f8e53f5 fix: possible use after free in redis::flushCache when CACHE_DEBUG is enabled 2017-01-27 00:06:58 +01:00
Luca Deri
e423d8c94c Displayed host pool in host detail page
Fixed bug in redis that was not properly reporting the return code on some commands (e.g SADD)
Changes for captive portal implementation
2017-01-20 00:43:44 +01:00
Luca Deri
c6e21b7f6e Improvements on AddressTree
Initial support of captive portal on HTTP server
2017-01-19 19:14:20 +01:00
emanuele-f
107b4543a5 Correct last commit 2017-01-17 14:01:25 +01:00
emanuele-f
dac76bd6e1 Fix bad unsigned int value 2017-01-17 13:58:18 +01:00
emanuele-f
82f3f55104 Add redis set bindings 2017-01-17 12:56:57 +01:00
Simone Mainardi
df3a99decc Implement Host Pools 2017-01-17 11:34:57 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Simone Mainardi
8b5205e610 Prevents a 'pointer being freed was not allocated' 2016-12-30 22:34:45 +01:00
Luca
2ba6b7e1bb Implemented redis caching to reduce cache pressure (work in progress)
Rearranged menus
2016-12-30 10:54:59 +01:00
Luca
ec74acdfbc Implemented redis stats. 2016-12-28 22:27:52 +01:00
Luca
f56ea09247 Disabled specific operations for non-local hosts
Using #defines for strings
2016-12-15 19:00:58 +01:00
Simone Mainardi
e8707bcaa9 Implements counters for export dropped flows (wip)
ntopng optionally exports flows to MySQL or ES. This change
keeps track of possible drops (e.g., due to a slow mysql server)
and shows them to the user.
2016-08-26 19:27:46 +02:00
Simone Mainardi
f1c25e7d77 Implements Redis-authentication
Implements #685
2016-08-11 11:34:36 +02:00
Simone Mainardi
52abb7659a Handles per-interface alerts via the AlertsManager
This commit moves the global ntopng-wide alerts to
interfaces' AlertsManager s
2016-08-09 16:47:36 +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