Commit graph

1,165 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
029e8ed585
ui: improved virustotal plugin
- Added information about visited domains to the hosts tab:
  - consensus of the domain: malicious, harmless, suspicious, ...
  - last dns records
  - ssl information of the domain
2026-01-28 11:44:52 +01:00
Gustavo Iñiguez Goia
ad37850651
ui, addresstablemodel: code simplified
setQuery() was duplicated from GenericTableModel and it's not needed.
2026-01-26 22:57:00 +01:00
Gustavo Iñiguez Goia
3dfe557f00
ui: better custom table models columns handling
When using custom table models, since extra columns are not part of the
original query, the value of the columns was being set as "None".
2026-01-26 22:53:30 +01:00
Gustavo Iñiguez Goia
728e609d2c
ui,events: improved select-all behaviour 2026-01-24 23:15:22 +01:00
Gustavo Iñiguez Goia
bda2cae769
ui,events: added support for select all behaviour
- Allow selecting all rows with Ctrl+a.
   Note: The Ctrl key must be held while pressing 'a'.
   Sometimes when pressing Ctrl+a, the Ctrl key is released
   briefly before 'a' is pressed.
 - Display the number of rows that will be affected by an action
   (for example, delete)

Closes: #1272
2026-01-24 20:14:06 +01:00
Gustavo Iñiguez Goia
845c1473ad
ui,fw: dump all rules when exporting to csv 2026-01-23 22:22:32 +01:00
Gustavo Iñiguez Goia
e25ef10506
ui: fixed dumping rows to csv 2026-01-23 18:41:25 +01:00
Gustavo Iñiguez Goia
98f21b72c3
ui,events: improved CSV export options
Allow to select what view to export, instead of exporting the view
(table) they're currently viewing.

Closes: #1281
2026-01-23 18:01:14 +01:00
Gustavo Iñiguez Goia
29ecfaa7fe
ui: updated proto enums 2026-01-23 00:40:37 +01:00
Gustavo Iñiguez Goia
1144745923
ui,events: improved advanced search
- Allow advanced search per view (table)
 - Added advanced filtering options for the rules view.
   It allows advanced filtering by all the fields of the rules table.
 - misc: fixed extra spaces.
2026-01-22 22:39:13 +01:00
Gustavo Iñiguez Goia
2688384130
ui,events: added all columns to the rules view
Closes: #1310
2026-01-22 22:29:30 +01:00
Gustavo Iñiguez Goia
3beb5f393d
ui,events: added context menu to create new fw rules 2026-01-22 17:31:34 +01:00
Gustavo Iñiguez Goia
81a3dd50bb
i18n: updated zh_Hans and fr translations 2026-01-21 23:53:45 +01:00
Gustavo Iñiguez Goia
a3cf755a64
ui: minor fixes
- fixed missed pop-ups notification template.
 - rules editor: pressing tab in the description field changes the
   focus.
2026-01-16 18:42:44 +01:00
Gustavo Iñiguez Goia
662fffe357
ui, ntfs: allow to personalize missed pop-ups
Now it's possible to personalize the system notification when the user
doesn't respond to a pop-up.

From the Preferences dialog, UI tab, you can personalize the message of
the notification.
Use the format %field% to replace the fields of a connection by their
values, for example:

Connection attempt from %conn.process% to %conn.dstip%

More info: #1446
2026-01-16 18:24:57 +01:00
Gustavo Iñiguez Goia
6801ead1ff
ui,ruleditor: display rules name when typing a rule name
It should help to avoid creating rules with the same name.
For now it doesn't load the rule fields.
2026-01-16 10:47:00 +01:00
Gustavo Iñiguez Goia
3ee8bd8441
ui,rules editor: adjusted widgets tab stop order 2026-01-16 10:28:26 +01:00
Gustavo Iñiguez Goia
384a6d457a
ui,prefs: fixed calling method 2026-01-16 01:40:33 +01:00
Gustavo Iñiguez Goia
18d2a10c85
ui,events: added more fields to the advanced search
- Added time, process cmdline and process to the allowed fields in the
   advanced search.
2026-01-15 16:48:13 +01:00
Gustavo Iñiguez Goia
02e8be430f
ui,popups: make labels clickable
Allow to click on labels to mark a checkbox.

Closes: #865 , #1502
2026-01-14 02:24:57 +01:00
Gustavo Iñiguez Goia
96bf9da802
ui,events: minor fixes
- Fixed regexp warnings.
 - Fixed search crash when using an advanced search.
 - Fixed adding spaces to the end of the rules queries.
2026-01-14 01:12:38 +01:00
Gustavo Iñiguez Goia
dd70d46abc
ui,i18n: updated .pro file with latest sources
Closes: #1506
2026-01-13 23:47:36 +01:00
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
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
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
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
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
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