Commit graph

798 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
e7d976862b
ui: allow to import/export rules per node
From the nodes view.
2022-12-30 19:02:51 +01:00
Gustavo Iñiguez Goia
276966ad30
ui: some rules fixing 2022-12-29 16:58:32 +01:00
Gustavo Iñiguez Goia
e4cfad2aef
ui: added menu to export rules to clipboard/file 2022-12-29 16:46:15 +01:00
Gustavo Iñiguez Goia
b9cf0e86fd
ui: added options to export/import rules
- Added options to export/import rules to/from a directory.
   All nodes' rules will be exported, each ruleset to its own
   directory.
   Importing rules will be added to all nodes.
   WIP, we'll make it more granular.

Closes #324 #746
2022-12-29 14:33:14 +01:00
Gustavo Iñiguez Goia
b7198a6fef
ui: group rules functionality 2022-12-28 20:44:11 +01:00
Gustavo Iñiguez Goia
2cdbd97035
ui, views: fixed address view, general clean up 2022-12-28 02:00:49 +01:00
Gustavo Iñiguez Goia
cc903df17c
ui, views: select rows only with the left button 2022-12-28 01:43:42 +01:00
Gustavo Iñiguez Goia
f4209f7e1d
ui: preferences improvements
- Fixed saving columns to display on the Events view.
- Update Events columns just after saving changes.
- Show a status message if there're no nodes connected.
2022-12-27 21:42:44 +01:00
Gustavo Iñiguez Goia
fc510d40aa
ui: improved views behaviour
- Preserve row selection while refreshing or scrolling up/down the
  views.
- CTRL-C now copies all rows if they're selected with CTRL+A.
- The views are only refreshed if the scrollbar is at the top or the
  bottom. Should ease rows inspecting.
2022-12-27 12:18:48 +01:00
Gustavo Iñiguez Goia
cf491ac649
ui: make all Events columns clickable 2022-12-25 17:33:35 +01:00
Gustavo Iñiguez Goia
bb649f1448
ui: allow to delete entries from more views
Allow to delete entries from hosts, procs, addrs, ports or users views.
2022-12-25 17:24:38 +01:00
Gustavo Iñiguez Goia
67c6321063
pop-ups: disable timeout clicking on the pop-up 2022-12-25 12:15:33 +01:00
Gustavo Iñiguez Goia
03b71e9ca2
ui: removed non-used widget from main win 2022-12-24 12:29:05 +01:00
Gustavo Iñiguez Goia
ee7153ea42
ui: allow to stop/start interception per node
- Added button to start/stop interception by node.
- Added button to delete nodes.
- Added button to show node's preferences.
- Improved nodes' connections listing.
2022-12-24 12:01:46 +01:00
Gustavo Iñiguez Goia
274a3483d7
improvements to ui, ebpf, netfilter
- Fixed firewall dialog label alignment.
 - Fixed potential race condition when stopping the daemon, and there're
   connections being enqueued.
 - Added "clear" button to GUI's filter line (#786)
 - Create ebpf cache object only if the modules have been loaded.
 - Set default stats workers to the sme amount defined in configuration.

Closes #785
2022-12-23 14:39:49 +01:00
Gustavo Iñiguez Goia
520b1f6a33
ui: apply filter when loading the GUI
When closing the GUI we save the filter text typed by the user.
However we weren't restoring it back when launching the GUI again.

Closes #786
2022-12-23 10:43:36 +01:00
Gustavo Iñiguez Goia
85776f4d17
Bump ui and daemon versions to 1.6.0rc4 2022-12-22 10:20:36 +01:00
Gustavo Iñiguez Goia
8da5d072f7
ui, sys fw: allow to filter fw rules by more fields 2022-12-20 22:37:58 +01:00
Gustavo Iñiguez Goia
b8b8342cae
ui, prefs: fixed logic when changing the db type 2022-12-19 12:34:27 +01:00
Gustavo Iñiguez Goia
afa23f5ac2
sys fw: improved rules, profiles policies
- Allow to use commas to define conntrack states:
  ("related,established")
- Remove profile's rules when switching from Deny to Allow.
- Fixed checking duplicated rules.

Closes #778
2022-12-19 10:59:43 +01:00
Gustavo Iñiguez Goia
50217afc9f
added initial support for ICMP and SCTP
Closes: 714
2022-12-18 00:41:06 +01:00
Gustavo Iñiguez Goia
c81dc22c02
sys fw: allow to change fw type from the GUI
- Configuration of system firewall rules from the GUI is not supported for
 iptables. Up until now only a warning was displayed, encouring to change
 fw type manually.

 Now if configured fw type is iptables (default-config.json, Firewall:),
 and the user opens the fw dialog, we'll ask the user to change it from
 the GUI.

- Add fw rules before connecting to the GUI. Otherwise we send to the
  GUI an invalid fw state.
2022-12-16 17:03:36 +01:00
Gustavo Iñiguez Goia
e7cbbb7489
ui,prefs: fixed asking the user to restart the GUI
Fixed asking to restart the GUI when the user changes the server
address.
2022-12-11 18:25:31 +01:00
Gustavo Iñiguez Goia
0f51ea0c79
ui, fw: disable output policy configuration
Disable for now output policy configuration. Setting it to Drop blocks
all outbound connections.
2022-12-11 16:28:24 +01:00
Gustavo Iñiguez Goia
aa1e28e624
ui: fixed apps icon discovery
Use HighContrast icons as last resort to display app icons.
This fixes an issue on Fedora 37, where the pop-up was not displaying
the app icon.
2022-12-08 16:04:21 +01:00
Gustavo Iñiguez Goia
da8a97c78e
ui, fw dialog: fixed displaying icons
On Fedora 37 (and maybe others) the icons + and - were not displayed
correctly.
2022-11-17 00:29:48 +01:00
Gustavo Iñiguez Goia
31d2cd550d
ui: fixed launcher import 2022-11-17 00:07:42 +01:00
Gustavo Iñiguez Goia
6bfe6cef8d
Bump versions to 1.6.0-rc.3 2022-11-15 00:52:23 +01:00
Gustavo Iñiguez Goia
bfe7b579f7
Merge pull request #769 from szimszon/master
Here port should be also port in hungarian language.
2022-11-14 20:31:22 +01:00
Gustavo Iñiguez Goia
da3a9dc19f ui: handle alert msgs on the main thread 2022-11-14 10:23:57 +01:00
Szimszon
d750caed4a
Here port should be also port in hungarian language.
Port translation was "kikötő" which means harbor and we need here "port" or "portszám" for port.
2022-11-13 20:19:43 +01:00
Gustavo Iñiguez Goia
80cbf7450a
ui: fixed exception when checking node address
Thanks @JeremyMahieu ! for reporting it and providing a solution.

Closes #766
2022-11-10 00:00:54 +01:00
Gustavo Iñiguez Goia
a9f3b20881
ui: set some strings as not translatable
ref: #759
2022-10-20 23:16:12 +02:00
Gustavo Iñiguez Goia
820e7d5fe9
ui: create /run/user/ dirs with proper permissions
"$XDG_RUNTIME_DIR defines the base directory relative to which user-specific
non-essential runtime files and other file objects (such as sockets,
named pipes, ...) should be stored. The directory MUST be owned by the
user, and he MUST be the only one having read and write access to it.
Its Unix access mode MUST be 0700."

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
2022-10-18 00:15:25 +02:00
Gustavo Iñiguez Goia
b2ccb34c17
ui,rules: allow to filter by fields of the rules
Requested here: #756
2022-10-15 12:01:48 +02:00
Gustavo Iñiguez Goia
040d4bf921
ui, rules editor: allow to select multicast range
Closes #755
2022-10-14 01:20:54 +02:00
Gustavo Iñiguez Goia
728c2554ad
ui minor fixes
- Firewall dialog: disable widget when firewall is not active.
- Firewall rule dialog: enforce quotas units format.
- Nodes: fixed exception.
2022-10-14 00:59:00 +02:00
tioguda
a812b26719
Update Brazilian Portuguese translation 2022-10-12 09:45:48 -03:00
Gustavo Iñiguez Goia
477e6aadb0
new feature: send alerts to the server/UI
Up until now some error and warning messages were only logged out to the
system, not allowing the user know what was happening under the hood.

Now the following events are notified:
 - eBPF related errors.
 - netfilter queue errors.
 - configuration errors.

WIP, we'll keep improving it and build new features on top of this one.
2022-10-12 13:31:45 +02:00
Gustavo Iñiguez Goia
915b325a00
ui: allow to configure (local) server address
Up until now, the daemon communicated with the GUI via a unix socket,
stored in /tmp.

/tmp however can be erased at any time (tmpreaper, systemd-tmpfiles.d),
which may lead to remove our unix socket file, and hence losing
connectiong with the daemon.

Now the user has the option to store the socket file under
/run/user/$uid/opensnitch/
https://www.linuxbase.org/betaspecs/fhs/fhs.html#runRuntimeVariableData

In the future we may switch to this path by default.
2022-10-06 13:57:52 +02:00
Gustavo Iñiguez Goia
814ed52331
ui, fw: added helper to allow inbound connections
Added a helper to easily allow inbound connections, just by selecting
the port where a service is listening on.

Especially useful when the inbound policy is drop and you want to allow a
service (ssh, nfs, etc).
2022-10-01 15:07:40 +02:00
Gustavo Iñiguez Goia
acac68126b
ui, events: show the cmdline
Add the column cmdline to the events log, and allow to configure it.

Closes #745
2022-09-29 15:31:14 +02:00
Gustavo Iñiguez Goia
564c263d71
packaging: moving files out of the gui/daemon dirs 2022-09-26 23:03:49 +02:00
Gustavo Iñiguez Goia
3c82f58b85
ui: added network interface option to the editor
Closes #744
2022-09-24 20:40:58 +02:00
Gustavo Iñiguez Goia
4a0f7a3e2b
rules: allow to filter by network interface name
Now you can create rules to filter network interface name.
Regular expresions allowed: "eth[0-9]"

Closes #726
2022-09-24 17:12:09 +02:00
Gustavo Iñiguez Goia
92e5240b08
pop-ups: filter by process path if cmdline is relative
It's a good practice to filter by command line + process path (and
others parameters), to limit what an application can do.

Thus, if the user selects "from this command line", and the command
launched is not an absolute path to the binary, we'll create a rule
to filter by process path + process cmdline.
2022-09-22 13:08:51 +02:00
Gustavo Iñiguez Goia
96cccb8b8c
ui, fw: more options to filter connections by pack
Added more options to filter connections by packets' metainformation.
Added: uid, gid, l4proto, protocol and priority.

+ When filtering connections by in/out interface, list the available
  interfaces in the system, only if the selected node is local.
2022-09-21 16:01:32 +02:00
Gustavo Iñiguez Goia
7fcf864499
ui, fw: allow to configure rate limits
For example to ratelimit downloads to 1MB/s (using the GUI):

Source Port: 443
Limit: 1/mbytes/second
Direction: IN
Action: DROP
2022-09-15 00:30:29 +02:00
Gustavo Iñiguez Goia
93260177b3
ui, fw: fixed missing var 2022-09-12 22:36:07 +02:00
Gustavo Iñiguez Goia
97b141e947
ui, fw: allow to set quotas, more log options
- Allow to set quotas on connections.
  (For example: drop packets if transmitted bytes to port 443 and
  ip 1.2.3.4 is over 1GB.)
- Allow to configure log levels.
- Better errors when adding/editing rules.
2022-09-12 21:37:42 +02:00