Commit graph

17 commits

Author SHA1 Message Date
emanuele-f
d85fc2b06b Migrate interface alerts to in-memory alerts 2017-11-16 16:05:49 +01:00
Simone Mainardi
4b2d6c8af6 Hardening: more restrictive permissions of created files and dirs
As top_talkers and alerts_db were created with root privileges,
a chown may be required if the process is run with nobody

-rw-r--r-- 1 root   root    3.0K Oct  3 16:35 top_talkers.db

Fixes #1486
2017-10-03 16:47:18 +02:00
emanuele-f
d3292c1b7e Add a preference to specify what to show on the policy target column.
The new default is to only show categories.
Existing installations will have the preference set to both.
All the user defined protocols and categories are shown regardless of the preference (as not-editable fields in case).
2017-09-20 00:02:08 +02:00
Simone Mainardi
4ac6c92b9c Implements custom nDPI proto categories changes 2017-09-15 19:48:49 +02:00
Simone Mainardi
c4a6ddd3a4 Implements bridge configuration via HTTP 2017-08-16 18:09:33 +02:00
Simone Mainardi
eaa7a0d313 Separates L3 IPs from L2 MACs
Before this commit, multiple L3 hosts were allocated if the same ip
address was seen with multiple mac addresses. We have decided to keep
ip and macs logically sepatated. For this reason, after this commit,
the L3 ip always remains the same even if there are changes in the
mac. A user who wants to monitor mac addresses can use the L2 section
as well as the host pools.

This commit also reverts:
"Add MAC address to the serialized hosts key to fix bad MAC address association and stats"

This reverts commit 89a756fb9a.
2017-07-04 01:41:31 +02:00
emanuele-f
94933f7c44 Fix error with sticky hosts 2017-06-21 14:39:13 +02:00
emanuele-f
89a756fb9a Add MAC address to the serialized hosts key to fix bad MAC address association and stats
startup.lua will handle hosts keys migration
2017-06-13 21:12:28 +02:00
emanuele-f
716e01cbbe Make shapers use hosts pools 2017-01-18 20:06:23 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Luca Deri
ce5fbf2a8e Traffic shaping code cleanup and optimizations 2016-12-10 13:27:42 +01:00
Luca Deri
6f9a7d0238 Lua code cleanup 2016-12-10 08:45:13 +01:00
Simone Mainardi
758db35671 Implements MySQL open_files_limit check
ntopng checks MySQL for the value of open_files_limit and engages
and alert if the worst case number of open files is greater
than or equal to the 80% of open_files_limit
2016-12-09 17:14:25 +01:00
Simone Mainardi
823a306864 Implements shapers init for bridge interfaces 2016-12-08 13:22:17 +01:00
Luca Deri
a153717ee3 Added the ability to generate alert when ntopng detects traffic produced by malware hosts. Currently ntopng uses the blacklist generated by EmergingThreads, but it is possible to extend/modify the list of blacklists by modifying blacklist_utils.lua 2016-11-17 08:58:38 +01:00
Simone Mainardi
2bba05150e Implemenst hosts 'stickyness' across ntopng restarts 2016-08-31 19:29:40 +02:00
Simone Mainardi
85c5beb545 Implements alerts on a per-interface per-vlan basis
Interfaces were handled globally before this commit. Now
alerts can be configured per-interface. So for example alerts
for the same host 193.168.2.1 can be handled differently on multiple interfaces.

Old alerts configured should be automatically migrated thanks to script startup.lua

This commits also paves the way to introduce stateful alerts in the professional version
2016-07-27 22:10:17 +02:00