Commit graph

2,293 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
83cd081831
ui,events: minor syntax/organizaton changes 2026-01-13 12:08:49 +01:00
Gustavo Iñiguez Goia
84f427d02f
ui,events: re-added removed line
by error.
2026-01-13 01:08:20 +01:00
Gustavo Iñiguez Goia
2c25273963
ui,events: apply filter search when selecting fw rules
Apply filter search when selecting system firewall rules sections (Rules
tab).
2026-01-13 00:49:01 +01:00
Gustavo Iñiguez Goia
dcb1d2e824
ui,events: allow to apply fw rules to nodes
- Added option to apply system firewall rules (nftables) to remote
   individual nodes, or to all nodes.
2026-01-13 00:39:38 +01:00
Gustavo Iñiguez Goia
d4ef65e3c9
ui,events: fixed var/methods names 2026-01-12 23:45:40 +01:00
Gustavo Iñiguez Goia
92a9932ce1
ui,fw: fixed returning values, syntax changes
- add() return 2 values on success.
 - replaced == by is/is not.
2026-01-12 23:40:48 +01:00
Gustavo Iñiguez Goia
2a95645123
ui,prefs: check db directory path before saving it
When selecting the db name from the Preferences dialog, it's possible to
enter a relative path as name, like: mydir/my.db

In this case we were failing to use the db, because the path doesn't
exist. We should only allow to select file names.

See: #1463
2026-01-12 19:01:36 +01:00
Gustavo Iñiguez Goia
a97de809d0 ui,events: allow to apply rule(s) to all nodes
Add option to apply a rule to all nodes by right clicking on a rule or
group of rules.
2026-01-12 18:23:07 +01:00
Gustavo Iñiguez Goia
1cf35fdb22
Merge pull request #1504 from Sisyphus1813/FixFedoraInstructions
Update README.md
2026-01-12 17:29:28 +01:00
Sisyphus1813
40d67d1259 Update README.md
- Updated README to reflect correct dnf5 commands (yum localinstall is deprecated).
2026-01-11 19:14:01 -05:00
Gustavo Iñiguez Goia
442b466b63
tasks: improved scheduler
Restart the daily timers appropiately if the clock has drifted, for
example when the computer is put to sleep.
2026-01-12 00:04:54 +01:00
Gustavo Iñiguez Goia
24c770cc45
ui: allow to configure columns of all tables
Now it's possible to hide or show columns by right clicking on the
header of a table.

Columns of the detail views are not configurable yet.
2026-01-11 23:57:07 +01:00
Gustavo Iñiguez Goia
04e9f4d6d8
ui, rulesedit: fixed accessing constants 2026-01-10 17:29:18 +01:00
Gustavo Iñiguez Goia
903c71ba06
ui,events: edit rule from the main tab
Closes: #1337
2026-01-10 17:12:03 +01:00
Gustavo Iñiguez Goia
64c0bc66ee
ui,stats: fixed displaying headers sort indicator
Closes: #1280
2026-01-10 16:15:46 +01:00
Gustavo Iñiguez Goia
b87b67da6c
ui: events window modularized into smaller components
The main window has been refactorized into smaller components, to
improve maintainability and scalability.

This is the first step toward a more complete GUI.

 - Added a base class with common methods for widget manipulation.
   Plugins should call these methods rather than accessing directly
   the widgets by name.
 - Functionality grouped into their own classes and files:
   Config: views global definitions.
   Views: functionality related with the interaction of the widgets.
   Queries: common methods for querying and filtering data.
   Menus: methods for building (contextual) menus.
   Tasks: background related tasks (netstat, node monitoring, ...)

 - New functionality:
   * added advanced search: allow to select fields to build complex
     queries.
2026-01-09 22:53:21 +01:00
Gustavo Iñiguez Goia
fa39ccd18e
ui,db: better error messages (#1463)
Added more and better error messages when the db from disk fails to
load.
2026-01-07 11:56:55 +01:00
Gustavo Iñiguez Goia
0810ad396b
ui: generic tableview improvements
- Fixed crash when refreshing the views with multiple nodes connected.
 - Avoid excessive view refreshes:
   The GenericTableView overrides the resizeEvent() to refresh the views
   when the user resizes the window.
   Unfortunately resizeEvent() is fired on more situations, like when
   enter into a detailed view or when going back to the generic view.

   This was causing excessive view refreshes, and crashes.
2026-01-06 16:33:46 +01:00
Gustavo Iñiguez Goia
9619534b38
ui: use internal methods to display warnings
- Use utils.Message to display warnings.
 - Make error messsages translatable.
2026-01-05 00:00:17 +01:00
Gustavo Iñiguez Goia
768a2bbe8b
Merge pull request #1501 from Damglador/master
ui: inform about failure to connect to socket
2026-01-04 23:26:46 +01:00
Damglador
45e9cf55d5
ui: inform about failure to connect to socket
Not quite a fix for
https://github.com/evilsocket/opensnitch/issues/1341, but at least it
makes it clear for the user that the issue is in another opensnitch-ui
instance and is not some random bug.
2026-01-04 17:04:11 +01:00
Gustavo Iñiguez Goia
e3cf78c004
Merge pull request #1493 from themighty1/tests/netfilter_tests
tests: added netfilter tests
2026-01-03 01:40:28 +01:00
Gustavo Iñiguez Goia
e8976086cd
rules checking improvement
Originally we had one single function to check connection properties
against rules, which accepted only strings.

As we've added new functionality, this single function has been made
generic, to accept any type of data. From a code readability point of
view, it has worked well, but at the cost of a slight performance
penalty.

Now in order to gain a little bit of performance by avoiding types
conversion, we'll use 2 callbacks:
 - a generic callback that accepts data of any type.
 - and a simple one that accepts strings.
2026-01-02 23:57:15 +01:00
Gustavo Iñiguez Goia
74d42ab7c5 operator minor improvements 2026-01-02 14:04:07 +01:00
Gustavo Iñiguez Goia
51a8a0f04e regexp rule operand improvement
Save a dozen of nanoseconds when evaluating regexp rules.

Rel: #1448
2026-01-02 14:04:07 +01:00
Gustavo Iñiguez Goia
91efdb55dc operator tests updated 2026-01-02 14:04:07 +01:00
dan
9c0c2545fe tests: added netfilter tests 2026-01-01 19:49:30 +02:00
Gustavo Iñiguez Goia
d04ca34587
Merge pull request #1491 from themighty1/ui/delete_all_fix
ui,nodes: fixed delete_all() sending invalid notification
2026-01-01 12:53:36 +01:00
Gustavo Iñiguez Goia
f4ff719e42
Merge pull request #1490 from themighty1/tests/ebpf_tests
tests: added ebpf integration tests
2026-01-01 12:39:32 +01:00
dan
7ff93fc8c2 tests,nodes: remove test_delete_all workaround 2026-01-01 12:26:19 +02:00
dan
a34dc94310 ui,nodes: fixed delete_all() sending invalid notification 2026-01-01 12:22:37 +02:00
dan
2c01e9dd56 tests: added ebpf integration tests 2026-01-01 11:32:47 +02:00
Gustavo Iñiguez Goia
2807baa6d0
ui: improved selecting rows while holding the Shift key
Now the list of selected rows grows/shrinks dynamically while the Shift
key is pressed.

See: #1485
2025-12-30 23:52:48 +01:00
Gustavo Iñiguez Goia
f898b0a041 ui,stats: improved selecting rows with shift presed
Closes: #1485.
2025-12-30 23:25:52 +01:00
Gustavo Iñiguez Goia
b425cdbb77 ui,plugins: added direct links to virustotal webpage
Allow to view the reports of the destination ip, checksum or domain
directly on the web page of virustotal.
2025-12-30 23:25:52 +01:00
Gustavo Iñiguez Goia
3fd8545d4b
pkg,rpm: force gzip compression
There're some issues on Fedora Silverblue and maybe other distros if the
rpm is compressed with zstd: #1486.

So for now, use gzip instead of zstd.

https://bugzilla.redhat.com/show_bug.cgi?id=2425816
2025-12-30 17:25:24 +01:00
Gustavo Iñiguez Goia
42600fc163 add the current process to the tree when re-using it
When re-using the tree of a process, we were not adding the current
process to the tree.
2025-12-30 17:14:20 +01:00
Gustavo Iñiguez Goia
7f918cebe3
ui,nodes: better lifetime management
When a node connects to the GUI (server) for the first time, it's
identified by the connection (src_port:address:dst_port).
We save it to identify and manage the node.

When a node disconnects from the server (GUI), the session and the
node address are the same, so we update the status accordingly.

However, if a node does not respond for some time (minutes, hours,...), and then
reconnects again, it'll connect with a new sesion address
(src_port:addr:dst_port).
In this situation, the old session still exists on the server, and when
it exceeds the maximum lifetime, the server closes it and reporting the old
session address.

Therefore, to prevent the current node from being marked as 'offline',
we ignore this notification.
2025-12-30 16:42:47 +01:00
Gustavo Iñiguez Goia
8d48dd36a6 ui,i18n: updated translations lt, sv 2025-12-30 16:18:13 +01:00
Gustavo Iñiguez Goia
1437b6a2bc
ui,plugins: added links to view virustotal results in the browser 2025-12-30 13:14:39 +01:00
Gustavo Iñiguez Goia
02aab314c0
ui,rules editor: fixed validating regexp
Found by @themighty1 #1480.
2025-12-30 02:19:33 +01:00
Gustavo Iñiguez Goia
fb2141d68d
Merge pull request #1480 from themighty1/test/ui_tests_qt6
tests: port ui tests to qt6
2025-12-30 02:11:06 +01:00
Gustavo Iñiguez Goia
4c80a562cb
ui,prefs: fixed crash changing keepalive timeout value
Closes: #1484
2025-12-29 21:06:01 +01:00
Gustavo Iñiguez Goia
d61115249e
ui,plugins: virustotal updated
- Don't overwrite main message style if there's a checksum warning.
2025-12-29 13:42:11 +01:00
Gustavo Iñiguez Goia
270a40da2e
ui,plugins: virustotal updated
- Connect the hyperlink signal only when configuring the plugin.
  Once we'll be able to configure the plugin from the GUI, we'll also
  need to disconnect it first.
2025-12-29 12:57:43 +01:00
Gustavo Iñiguez Goia
c15899b115
ui: configure logging type on startup 2025-12-23 23:32:56 +01:00
Gustavo Iñiguez Goia
bc3ec4b8f0
ui,prefs: allow configuring log file and level
Allow configurng UI (server) log file and level from the
Preferences dialog.
2025-12-23 21:19:32 +01:00
Gustavo Iñiguez Goia
c3f2fc3f5c
ui,rules editor: fixed using some variables 2025-12-23 14:54:42 +01:00
Gustavo Iñiguez Goia
3b991c8d4e
ui: preferences improvements
- Allow to configure server (UI) keepalive and keepalive timeout values.
 - Increase spinBox values using the single-step defined value.
 - Translate left panel section names.
2025-12-23 13:10:00 +01:00
Gustavo Iñiguez Goia
3157106260
ui: preferences dialog redesigned
Main window split into two areas:
 - a left panel listing the main configuration sections.
 - a right panel containing the configurable options.

We were running out of space, so this should help to organize all the
options a bit better.
2025-12-23 01:36:40 +01:00