Luca Deri
61d33f673a
Improved hosts map
2022-04-27 22:42:33 +02:00
Alfredo Cardigliano
19310ffd06
Initial cleanup of useless consts towards migration to modern C++ ( #6271 )
2022-02-03 15:57:34 +01:00
Alfredo Cardigliano
f2060f2488
Copyright update (C)
2022-01-03 09:35:09 +01:00
Luca Deri
9bd28b1f54
Added code for tracking C functions that do not fill up the Lua state properly. In case of issues
...
detected, the misbehaving function is reported on the screen for easy patching. Fixed a couple
of functions that were not setting the return state properly.
Lua VMs are reset before reuse.
Minor code cleanup and rename (Vm -> VM).
2021-10-14 19:03:18 +02:00
Simone Mainardi
2e6068bdef
Fixes selection and XSRF when changing the observation point
2021-09-23 16:05:55 +02:00
Luca Deri
846d24c5e9
Initial VLANid rework
2021-06-15 23:01:59 +02:00
Simone Mainardi
09f9254aa7
Prevents non-admins to switch to system interface
...
Partially addresses #5324
2021-05-25 17:04:51 +02:00
Luca Deri
a1178a0791
Updated (C)
2021-01-02 12:08:23 +01:00
Luca Deri
2ef29c7c5e
Cleanup code removing .inc files
2020-11-25 22:05:06 +01:00
Luca Deri
94076c9976
SNMP improvements
2020-06-16 20:05:08 +02:00
Luca Deri
8c948de437
SNMP code reorganization
2020-05-25 23:50:36 +02:00
Luca Deri
3ef493a2b2
Added ping tracings
2020-05-07 16:45:58 +02:00
emanuele-f
6b4c507492
Move CSRF token from request to session
...
Now the CSRF token is bound to the user session.
This addresses the issues outlined in #3866 , in particular the CSRF expiration issues.
2020-05-06 13:04:12 +02:00
Simone Mainardi
1cd375d756
Implements per-activity rrd writes duration
2020-02-19 15:34:29 +01:00
Simone Mainardi
0e64fd94d6
Implements deadlines for periodic and user scripts
2020-02-18 18:44:41 +01:00
Luca Deri
57e6a93065
Improved scheduling algorithm to guarantee minimum service time when number of entries allow
...
Updated (C)
2020-01-06 23:36:36 +01:00
emanuele-f
458a773a93
Refactor internal scripts for cleaner code
2019-12-31 16:53:32 +01:00
emanuele-f
c74fa6e908
Implement reusable lua engine
...
The same Lua vm is now reused. After 5 minutes the vm is destroyed and
reloaded to prevent memory to grow too much. inotify is used to detected
changes in the filesystem (partially implemented, must implement a recursive
watch)
This optimizes periodic scripts calls by a 10x factor.
2019-12-24 18:35:58 +01:00
Alfredo Cardigliano
d69276396f
Replace Interfaces dropdown with Interface stats link and interface selector
2019-11-27 17:28:48 +01:00
Simone Mainardi
9cb566ed41
Computes lua scripts deadlines in C to prevent missing scheduled activities
2019-11-19 13:02:13 +01:00
Simone Mainardi
661f897898
Implements instrumentation to monitor lua flow callbacks
2019-09-17 17:42:54 +02:00
Simone Mainardi
968e21d984
Implements flow lua callbacks in the periodic activities thread
2019-09-12 15:36:41 +02:00
Simone Mainardi
91163ed4e2
Fixes Lua script failures when loading alerts/flow.lua
2019-09-02 10:53:36 +02:00
emanuele-f
20d2d929c7
Fix missing interface alerts
...
Fixes #2770
Fixes #2769
2019-08-19 11:20:29 +02:00
Luca
6f95b32eae
Alert triggering optimisation
2019-08-15 21:20:39 +02:00
Simone Mainardi
a5bf74b2b6
Makes AlertCheckLuaEngine a subclass of LuaEngine
2019-07-18 17:27:57 +02:00
Simone Mainardi
54c1df4b4d
Implements class AlertCheckLuaEngine and refactors code
2019-07-18 17:01:05 +02:00
emanuele-f
c117f20e19
Initial rework for in-memory alerts
2019-07-16 19:25:09 +02:00
Simone Mainardi
fbc74bf423
Initial implementation of network alerts (wip)
2019-07-09 19:33:27 +02:00
Luca
76ef993dfe
Reworked alerts
2019-07-07 15:09:24 +02:00
Simone Mainardi
a47480c720
Removes unnecessary dynamic_cast for a virtual method call
2019-05-14 23:11:50 +02:00
Simone Mainardi
c586eb106d
Adds forward declaration of ZMQParserInterface to LuaEngine
2019-05-14 22:36:17 +02:00
Luca Deri
bedff2c8e2
Updated (C)
2019-01-07 19:28:49 +01:00
Luca Deri
25039127e4
Win changes
2018-12-20 10:44:03 +01:00
emanuele-f
f65c618b3f
Move user group information into the session
...
This fixes issues and inconsistencies when the same user logins from different authenticators at the same time
Fixes #2212
2018-12-11 18:44:34 +01:00
Simone Mainardi
859e85c7ce
Fixes C to Lua integer types conversions affecting OS X
2018-11-23 15:58:38 +01:00
Simone Mainardi
6d99be2f2d
Adds application category to the flow details page
2018-10-09 12:17:19 +02:00
Simone Mainardi
a1a5d53c8e
Improves Lua-based params validation
...
Fixes #1935
2018-08-28 15:08:34 +02:00
emanuele-f
8a7ead5924
Harden HTTP session checks and remove user cookie
2018-08-21 18:16:54 +02:00
Simone Mainardi
abed170e98
Simplified handling of allowed interfaces
2018-08-21 13:21:21 +02:00
Simone Mainardi
dfb2401789
Reverts allowed interfaces fixes to make room for simplified code
2018-08-20 22:51:51 +02:00
Simone Mainardi
3f45eaabc3
Fixes for allowed ifnames
2018-08-20 20:40:45 +02:00
Simone Mainardi
ee3f4ed52b
Better handling of allowed interfaces during login
2018-08-20 17:48:15 +02:00
Luca Deri
67741e6b43
Ignored _GET for informative captive portal
2018-08-06 09:27:07 +02:00
Luca Deri
5ebaec2867
Added better trace for potential XSS attempts
2018-08-04 19:18:17 +02:00
Luca
29caa78eb1
Renamed Lua into LuaEngine to avoid name clashes
2018-06-13 18:17:49 +02:00