Commit graph

4922 commits

Author SHA1 Message Date
Simone Mainardi
8609e0bc2e Avoids adding URLs for SNMP device interfaces no longer existing 2020-06-09 11:48:28 +02:00
Simone Mainardi
f33b46842a Avoids adding URLs for SNMP devices no longer existing 2020-06-09 10:24:53 +02:00
andpp
87d77d12d6 Fixing redirection issue after changing interface (#4022)
Simplifies interface switch send redirect code

Addresses https://github.com/ntop/ntopng/pull/4022
2020-06-08 10:31:16 +02:00
Simone Mainardi
4fabaf3c26 Uses the new snmp_cached_dev API in host_details.lua 2020-06-04 19:40:47 +02:00
Simone Mainardi
7cf28ead05 Updates host_details.lua with the new snmp lua interface 2020-06-04 10:38:41 +02:00
Simone Mainardi
47e855a75b Returns empty string in safe_html when input is nil 2020-06-03 19:08:37 +02:00
Simone Mainardi
17bfc850b1 Fixes XSS in dissected HTTP URLs, TLS certs, and DNS names
Fixes possible XSS due to forged HTTP urls such as

curl -u admin:admin1 "http://devel:3000/</a><script>alert(1);</script><a>"

Similar attacks could have been performed with TLS certs and DNS names
2020-06-03 19:03:55 +02:00
Simone Mainardi
6126b588c1 Always shows full info as part of the tooltip
Fixes #4009
2020-06-01 20:09:29 +02:00
Simone Mainardi
7b995070a2 Removes redundant host_name in page host_details.lua 2020-06-01 12:04:55 +02:00
Luca Deri
4ba2904386 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2020-06-01 11:55:10 +02:00
Luca Deri
a041bb52c0 Reworked port drill down support 2020-06-01 11:52:41 +02:00
Simone Mainardi
5d8d748cdf Fixes flows filter in host details page
Fixes #4010
2020-06-01 11:47:46 +02:00
Simone Mainardi
2010890af9 Migrates other lua to REST API v1 2020-06-01 11:03:12 +02:00
Simone Mainardi
19da0a665a Fixes host pool export conf 2020-06-01 11:02:23 +02:00
Simone Mainardi
9c09d1c315 Migrates admin/host_pools.lua to REST API v1 2020-06-01 10:59:42 +02:00
Simone Mainardi
6b4b5751bc Migrates host_details.lua to REST API v1 2020-06-01 10:46:55 +02:00
Simone Mainardi
0df00d2de3 Migrates footer.lua to REST API v1 2020-06-01 10:44:55 +02:00
Simone Mainardi
7067bb3725 Migrates if_stats.lua to REST API v1 2020-06-01 10:34:26 +02:00
Simone Mainardi
1d22c3c232 Adjusts naming conventions for rest/v1/get/alert/type/counters.lua 2020-05-29 18:05:35 +02:00
Simone Mainardi
f780152f89 Adjusts naming conventions for rest/v1/get/alert/severity/counters.lua 2020-05-29 18:02:29 +02:00
Simone Mainardi
6ea0531be0 Adjusts types and severities returned by rest/v1/get/alert/data.lua 2020-05-29 17:52:55 +02:00
Simone Mainardi
0d8012d9ec Adjusts naming convention for rest/v1/get/flow/l7/counters.lua 2020-05-29 17:42:31 +02:00
emanuele-f
3fe13a245b Remove unused references related to the timeseries ring 2020-05-29 14:54:21 +02:00
Alfredo Cardigliano
6eec119083 Return a standard json format for arrays 2020-05-29 12:47:22 +02:00
Luca Deri
da44b8fb65 Added missing parameter 2020-05-29 12:46:03 +02:00
Alfredo Cardigliano
b56b14b534 Alert ts endpoint fixes 2020-05-29 11:20:45 +02:00
emanuele-f
c55aaa4391 Fix error while adding a custom proto in non-existing protos.txt 2020-05-29 09:21:54 +02:00
Alfredo Cardigliano
49ac0c498a Comment 2020-05-29 09:14:53 +02:00
Alfredo Cardigliano
522fc65b55 Add rest/v1/get/host/active.lua REST API (#3954) 2020-05-28 19:02:19 +02:00
Simone Mainardi
e2d5497d52 Implement endpoint to list all interfaces of an host
Implements #3955
2020-05-28 18:57:08 +02:00
Alfredo Cardigliano
1b2c5274e5 Fix continuous recording toggle 2020-05-28 17:21:19 +02:00
Simone Mainardi
fba483b869 Implement getter for protocol constants
Implements ##3945
2020-05-28 17:13:19 +02:00
Simone Mainardi
3afb189336 Shortens category_id to cat_id in a rest json response 2020-05-28 17:01:04 +02:00
Simone Mainardi
38067e4ef8 Adds category id to the rest application consts getter
Implements #3944
2020-05-28 16:58:19 +02:00
Simone Mainardi
04945cc72f Implement getter for categories constants
Implements #3944
2020-05-28 16:51:57 +02:00
Simone Mainardi
8b85f0dd9e Implement getter for application constants
Implements #3944
2020-05-28 16:44:59 +02:00
Simone Mainardi
63628af5bd Simplifies getter for alert constants 2020-05-28 15:54:07 +02:00
Alfredo Cardigliano
1dffd35f59 Add rest/v1/get/interface/address.lua REST API (#3956) 2020-05-28 15:53:35 +02:00
Simone Mainardi
699ec1e2fb Implement getter for alert severity constants
Implements #3946
2020-05-28 15:51:39 +02:00
Alfredo Cardigliano
1674137782 Add rest/v1/get/flow/active.lua REST API (#3951) 2020-05-28 15:07:32 +02:00
Alfredo Cardigliano
192a043ae5 Remove iface_ndpi_stats.lua (use the REST API) 2020-05-28 11:21:43 +02:00
Alfredo Cardigliano
9348e51924 Add rest/v1/get/host/l7/stats.lua REST API (#3953) 2020-05-28 10:44:07 +02:00
Alfredo Cardigliano
00ca63bc71 Add rest/v1/get/interface/l7/stats.lua REST API (#3953) 2020-05-28 10:12:57 +02:00
Alfredo Cardigliano
e888188c64 Return NOT_FOUND if host not found (fix #3994) 2020-05-27 17:45:56 +02:00
emanuele-f
532225f1bc Fix custom protocol IDs not preserved
Addresses #3991
2020-05-27 15:36:07 +02:00
Simone Mainardi
073a8c3dd1 Implement getter for alert constants
Implements #3946
2020-05-27 15:26:58 +02:00
Simone Mainardi
db43a57c3b Implements better JSON comparison in tests and allows for custom dir and redis 2020-05-27 15:25:38 +02:00
emanuele-f
aedf348534 Move interface timeseries prefs to the global config
Addresses #3979
2020-05-27 13:48:27 +02:00
Alfredo Cardigliano
3e5eca0ee5 Filter rest/v1/get/alert/data.lua based on epoch_begin/epoch_end/alert_type/alert_severity (#3952) 2020-05-27 12:53:28 +02:00
emanuele-f
d83df2821b Add note for the side effects of lowering the timeseries resolution
Also fix hardcoded urls in the localization file.

Addresses #3958
2020-05-27 11:18:39 +02:00