Commit graph

50 commits

Author SHA1 Message Date
Luca
dc731e3177 Work in progress towards BATMAN support (http://www.open-mesh.org/projects/open-mesh/wiki/BATMANConcept) 2015-07-15 17:12:28 +02:00
Luca
5b88a7e93f Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2015-07-13 17:23:19 +02:00
Luca
bdbbdec863 Changed propedeutic for MySQL support (work in progress) 2015-07-13 17:21:26 +02:00
Arianna Avanzini
0a0a280807 src: add communities manager
This commit introduces a class to handle host communities, that are
a logical representation of clusters of hosts that fall under the
same administrative domain. This commit also adds a new command line
option to specify a file containing aggregation rules and code to
parse such file with an adequate syntax:
  communityX@id1=net1,net2,net3
  communityY@id2=net4,net5,net6
  ...

Communities are unused now. Further commits will introduce reports
to represent communities and describe them with stats.
This addresses issue #75.
2015-07-12 02:54:37 +02:00
Arianna Avanzini
6f7adea797 include/ntop_defines.h: add constants for flows and hosts limit
This commit adds two constants representing a possible limit
for flows and hosts to be loaded into the Lua stack. Note that
the constants are still unused. This change is made towards
future modifications for issue #26.
2015-07-10 23:06:50 +02:00
Arianna Avanzini
6d6387e3be src/Lua.cpp: add possibility to get hosts info just for local hosts
This commit adds iterators to the Host class to the purpose of
allowing to get information just for local hosts. This also adds
Lua bindings to the Lua class so that scripts can access the
newly-added feature. This will help with issue #26.
2015-07-10 23:06:34 +02:00
Luca
f6c0cb24d2 Reworked code to handle changes in nDPI master/sub-protocol support
Documented -t parameter and fixed bug for handling it
2015-07-07 10:59:41 -04:00
Luca Deri
44118d2cc4 Fixed flow-label issues with latencies 2015-07-07 00:44:24 +02:00
Arianna Avanzini
1ba90baf9b src/Prefs.cpp: add parameter to specify install directory
Starting ntopng from outside the install folder can cause problems
if ntopng has not been installed but instead compiled from source.
This commit adds an install-dir parameter to allow to specify where
ntopng executable and scripts are so that variables are set
correctly. Please refer to the help to get info about the usage
of the option.
2015-07-05 22:50:29 +02:00
Luca
dc6a52c09b Fixed bug that caused ntopng not to export to ES when -e was in use 2015-06-28 07:42:41 -07:00
Arianna Avanzini
f514a4db87 src/FlowsManager.cpp: add infrastructure for filtering flow queries
This commit adds a first option to filter results of queries
on flows so that only relevant info can be returned. This for
now only introduces a PORTS filter. This helps reducing the
load on the Lua stack when the flows limit is high.
2015-06-16 13:16:07 +02:00
Arianna Avanzini
ad0ea8a2ec src/FlowsManager.cpp: implement very basic SQL-like parser
This commit implements in the FlowsManager class a very basic parser
for SQL-like fixed-format strings, which allows for better flexibility.
This is a first step towards delegating to Lua scripts the construction
of the SQL statement.
2015-06-14 14:43:01 +02:00
Arianna Avanzini
6cc3d4311b src/FlowsManager.cpp: allow to explicitly specify no filtering
This commit adds a new field type to explicitly specify the
absence of filtering on flows instead of relying on the value
of field containers.
2015-06-13 11:36:20 +02:00
Arianna Avanzini
41b30de775 src: add flexible interface to filter flows stats
This commit introduces FlowsManager, a class implementing a flexible
interface for filtering flows stats. This is to be complemented
with a high-level interface allowing the Lua part to filter stats,
but as of now simply replaces the current getActiveFlowsList()
interface.
2015-06-13 03:42:13 +02:00
Luca Deri
a8c3ee2465 Reworked CPIU/interface affinity 2015-06-07 08:45:40 +02:00
Luca Deri
15e6730236 CPU affinity on network interfaces is now set before changing user to nobody
Fixed shutdown crash
2015-06-06 17:32:04 +02:00
Zbynek Houska
71414f65be Fixes needed for smooth compilation on OpenBSD 5.7 2015-06-02 12:46:47 +01:00
Zbynek Houska
9b7814d061 Added string.h in order to be able to use strlcpy and strlcat 2015-06-02 12:32:22 +01:00
Luca
dc746b45b3 Various optimizations for malware flow categorization (-c) 2015-05-28 19:04:03 +02:00
Luca
f543926066 Optimized categorization of malware sites
Extended Host class to identify multicast and broadcast (limited to 0.0.0.0 and 255.255.255.255 IPs)
2015-05-28 15:33:42 +02:00
Luca Deri
192983d35c An alert is genererated when a malware site is visited 2015-05-27 21:27:31 +02:00
Luca Deri
e2b04d128f Revamped host categorization and moved to Google Safe Browsing for detecting safe and malware sites 2015-05-27 17:58:26 +02:00
Matteo Loporchio
81642359ad Experimental domain categorization
Experimental support for websites and domain categorization based on
Google Safe Browsing API has been added.
2015-05-27 11:41:13 +02:00
Luca Deri
1b47d05507 Optimized preferences redis read
DNS resolution is not slower on embedded boxes
Preferences layout renders better when resizing the windows
2015-05-27 00:35:28 +02:00
Luca Deri
1d3e98b101 Change to avoid checking alerts state (enabled/disabled) too oftem 2015-05-26 22:57:57 +02:00
Arianna Avanzini
b519ad39b6 scripts/lua/admin/prefs.lua: add basic RRD configuration options
This commit adds a first implementation of configuration preferences for RRDs.
Different config options are selectable for network interfaces RRDs and
other RRDs. This addresses issue #33.
2015-05-26 02:54:17 +02:00
Luca Deri
014594c0a4 Windows fixes 2015-05-23 20:04:15 +02:00
Arianna Avanzini
5d41caf380 src/HistoricalInterface.cpp: add limit for number of retrieved rows
This commit lets the Historical Interface retrieve rows only with
a limited amount. This should work around current stats retrieval
issues. The max number of retrievable rows is split across queries
equally.
2015-05-22 01:04:53 +02:00
Luca Deri
2b252633cb Changes to the shaper GUI 2015-05-19 01:02:15 +02:00
Luca Deri
74fc9f8256 Windows fixes 2015-05-18 18:30:22 +02:00
Luca Deri
d65eb6b624 Win changes 2015-05-18 17:34:12 +02:00
Arianna Avanzini
7ee3b06c21 scripts/lua/host_details.lua: add missing binding for per-host alert prefs
This commit adds missing binding code which handles per-host alert
prefs refresh. This also changes Lua binding code and core ntopng
code to suit the new prefs system.
2015-05-18 11:47:00 +02:00
Luca Deri
f1bccea6d9 Reworked README files
Defleted files no longer necessary
Cleaned up include path and temporary files
2015-05-18 09:47:04 +02:00
Luca Deri
9f12bf5597 Updated shaper reference 2015-05-18 01:28:22 +02:00
Luca Deri
3240b2c5b7 Restores 2015-05-18 01:25:06 +02:00
Luca Deri
9787317927 Merge branch 'dev' of https://github.com/ntop/ntopng into dev
Conflicts:
	include/ntop_includes.h
2015-05-18 01:18:27 +02:00
Luca Deri
6630297dcd Policer update 2015-05-18 01:15:55 +02:00
Arianna Avanzini
0a0e25568b src/NetfilterInterface.cpp: handle absence of pollLoop correctly
This commit fixes a segfault issue in pthread_setaffinity_np()
happening when the NetfilterInterface is used with some values
of pollLoop due to the poll loop not being actually used.
2015-05-17 01:40:22 +02:00
Arianna Avanzini
f09cf25c12 include/ntop_defines.h: use better name for netfilter-based interface
This commit changes the netfilter-based interface's name to lowercase
so that it compiles with existing standards.
2015-05-17 01:39:52 +02:00
Arianna Avanzini
5075ed4f2c ntop_includes.h: fix include paths for pro version
This commit adapts the include file with the correct include
path according to latest changes in the pro version.
2015-05-16 21:42:00 +02:00
Arianna Avanzini
99233759fc include/ntop_includes.h: add include for TokenBucketRing
This commit adds the header file for the new token bucket implementation
available in the professional version of ntopng.
2015-05-15 02:59:38 +02:00
Arianna Avanzini
037e6c3fdd include/StatsManager.h: reduce query buffer size
This commit reduces the size of the buffers used to keep query
strings as it is definitely oversized.
2015-05-12 23:04:04 +02:00
Arianna Avanzini
272f2528bd src/StatsManager.cpp: fix issue with sqlite buffer size
This commit fixes an issue with sizing of the buffer used to retrieve
data from the sqlite backend keeping top stats. Now the sqlite
backend allocates itself data structures of the needed size and
these same structures are used for retrieval
2015-05-12 23:02:42 +02:00
Arianna Avanzini
8b7f2de098 src/NetfilterInterface: add ability to start ntopng on top of a netfilter queue
This commit adds to ntopng the possibility to start it on top of
a netfilter queue. The queue must be previously created before
being passed on as parameter to ntopng with the syntax explained
in the README.netfilter file, added with this commit.
This addresses issue #5.
2015-05-11 00:16:49 +02:00
Luca Deri
acb313f0e9 Added -u flag to start capture with promiscuous mode disabled 2015-05-09 09:09:57 +02:00
Arianna Avanzini
3cf6766eea Host.cpp: make alert thresholds per-host
This commit moves alert thresholds so that they are now per host
and not global. This addresses issue #3.
2015-05-07 14:42:48 +02:00
Arianna Avanzini
e2ac52d02a if_stats.lua: add option to dump all traffic
This commit adds to the per-interface Packet Dump tab an option
to dump all traffic to the selected media. This makes the dump
filtering option a three-state mechanism, which allows to
disable dump, enable dump only for selected hosts, and enable
dump of all traffic.
2015-05-02 01:02:37 +02:00
Arianna Avanzini
8ba4cc531c flow_details.lua: add checkbox to dump flow traffic on disk
This commit adds an option to force dump on disk of a specific
flow, despite what other options and preferences might be.
2015-05-02 00:43:22 +02:00
Luca Deri
e9919c1478 movrd back to where it should be 2015-05-01 23:29:37 +02:00
Luca Deri
b178cf4121 Added travis file for code testing
Added .gitignore file for ignoring selected files
Reworked src and include paths to organize the source better
Fixed bug with invalid git version caused in some settings that do not compile code extracting it from github
2015-05-01 19:40:52 +02:00