Commit graph

234 commits

Author SHA1 Message Date
Simone Mainardi
10d6ea01cf Prevents empty values from being accepted for required_argument options
Fixes #2021
2018-09-13 18:07:01 +02:00
emanuele-f
a594e648c4 Generalize high resolution timeseries
In InfluxDB, 5 minutes timeseries are now written with a minimum of 1 minute resolution
2018-09-03 14:43:52 +02:00
Alfredo Cardigliano
b20e3e2d75 fixed max num interfaces for the enterprise edition, registerNetworkInterfaces->add_network_interface is actually checking the limit now 2018-08-30 17:38:45 +02:00
Alfredo Cardigliano
5d986787b1 default data directory migration from /var/tmp/ntopng to /var/lib/ntopng 2018-08-29 17:46:56 +02:00
Simone Mainardi
b8edabeb6f Improves handling of redis interface ids and maximum number of interfaces
Fixes #1952
2018-08-29 15:47:57 +02:00
emanuele-f
8a7ead5924 Harden HTTP session checks and remove user cookie 2018-08-21 18:16:54 +02:00
Simone Mainardi
cd6c7c4338 Adds SQL queries log performed from Lua 2018-08-13 19:27:00 +02:00
Luca Deri
5c635ef87f Added preference (Logging sub-menu) to create a trace log (ntopng.log) instead of using syslog 2018-08-11 13:42:13 +02:00
emanuele-f
163ef3af94 Allow to bind gui to a secondary address 2018-08-09 10:59:30 +02:00
Luca Deri
6114b41671 Added new prefs entry for nIndex
Added extra check in get_host_data.lua
2018-08-07 12:01:09 +02:00
Alfredo Cardigliano
3acc4e973d configuration backup (tar download) 2018-07-31 17:26:08 +02:00
Simone Mainardi
fc63f765ec Exposes lua setters for http/https bind addresses 2018-07-24 11:32:22 +02:00
Simone Mainardi
25588290eb Implements crypto miners alerts toggle
Implements #1826
2018-07-20 13:15:06 +02:00
Simone Mainardi
93838435fb Implements option to ignore VLAN identifiers
Implements #1870
2018-07-19 19:17:06 +02:00
Simone Mainardi
2c641cf286 Refactors class Host in LocalHost and RemoteHost
Adds class RemoteHost

Moves alert fields to LocalHost

Adds initialize() function to LocalHost

Differentiates local/remote hosts in restore

Uses isLocalHost for lua host print

Removes debug prints
2018-07-18 14:25:31 +02:00
cardigliano
94af46e21b new --online-check option for testing 2018-07-13 12:02:00 +02:00
Simone Mainardi
8f1228c04f Captive portal HTTP server fixes 2018-06-19 17:29:36 +02:00
Emanuele Faranda
c024bbd391 Disable global DNS forging by default 2018-06-12 10:58:13 +02:00
Simone Mainardi
c2220e2d05 Compilation fix 2018-06-06 10:56:39 +02:00
Simone Mainardi
8cca1f6703 Implements informative captive portal (no login) 2018-06-06 10:33:36 +02:00
Luca Deri
d8fc6b21c8 Compilation fixes 2018-05-31 21:12:58 +02:00
Simone Mainardi
c111ea2d8c Reworks options parsing from files
Fixes #1798
2018-05-31 13:16:58 +02:00
cardigliano
d161704639 service_license_check initialization 2018-05-25 09:27:47 +02:00
Simone Mainardi
080c2ff5bf Implements support for ElasticSearch version 6 2018-05-07 13:04:55 +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
Simone Mainardi
d222b0aa29 Prevents unnecessary nEDGE prefs from being set 2018-04-13 19:34:23 +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
Simone Mainardi
730b881b1a Fixes issues with long interface names
Fixes #1717
2018-04-04 16:01:30 +02:00
emanuele-f
15a3a46808 Remove redirection url from C as it's only used by lua and it has concurrency issues 2018-04-04 12:45:35 +02:00
emanuele-f
f19249bf70 Fix Prefs::reloadPrefsFromRedis concurrency issues
Fixes #1725
2018-04-03 22:50:18 +02:00
emanuele-f
d4bbeb10a2 Generalize alerts external report 2018-03-30 20:36:05 +02:00
Simone Mainardi
51bb092f8a Hides sensitive options from the GUI startup line 2018-03-29 15:37:05 +02:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
Luca Deri
2ae3b42d77 Implemented toggle for ARP/IP reassignments alerts 2018-03-22 10:52:46 +01:00
emanuele-f
ae434e327e nedge changes 2018-03-20 20:30:52 +01:00
Simone Mainardi
705425eb0c Fixes for Redis socket connections 2018-03-07 14:38:55 +01:00
Luca Deri
9f0458561a Replaced nDB with nIndex experimental support 2018-02-13 20:57:19 +01:00
emanuele-f
99b67b16ad Remove old nedge define and move to new one 2018-02-09 13:01:08 +01:00
Simone Mainardi
3ef543fecd Implements per-AS nw latency stats rrds 2018-02-05 18:32:13 +01:00
emanuele-f
f37b071d72 Harden options parsing to avoid crashes on bugged options 2018-02-02 10:18:33 +01:00
emanuele-f
0861aeff8d Fix crash on -H option and remove corresponding option from man page 2018-02-02 10:00:05 +01:00
Emanuele Faranda
a5aa6f256e Redirect to original URL if user specified redirection url is empty 2018-01-30 07:01:18 -05:00
emanuele-f
9f556d18b5 Add global preference to forge DNS 2018-01-10 11:58:12 +01:00
emanuele-f
4305731106 Add routing mode flag 2017-12-18 12:50:17 +01:00
Simone Mainardi
04627745ae nEdge packaging 2017-12-17 23:14:47 +01:00
Luca Deri
c9ecd931d9 Code cleanup 2017-12-16 08:23:56 +01:00
Simone Mainardi
f25c6b6724 Makes informative dropped flows alerts configurable 2017-12-14 19:11:18 +01:00
Simone Mainardi
754377d372 Implements remote-to-remote flows alerts 2017-12-12 13:16:46 +01:00
emanuele-f
0d433df91b Fix default policy user logic
To determine the policy to apply, the following rules are checked in this order:

1) A pool specific policy on the protocol exists? Use it
2) A default pool policy on the protocol exists? Use it
3) A pool specific policy on the category exists? Use it
4) A defaul pool policy on the category exists? Use it
5) Use the global policy
2017-12-07 13:46:47 +01:00
emanuele-f
58fba7df8b Fix syslog preference being ignored 2017-11-17 15:27:10 +01:00