Commit graph

1,961 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
8c3fa40cf4
distribute default rules with the pkgs
Some checks failed
CI - build eBPF modules / build (6.0, 1.5.0) (push) Has been cancelled
CI - build eBPF modules / build (6.0, master) (push) Has been cancelled
Test resources validation / Install tools (push) Has been cancelled
Build status / Build (push) Has been cancelled
v1.7.2
- distribute daemon/data/rules/ with the daemon packages.
 - added a new system fw rule to allow localhost connections (disabled
   by default).

Closes: #965.
2025-08-08 13:45:26 +02:00
Gustavo Iñiguez Goia
d513c9312a
updated predefined rules description 2025-08-08 01:33:53 +02:00
Gustavo Iñiguez Goia
d2fbdd9700
task pid monitor: fixed stopping the monitor 2025-08-08 01:27:00 +02:00
Gustavo Iñiguez Goia
a188df210b
Bumped pkg verions to v1.7.2 2025-08-08 00:23:44 +02:00
Gustavo Iñiguez Goia
b635778f67 i18n: updated ru and id translations 2025-08-07 21:51:56 +02:00
Gustavo Iñiguez Goia
4041fa3089 ui: show nodes widget only when there're multiple nodes 2025-08-06 23:35:22 +02:00
Gustavo Iñiguez Goia
3f63a0844e
bumped versions to v1.7.2 2025-08-06 20:51:27 +02:00
Gustavo Iñiguez Goia
e9319716e7
ui: avoid reconfiguring fw rules
When the daemon connects to the GUI, the firewall dialog is configured
based on the system firewall configuration (inbound/outbpund policies).

Due to an error, a fw-change notification was being triggered, causing
unnecessary firewall rules reloads.
2025-08-06 01:02:47 +02:00
Gustavo Iñiguez Goia
72fb80f206
i18n: updated translation definitions 2025-08-05 00:12:56 +02:00
Gustavo Iñiguez Goia
9bc7868586
ui: avoid crashing if notify2 pkg is not available 2025-08-01 19:10:03 +02:00
Gustavo Iñiguez Goia
2a60d17ede
ui, rules editor: hide/show regexp checks on demand 2025-07-31 01:06:08 +02:00
Gustavo Iñiguez Goia
f671aa4e68
ui, rules editor: allow to use commas
Allow to use commas to specify multiple data:

 - src/dst ip: 1.2.3.4, 5.6.7.8
 - dst host: www.a-b-c.org, www.abcd.org
 - proto: tcp, udp
 - net ifaces: eth0, eth1
 - src/dst port: 123, 456

The data will be translated to ^(..|..|..)$ when saving the rule, and
back to "..,..,.." when loading it.

Closes: #1392.
2025-07-31 00:52:15 +02:00
Gustavo Iñiguez Goia
f71f42b54e
fw,config: use context pkg instead of channels
Stop monitoring file changes using the context package instead of
channels.
2025-07-30 18:14:16 +02:00
Gustavo Iñiguez Goia
ca2c56d5cd cache: improved replacing processes
When replacing a process with the same PID (fork/clone),
and ebpf.QueueEventsSize is > 0 we may receive out or order events.
For example if the checksum calculation takes too much time.

Now we avoid updating the process in this scenario.
2025-07-30 16:57:32 +02:00
Gustavo Iñiguez Goia
ea13182bd3
ui: changed how cloned rules are named
Previously when cloning a rule, we added "clone-{num}-" to the rule.
Depending on the number of rules, the cloned rule might not appear next
to the original.

Now we append "-duplicated-{num}" to the end of the rule name, on the one
hand to make the new rule appear close to the cloned one, and on the other
hand, to be consistent with the menu item that triggers this action.

Closes: #1363.
2025-07-26 16:38:39 +02:00
Gustavo Iñiguez Goia
1856f9f245
ui: fixed destination port label
Closes: #1365.
2025-07-25 20:00:09 +02:00
Gustavo Iñiguez Goia
1634950752
ui: fixed restoring maximized state
Maximized state of the main window was not being restored.

Closes: #1374.
2025-07-25 16:51:14 +02:00
Gustavo Iñiguez Goia
4559dd8b0a
ui: added new theme dark_white
Closes: #1372
2025-07-23 21:57:39 +02:00
Gustavo Iñiguez Goia
d88abd0f93
ui: updated themes information 2025-07-23 21:53:54 +02:00
Gustavo Iñiguez Goia
b65acadb6b
ui: improved loading custom themes
Instead of displying the whole path to the theme on the Preferences
dialog, show just the name of the theme.
2025-07-23 01:41:30 +02:00
Gustavo Iñiguez Goia
b216d50ed4
ui: updated the list of contributors 2025-07-23 01:25:20 +02:00
Gustavo Iñiguez Goia
b56ea1551d
ui: don't crash if configured theme doesn't exist 2025-07-22 22:13:37 +02:00
Gustavo Iñiguez Goia
4d268c44e2
ui,themes: fixed loading icons, class moved to its own package
- In some distros, qt-material icons have stopped loading at startup:
   qt.svg: Cannot open file '.../icon:/primary/slider.svg'

   The cause of the error is still unknown, but this fix solves it
   for now.

 - Themes() class moved to its own file.

Closes: #1373.
2025-07-21 17:04:32 +02:00
Gustavo Iñiguez Goia
3f7449362a ui,popups: updated appimages regular expression
Match random characters from 6 to 7 characters.

More details: #1377.
2025-07-20 22:12:16 +02:00
Gustavo Iñiguez Goia
53b948b11a
fixed exception loading outdated configuration
TODO: send the error to the GUI. It's important enough to warn the user
about it.

Issue: #1380
2025-07-19 18:49:15 +02:00
Gustavo Iñiguez Goia
faeed356ab
Merge pull request #1398 from Andrew15-5/empty-host
Add ability to match bare IP requests (empty host name)
2025-07-19 00:09:55 +02:00
Andrew Voynov
c4285878f8
fixed empty host name not being matched 2025-07-19 02:24:49 +05:00
Gustavo Iñiguez Goia
576b8c9ee3 Bumped Go workflow build version to v1.23.0 2025-07-07 23:06:19 +02:00
Gustavo Iñiguez Goia
14e306ecad Bumped cilium/ebpf version to 0.19.0
This version introduces a lot of improvements.

It's worth mentioning this one https://github.com/cilium/ebpf/pull/1755,
which reduces memory usage by ~25MB.

It also bumps go version to 1.23.
2025-07-07 23:06:19 +02:00
Gustavo Iñiguez Goia
7c438de082
ui,fw: fixed editing rules
Editing a fw rule by right-clicking on a rule -> edit was silently
failing.
2025-07-03 21:50:58 +02:00
Gustavo Iñiguez Goia
039a5af862
ui,fw: fixed loading ports definition
The first item was not being loaded.
2025-07-03 21:47:11 +02:00
Gustavo Iñiguez Goia
1c94da7cb6
updated default-config.json
Added the default Authentication fields, to avoid detecting that the
config has changed.

It was causing the daemon to disconnect and reconnect on the first
config change made by the user.
2025-07-02 21:14:57 +02:00
Gustavo Iñiguez Goia
9ad6e11b14
ui,popups: fixed crash when using some languages
Some checks failed
CI - build eBPF modules / build (6.0, 1.5.0) (push) Has been cancelled
CI - build eBPF modules / build (6.0, master) (push) Has been cancelled
Test resources validation / Install tools (push) Has been cancelled
Build status / Build (push) Has been cancelled
v1.7.1
Closes: #1353.
2025-06-27 10:13:46 +02:00
Gustavo Iñiguez Goia
c82daddbae
ebpf dns improvements
- Better handling of burst messages.
 - Empty the queue if it gets full.
2025-06-25 00:57:07 +02:00
Gustavo Iñiguez Goia
7eb1cbf90d
improved proc monitors errors
- Avoid sending duplicated errors.
 - Fixed sending error message when the ebpf events module fails to
   load.
2025-06-22 22:23:36 +02:00
Gustavo Iñiguez Goia
5bf02e6f70
Bumped pkg versions to v1.7.1 2025-06-20 13:36:50 +02:00
Gustavo Iñiguez Goia
e13b4b9f76
updated config tests 2025-06-19 23:49:45 +02:00
Gustavo Iñiguez Goia
a4d8d1bb27
improved daemon's connection logic with the server (GUI)
- New: if Server.Address is not set, stop the routine that attempts
   to connect with the remote server.
 - Spawn only one polling routine.
 - When changing the configuration:
   - if the new server.address changed and is not empty -> reconnect.
   - if the new server.address changed and is empty -> disconnect.
   - if previous server.address was empty and the new one is not -> connect.
   - if the authentication settings changed -> reconnect.

   If the server.address is not available, we'll try to connect
   indefinitely.
2025-06-19 01:59:30 +02:00
Gustavo Iñiguez Goia
acd5b8886b
Bumped versions to v1.7.1 2025-06-18 01:10:23 +02:00
Gustavo Iñiguez Goia
f1318ef12d
fixed loading config when the procmon fails
- Fixed configuration loading, when the Process Monitor Method
   selected failed to work (e.g.: when ebpf modules are missing,
   auditd is not configured, etc).
   In this scenario, on the first run, the daemon was not loading the
   configuration from disk, and was instead using the default values, which
   led to some glitches (unexpected reconnections to the GUI, checksums
   option ignored, etc).
 - added more tests.
2025-06-18 00:35:17 +02:00
Gustavo Iñiguez Goia
9f570ea9ad ebpf events improvements
Discard events from the queue if we can't send events to the channel.
It can happen if the case of a deadlock such as in ac3053af327e38acad4ff4024ed688ed68d6ae30

In this situation, reading from the ring buffer is blocked, which
eventually causes it to fill up.
When the ring buffer is full, bpf_ringbuf_output() fails with error -11.
2025-06-15 23:10:09 +02:00
Gustavo Iñiguez Goia
c198f0119f improved events cache
Under very high load of kernel events, combined with a
non-zero value for the ebpf.QueueEventsSize config option,
the cache could end up blocking the events workers if the option to
compute process checksums was enabled.
2025-06-15 23:10:09 +02:00
Gustavo Iñiguez Goia
d5042f5b92
Merge pull request #1366 from tredondo/patch-1
Simplify uname -a in bug_report.md
2025-06-13 00:57:49 +02:00
Gustavo Iñiguez Goia
f0b1173d9d added Process path+args tests 2025-06-12 23:43:59 +02:00
Gustavo Iñiguez Goia
f87c3ae655
ui,popups: improved checksums verification
Verify the checksum of complex rules. Previously we only verified rules
of type Simple.
2025-06-12 00:28:58 +02:00
Ted Robertson
cd6b479f70
Simplify uname -a in bug_report.md 2025-06-11 10:21:10 +03:00
Gustavo Iñiguez Goia
f230b706b7
ui: improved downloader plugin
Create the paths where the files will be downloaded.
2025-06-08 23:59:51 +02:00
Gustavo Iñiguez Goia
376b06ef97
improved binary absolute path retrieval
When receiving the paths of a binary from kernel, the path can be a
symlink to the real binary on disk, and we were not obtaining the real
path to the binary.

Now we'll try to obtain it. If we fail, we'll use the path received from
the kernel. And if it's empty, we'll fallback to read it from proc.

Closes #1357
2025-06-07 23:51:13 +02:00
Gustavo Iñiguez Goia
aa37ac3e3a loggers: changed log level from Warn to Debug
When the remote logger cannot connect to the server, avoid flooding the
logs with warnings.
2025-06-05 20:47:29 +02:00
Gustavo Iñiguez Goia
32f4ab936e
Merge pull request #1359 from munix9/dist_path
check whether dist_path exists
2025-06-05 20:22:26 +02:00