Commit graph

3564 commits

Author SHA1 Message Date
Luca Deri
9a1bf20663 Deprecated inline capabilities now implemented in nEdge 2018-07-23 10:53:10 +02:00
Simone Mainardi
25588290eb Implements crypto miners alerts toggle
Implements #1826
2018-07-20 13:15:06 +02:00
Luca Deri
54e01e81f7 Trace fixes 2018-07-20 00:03:26 +02:00
Simone Mainardi
93838435fb Implements option to ignore VLAN identifiers
Implements #1870
2018-07-19 19:17:06 +02:00
Luca Deri
d39dde3383 Fixes for Win crashes
@simonemainardi Trace.cpp needs tome rework
2018-07-18 22:08:31 +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
Luca Deri
7f3ccec579 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2018-07-17 00:58:25 +02:00
Luca Deri
444a12e0e8 Win fixes 2018-07-17 00:58:05 +02:00
cardigliano
bc1182ddaf disableServiceLicense to disable online check when switching to demo mode 2018-07-17 00:50:15 +02:00
cardigliano
cbbd874496 moved shutdown code to Ntop::shutdownAll 2018-07-16 16:15:00 +02:00
Simone Mainardi
77c0f349d1 Migrates geolocation to GeoLite2 and libmaxminddb
Migrates class Geolocation to the new libmaxminddb

Handles static/dynamic compilation of libmaxminddb

Adds missing configure/make files for libmaxminddb

Adds libmaxminddb to travis.yml

Adds dev libmaxminddb to .travis.yml

Removes t Makefile

Removes missing ubuntu14 libmaxminddb-dev

Run autoreconf on libmaxminddb

Adds autoreconf to libmaxminddb static build

Adds libmaxminddb dependency to packages

Adds new *.mmdb files to debian/ubuntu ntopng-data

Adds new *.mmdb files to centos6/7 ntopng-data

Removes old libgeoip dep in favor of libmaxminddb

Adds back old .dat to debian/ubuntu ntopng-data

Adds back old .dat to centos ntopng-data

Adds autoreconf for travis

Removes libmaxminddb autoreconf from travis

Removes third-party libmaxminddb

Removes static build of libmaxminddb

Removes old libgeoip1 dependencies

Updates readme with libmaxminddb

Adds geolite attribution
2018-07-13 12:03:15 +02:00
Simone Mainardi
71ebaa39c2 Fixes allowed interfaces users access 2018-07-12 14:38:30 +02:00
cardigliano
f0ca79c942 ntopng key file name 2018-07-12 14:00:47 +02:00
Luca Deri
ea115eb582 Fix for enabling broken SSL certificate mismatch alerts 2018-07-09 23:48:31 +02:00
Emanuele Faranda
a4730f33c1 Improve captive portal support with WISPr XML 2018-07-06 19:35:48 +02:00
cardigliano
515505f6f1 support for capturing from interface pairs with ZC (#1842) 2018-07-02 13:22:36 +02:00
Simone Mainardi
b980a1808f Implements web UI ACL 2018-06-22 19:31:02 +02:00
Luca Deri
d4ad9dae90 Implemented packeet capture in background, ability to check if the capture is still in progress, and terminate it ahead of time
Example:
local fname = interface.captureToPcap(10, "tcp")

print(fname)

if(interface.isCaptureRunning()) then
   os.execute("sleep 1")
end

interface.stopRunningCapture()
2018-06-21 01:07:53 +02:00
Simone Mainardi
7fa432ad9a Generalizes captive portal server start/stop
Fixes https://github.com/ntop/ntopng/issues/1819
2018-06-20 18:07:00 +02:00
emanuele-f
f62345e0cb Fix disk packet dump
Broken since commit 4ea4491c054097383499d589eebf8a7d5bffa4a
2018-06-20 16:00:36 +02:00
Emanuele Faranda
b948b43fff Fix invalid banned site redirection 2018-06-20 11:55:14 +02:00
Simone Mainardi
c1bcc625ac Code cleanup for HTTP/HTTPs 2018-06-20 11:38:08 +02:00
Luca Deri
b0a69f164d Code cleanup 2018-06-20 08:54:57 +02:00
Luca Deri
1ee5eff201 Minor code cleanup 2018-06-20 08:25:24 +02:00
Simone Mainardi
8f1228c04f Captive portal HTTP server fixes 2018-06-19 17:29:36 +02:00
Luca Deri
56b275124f Improved ntopng startup time
Split the HTTP server into management and non-management (splash) servers

Implemented protection of the HTTP interface via an ACL that can be set with
- redis-cli set ntopng.prefs.http_acl_management_port "XXXX"

Where XXXX has the format +net/mask,+net/mask....

Example:
- You want the HTTP management interface be accessible only from localhost
   redis-cli set ntopng.prefs.http_acl_management_port "+127.0.0.0/8"

- You want the HTTP management interface be accessible for everybody except 192.168.0.0/16
  redis-cli set ntopng.prefs.http_acl_management_port "+0.0.0.0/0,-192.168.0.0/16"
2018-06-19 11:43:49 +02:00
Simone Mainardi
67f7cdb47e Implements Netfilter queue flush alerts 2018-06-15 16:23:05 +02:00
Simone Mainardi
fd42cfd0cb Implements Netfilter queue monitoring 2018-06-15 12:07:22 +02:00
Simone Mainardi
c382fd4631 Adds nEdge netfilter stats rrds 2018-06-15 00:34:26 +02:00
Luca Deri
d17bb9671f Added fix for #1755
Implemented OS detection via HTTP user agent
Minor cosmetic GUI fixes
2018-06-14 19:20:21 +02:00
Luca
29caa78eb1 Renamed Lua into LuaEngine to avoid name clashes 2018-06-13 18:17:49 +02:00
Luca Deri
4a1c5c5696 Improved ntopng shutdown time/latency 2018-06-13 00:27:38 +02:00
Luca Deri
0d6d3e4c58 Lua code cleanup
Added ability (in Makefile.in) to use the non-JIT Lua interpreter (usefult on some platforms)
2018-06-11 10:16:42 +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
c7ae3e3956 Created module for sending telegram.org messages 2018-06-05 00:01:48 +02:00
Simone Mainardi
9f3f56999c Reworks shutdown to allow graceful periodic activ term 2018-06-01 12:38:31 +02:00
emanuele-f
12d5e6a8bf Check influxdb export file name 2018-05-28 11:28:43 +02:00
emanuele-f
2b15b65f37 Use a single file for timeseries export 2018-05-28 10:28:26 +02:00
emanuele-f
42083f1865 Rework influxdb exporter 2018-05-25 13:52:06 +02:00
cardigliano
903aae0220 flag for service mode 2018-05-24 18:49:52 +02:00
cardigliano
2d01224fd7 embedded check cleanup 2018-05-24 17:13:30 +02:00
emanuele-f
2e7ea3cad7 Allow multiple consecutive dots in password fields 2018-05-23 11:35:29 +02:00
emanuele-f
73353f9de4 Clean NetworkInterface incStats 2018-05-21 13:13:42 +02:00
emanuele-f
d723c54b10 Hide interfaces with no IP address from the discovery 2018-05-16 15:52:26 +02:00
emanuele-f
a70dce4301 Secure ntopng cookies with SameSite and HttpOnly
HttpOnly prevents the cookie from being accessed by javascript code and restricts XMLHttpObject utilization.
See https://blog.codinghorror.com/protecting-your-cookies-httponly/ .

SameSite=lax restricts cookie utilization in iframes, images or XMLHttpRequests, but still allows external
sites to link to the ntopng webserver and use the existing authenticated user session.
See https://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/ .
2018-05-16 11:43:23 +02:00
Luca Deri
1b6292d8ea Updated for nDPI API 2018-05-14 22:59:41 +02:00
emanuele-f
89d203883f Add support for custom categories lists
- Extend malware hosts from list
- Read web mining hosts from list and generate alerts
2018-05-10 17:12:53 +02:00
Simone Mainardi
080c2ff5bf Implements support for ElasticSearch version 6 2018-05-07 13:04:55 +02:00
Luca
ab562fcac9 Removed unused code 2018-04-29 23:55:47 +02:00