Commit graph

36 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
deba3e2252
Bumped packaging versions to v1.7.0rc1 2025-02-11 01:24:03 +01:00
Gustavo Iñiguez Goia
422a2dd82d
pkg,ui: rpm/deb improvements
- deb: added python3-packaging dependency.
 - rpm:
   * make python3-notify2 package optional.
   * Added python3-packaging as dependency to load dynamically the
     protobuffers (python3-packaging for Fedora, python-rpm-packaging
     metapackage for OpenSuse).
2025-01-03 16:19:28 +01:00
Gustavo Iñiguez Goia
5dd4ef06bb
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
2025-01-03 14:48:35 +01:00
Gustavo Iñiguez Goia
6edb60c549
pkg,deb: updated notes for grpcio issue #647 2024-12-25 12:52:45 +01:00
AbuTurab
f8d38cff9e
remove lagacy cname_trackers.txt reference
AdGuard no longer maintains/supports that file type, and the link points to a 404 error page.
2024-08-29 11:02:37 +05:00
Gustavo Iñiguez Goia
c89b4908ce
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
2024-07-02 00:02:46 +02:00
Gustavo Iñiguez Goia
dddfdc924e
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
2024-02-02 14:16:16 +01:00
Gustavo Iñiguez Goia
86d3f54247
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
2023-11-29 22:54:02 +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