Commit graph

1798 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
3de24febf8
sys fw: improved rules errors logs 2023-07-13 17:24:38 +02:00
Gustavo Iñiguez Goia
4827d973e0
ui: notifications improvements
- Allow to receive and display errors when deleting app rules.
- Fixed error displaying notifications on the main window.
- Improvements to receive notifications on the fw dialog.
2023-07-13 16:59:29 +02:00
Gustavo Iñiguez Goia
ad1cdd4015
tests: better sys-fw log,meta and ip tests 2023-07-12 12:53:13 +02:00
Gustavo Iñiguez Goia
eaec4a825c
tests: added sys-fw conntrack tests 2023-07-11 15:32:15 +02:00
Gustavo Iñiguez Goia
3ca5645c7e
tests: added quota tests 2023-07-11 13:53:01 +02:00
Gustavo Iñiguez Goia
7441aa2ccc
tests: rewritten nat tests
Move common nat checks to its own file.
2023-07-11 13:15:26 +02:00
Gustavo Iñiguez Goia
c2e6032a86
tests: added needed helpers 2023-07-11 01:16:23 +02:00
Gustavo Iñiguez Goia
dad8c0c65d
tests: added queue, nat tests
- Added queue, snat, dnat, redirect, tproxy and masquerade tests.
- Return errors if verdict parameters are not formatted as expected.
2023-07-11 00:57:15 +02:00
Gustavo Iñiguez Goia
7df5c5a244
ui,fw: enable Save button when changing parms
When editing a sys-fw rule, enable Save button if verdict parameters
change.
2023-07-11 00:44:04 +02:00
Gustavo Iñiguez Goia
6ddd4dcee6
tests: added meta tests, improved ip tests 2023-07-09 23:05:12 +02:00
Gustavo Iñiguez Goia
b1ebc0eb22
sys fw: fixed setting marks on packets
Fix for meta mark set 666
2023-07-09 23:03:50 +02:00
Gustavo Iñiguez Goia
a18404fba9
tests: added sys-fw ip and iface tests
- Added ip daddr, saddr tests.
- Added basic iface tests.
2023-07-08 21:50:46 +02:00
Gustavo Iñiguez Goia
c9567bfc14
Merge pull request #974 from tioguda/master
i18n: update Brazilian Portuguese translation
2023-07-07 15:42:36 +02:00
Gustavo Iñiguez Goia
78d82ec07d
Merge pull request #985 from nnsee/fix-pipefail
Use temporary files instead of piping in ebpf Makefile
2023-07-07 14:04:44 +02:00
Gustavo Iñiguez Goia
603c4ab39a
tests: added sys-fw verdict tests
- Added accept, drop, return and jump tests.
- Added reject tests.
2023-07-07 13:56:25 +02:00
Rasmus Moorats
122608bced
use temporary files instead of piping in ebpf Makefile 2023-07-07 13:28:58 +03:00
Gustavo Iñiguez Goia
1a063d10e2
tests: added new sys fw tests
- Added counter tests.
- Added ethernet addresses tests.

Added comments to some functions.
2023-07-07 00:46:09 +02:00
Gustavo Iñiguez Goia
e268a88cff
tests: added sys fw ports tests 2023-07-06 17:59:30 +02:00
Gustavo Iñiguez Goia
28fab440da
sys,fw: check for errors when adding ports rules
Verify that ports are correctly converted to int, for single and range
ports.
2023-07-06 17:58:17 +02:00
Gustavo Iñiguez Goia
84df5135ff
tests: added log and protocol expressions 2023-07-06 16:02:14 +02:00
Gustavo Iñiguez Goia
654a0fb54b
updated compilation/tests workflow 2023-07-06 14:40:47 +02:00
Gustavo Iñiguez Goia
aa8e793dc4
sys,fw: fixed compilation 2023-07-06 14:33:56 +02:00
Gustavo Iñiguez Goia
18e583d20e
tests: updated sys fw tests 2023-07-06 14:27:54 +02:00
Gustavo Iñiguez Goia
344819eb30
sys,fw: export more internal funcs 2023-07-06 14:09:54 +02:00
Gustavo Iñiguez Goia
d474e7f57a
sys,fw: export some internal utils. 2023-07-06 13:36:57 +02:00
Gustavo Iñiguez Goia
b366f5f8b3
ui, ruleseditor: fixed translating username<->uid
When selecting a user from the dropdown list, it should set the uid of
the user in the text line. But sometimes, the format "user (uid)" was
set (instead of just "uid").
2023-07-05 13:36:51 +02:00
Gustavo Iñiguez Goia
d94154f0bd
tests: added missing testdata for ui/client 2023-07-04 13:57:58 +02:00
Gustavo Iñiguez Goia
2acace985e
small ui/client reorganization 2023-07-04 13:35:58 +02:00
Gustavo Iñiguez Goia
234984f85b
tests: added daemon config tests
- Test that the default config is loaded properly.
- Test that changes to the config are saved to disk.
- Test that changes to the config file on disk are reloaded properly.
2023-07-04 13:25:09 +02:00
Gustavo Iñiguez Goia
97703b65db
ui client: fixed setting daemon config
- Fixed setting daemon config.
- Removed unused code.
2023-07-04 01:31:16 +02:00
Gustavo Iñiguez Goia
edc9b17010
sys,fw: return errors when loading configurations 2023-07-01 23:13:31 +02:00
Gustavo Iñiguez Goia
f1ef00a5fd
tests: added nftables/system tests
- test add/delete system fw rules
- test fw config disabled.
2023-07-01 22:41:04 +02:00
Gustavo Iñiguez Goia
4a19fde155
tests: run tests as root 2023-06-30 16:29:20 +02:00
Gustavo Iñiguez Goia
0a2dcf6406
tests: added basic nftables/rules tests 2023-06-30 16:19:50 +02:00
Gustavo Iñiguez Goia
e345d61076
tests: added nftables/monitor tests 2023-06-30 10:51:18 +02:00
Gustavo Iñiguez Goia
78ac6c0f6b
tests: disable some tests by default, added utils.go tests
- These tests require permissions for creating new namespaces.
  By default disable them for now.
- Added utils.go tests.
2023-06-29 16:19:47 +02:00
Gustavo Iñiguez Goia
d3b40108c7
tests: added sys fw basic tables/chains tests 2023-06-29 11:27:18 +02:00
Gustavo Iñiguez Goia
5a0bd3bc27
added more requirements checks, minor code refactor
- Check kernel configs NET_DIAG_*.
- config.SaveConfiguration() -> config.Save()
2023-06-28 11:24:24 +02:00
Gustavo Iñiguez Goia
8240b7bfda
ui/client: minor code reorganization 2023-06-27 16:47:47 +02:00
Gustavo Iñiguez Goia
de45e1698b
ui: minor code reorganization 2023-06-27 16:19:51 +02:00
Gustavo Iñiguez Goia
af9a5ad0e1
updated bug report template 2023-06-25 21:51:04 +02:00
Gustavo Iñiguez Goia
9259442451
ui: minor improvements
- delete ipc socket on exit
- save ipc socket under /run/user/.../opensnitch/
- added new contributor
2023-06-25 15:28:43 +02:00
Gustavo Iñiguez Goia
81d7333c2b
ui,prefs: changed default tab 2023-06-25 14:27:30 +02:00
Gustavo Iñiguez Goia
f63d9dce72
ui,prefs: allow to configure CA cert for TLS comms
TLS simple: server cert + key
TLS mutual: CA cert + server cert + server key
2023-06-25 13:56:05 +02:00
Gustavo Iñiguez Goia
b1e85da2f7
ui: restrict ipc socket permissions
- Restrict ipc socket permissions to the current user.
- Store ipc socket in the runtime private dir of the user.
2023-06-25 13:48:56 +02:00
Gustavo Iñiguez Goia
a233006d78
added more checks to -checks-requirements
Closes #976
2023-06-25 02:36:12 +02:00
Gustavo Iñiguez Goia
6d45d9db12
Merge pull request #975 from WojtekWidomski/master
Allow starting the GUI in background when tray not available
2023-06-25 00:43:48 +02:00
Gustavo Iñiguez Goia
dbc5a9cef3
ui,prefs: allow to configure certs and auth type
- Added options to configure authentication type and certs from the
  preferences dialog.
- Reorganize code a little bit to displaya message when restarting the
  GUI is needed.
2023-06-24 18:28:04 +02:00
Wojtek Widomski
440e00dae1 add --background command line argument 2023-06-24 14:24:10 +02:00
Wojtek Widomski
4e87b1f8e4 use QLocalSocket and QLocalServer
use QLocalSocket and QLocalServer instead of lockfile
This allows to open window of running instance
when user is trying to start new instance.
2023-06-24 13:46:42 +02:00