Commit graph

42 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
69c23e0250
pkgs: Bumped versions to v1.6.8 2025-02-22 11:26:16 +01:00
Gustavo Iñiguez Goia
6eb62d8d7d
Bumped pkg versions to 1.6.7 2024-12-27 21:21:46 +01:00
Gustavo Iñiguez Goia
4fe43fc251
pkg, ui deb: added python3-packaging dependency 2024-12-26 23:57:57 +01:00
Gustavo Iñiguez Goia
80eef7f163
pkg, ui rpm: improvements
- Added python3-packaging as dependency to load dynamically the
   protobuffers (python3-packaging for Fedora, python-rpm-packaging
   metapackage for OpenSuse).
 - Fixed patching protobuffers.
2024-12-26 23:17:53 +01:00
Gustavo Iñiguez Goia
1c2e1f68c7
pkg, ui rpm: make python3-notify2 package optional
python3-notify2 has been deprecated since long time ago, and for example
it has been removed from OpenSuse Tumbleweed.
2024-12-26 22:46:11 +01:00
Gustavo Iñiguez Goia
f91f1a9e7b
ui: allow to use multiple protobuffer versions
Protobuffers compiled with protobuf < 3.20.0 are incompatible with
protobuf >= 4.0.0:
https://github.com/evilsocket/opensnitch/wiki/GUI-known-problems#gui-does-not-show-up

This has been a source of problems for some users (#1214, #647), and
in some distributions, previous protobuffer does no longer work due to
incompatibility with the protobuf package version installed
(OpenSuse Tumbleweed).

So in order to solve this issue, we provide several protobuffers,
for old and new protobuf versions:
proto/ui_pb2* for protobuf >= 4.0.0
proto/pre3200/ui_pb2* for protobuf >= 3.6.0 and < 3.20.0

To avoid import errors, each protobuffer must be placed in its own
directory, and the name of the protobuffer files must be named with
the syntax <prefix>_pb2.py/<prefix>_pb2_grpc.py:
  ui_pb2.py and ui_pb2_grpc.py

The default compiled protobuffer will be opensnitch/proto/ui_*.py
instead of opensnitch/ui_*.py
2024-12-26 20:11:50 +01:00
Gustavo Iñiguez Goia
b1e9060526
pkg,deb: updated notes for grpcio issue #647 2024-12-25 12:59:40 +01:00
Gustavo Iñiguez Goia
5877e6c6d0
deb: warn about buggy python3-grpcio version (1.30.2-3build6)
Ubuntu jammy package python3-grpcio, version 1.30.2-3build6, has a bug
which causes applications to use 100% of the CPU.

If after installing we detect that the buggy version is installed,
display a warning to the user with instructions on how to solve the
problem and links to the bug reports.

More information:
 - https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114
 - https://github.com/evilsocket/opensnitch/issues/647

(cherry picked from commit c89b4908ce)
2024-07-02 00:17:20 +02:00
Gustavo Iñiguez Goia
4e7f1aeae7
Bumped versions to v1.6.6 2024-06-20 00:45:33 +02:00
Gustavo Iñiguez Goia
b05eace022
Bump GUI versions to 1.6.5.1 2024-02-09 14:51:17 +01:00
Gustavo Iñiguez Goia
b99714ff59
pkgs: improved rpm upgrades
We were not handling configuration upgrades properly on rpm based
systems.

Now local changes to default-config.json and system-fw.json are kept,
and if the distributed files changes in the future, new files will be
created with the extension .rpmnew

(cherry picked from commit dddfdc924e)
2024-02-02 14:21:25 +01:00
Gustavo Iñiguez Goia
5912b8e9d7
Bump packages versions to 1.6.5 2024-01-24 20:09:26 +01:00
Gustavo Iñiguez Goia
53c0f1dd91 rpm pkgs: changed autostart path
Previously after installing the rpm GUI package, we created a symlink to
our .desktop file for all users, under /home/*/.config/autostart/

If the path didn't exist we created it, unfortunately as root, which
caused some problems with other applications like Gnome Tweaks.

Now a link is created under /etc/xdg/autostart/, which is what we use
with the debian packages.

Closes: #1068
(cherry picked from commit 86d3f54247)
2024-01-08 15:52:48 +01:00
Gustavo Iñiguez Goia
c35baf364e
Bump ui version to v1.6.4
Added qgnomeplatform-qt5 as dependency for rpm packages. Otherwise on
Fedora 29 there's no window decorations.
2023-11-06 01:14:38 +01:00
Gustavo Iñiguez Goia
79ac6306a5
Bump GUI version to v1.6.3 2023-08-17 00:28:37 +02:00
Gustavo Iñiguez Goia
ce7c3f8002
Bump versions to v1.6.2 2023-07-31 00:36:33 +02:00
Gustavo Iñiguez Goia
d8e27b98d1
rpm: install ui binary under /usr/bin
Starting from a python3 release, distutils no longer install scripts
under /usr/bin by default, but under /usr/local/bin.
(around opensnitch v1.6.0-c5).

This causes on some immutable distros not to install the GUI, for
example Fedora SilverBlue:
https://github.com/projectatomic/rpm-ostree/issues/233

Closes #880
2023-07-25 16:36:44 +02:00
Gustavo Iñiguez Goia
cdf6497ea7
Bump versions to v1.6.1 2023-07-23 22:18:58 +02:00
Gustavo Iñiguez Goia
0e6f9995e8
Bump rpm versions to 1.6.0.1 2023-06-16 11:42:22 +02:00
Gustavo Iñiguez Goia
01dc1d2e9b
Bumped debian packages versions to 1.6.0.1
1.6.0-rc.5-1 is newer than 1.6.0-1 unfortunately.
2023-06-15 23:52:56 +02:00
Gustavo Iñiguez Goia
a7e64b0374
new script to restart the daemon after suspend
There's a bug when coming back from suspend state, that causes eBPF proc
monitor method stop working.

The only solution to this problem for now, is restart the daemon every
time the computer wakes up.

See: https://github.com/evilsocket/opensnitch/discussions/834#discussioncomment-5712431).
2023-06-08 17:25:29 +02:00
Gustavo Iñiguez Goia
96a962be2b
ci fixes 2023-05-17 13:00:13 +02:00
Gustavo Iñiguez Goia
f97e7392a3
ci fixes 2023-05-17 12:26:49 +02:00
Gustavo Iñiguez Goia
ba64379348
ebpf: new way of compiling the modules
- Don't rename libbpf's bpf_map_def struct, and distribute the needed bpf
  headers.
  The bpf_map_def struct has been deprecated for quite some time now,
  and it was been removed on >= 6.2 anyway.
  We still need it, because we use gobpf.
- Improved compilation behaviour:
  - We don't require the kernel sources anymore. We can just use the
    kernel headers from the distribution.
  - There's no need to copy the sources to the kernel tree, the modules
    can be compiled from the ebpf_prog/ dir.
- Compiling against kernels 6.x seems to solve the problem we had with
  VPNs, where connections were not intercepted with modules compiled
  against 5.8, on kernels >= 5.19.

The modules has been tested on kernels 4.17, 5.4, 5.10, 5.15, 6.1 and
6.2 (kernel connections included).

Closes: #939
2023-05-17 01:20:53 +02:00
Gustavo Iñiguez Goia
2341b69fe7
added script to dump ebpf maps 2023-04-24 17:55:05 +02:00
Gustavo Iñiguez Goia
cbdb00b620
deb: remove autostart file on uninstall
Closes #916
2023-04-22 23:38:36 +02:00
Gustavo Iñiguez Goia
a1948e259a
Bump versions to 1.6.0 2023-04-22 12:32:53 +02:00
Gustavo Iñiguez Goia
a4b59e6ce0
Updated packaging files, bump versions to 1.6.0rc5 2023-02-18 20:35:34 +01:00
Spencer Comfort
f845f12db9
Update make_ads_rules.py 2023-02-01 07:32:49 -05:00
Gustavo Iñiguez Goia
7f81e010a3
utils: updated modules compilation script
Apply a different patch depending on the arquitecture.
2023-01-16 11:31:55 +01:00
Gustavo Iñiguez Goia
ceee7970a3
fixed script to compile ebpf modules 2022-12-22 12:08:18 +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
58ceb90996
deb: fixed latest changelog datetime 2022-12-08 11:42:18 +01:00
Gustavo Iñiguez Goia
fcecff3d36
rpm: fixed installed files 2022-11-16 22:57:07 +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
a3538a728f
systemd service: wait 10s to stop, otherwise kill daemon 2022-10-27 17:53:42 +02:00
Gustavo Iñiguez Goia
44500f9c09
pkgs, deb: improvements
- Don't share sources (reduces deb size).
 - Install eBPF modules under /usr/lib/opensnitchd/ebpf/
   /etc/is only mean for configuration files, and /usr/lib for object
   files and libraries.
   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s07.html#purpose6
   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s06.html#purpose22
 - Added NEWS file, to inform users about breaking changes and other
   relevant changes.
2022-10-19 13:13:45 +02:00
Gustavo Iñiguez Goia
fb3a8ccb37
added helper script to compile eBPF modules 2022-10-05 14:51:00 +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
c9650cbc49 update_adlists.sh updated
set output directory to /etc/opensnitchd/blocklists/domains/
2022-07-07 21:48:20 +02:00
Gustavo Iñiguez Goia
c3a356bdb8 update_adlists.sh updated
- TOP_EU_US_Ads_Trackers_HOST list is no longer available, and the new
  list is not in hosts format.
- curben malware list moved to malware-filter.gitlab.io
- some improvements

Closes #695
2022-07-07 13:18:15 +02:00
Gustavo Iñiguez Goia
be32ddc574 added script to update ads lists, old script relocated.
There's a new way of blocking lists of domains:
https://github.com/evilsocket/opensnitch/wiki/block-lists

However the update of the lists is not implemented yet. You can use
this or other simple script to download and update the lists (in hosts
format).
2021-07-17 00:41:13 +02:00