Installation (original) (raw)

Installation using the packages

ℹ️ Since version > v1.5.2, opensnitch is available on Debian Bookworm 12 and ubuntu 23.04.

tl;dr: use the command line

(get the packages from the Release section: https://github.com/evilsocket/opensnitch/releases)

DEB

$ sudo apt install ./opensnitch*.deb ./python3-opensnitch-ui*.deb

RPM

yum:

$ sudo yum localinstall opensnitch-*.rpm; sudo yum localinstall opensnitch-ui*.rpm

dnf:

$ sudo dnf install ./opensnitch-*.rpm ./opensnitch-ui-*.rpm

(You can also double-click on the downloaded files)

Arch Linux

$ sudo pacman -S opensnitch

NixOS

Add following line to your system configuration to install and enable OpenSnitch

services.opensnitch.enable = true; environment.systemPackages = with pkgs; [ opensnitch-ui ];

https://nixos.wiki/wiki/OpenSnitch

➡️ Then lanch the GUI: $ opensnitch-ui or launch it from the Applications menu.

Remember:

If the daemon doesn't start after installing these packages (or others from other distributions) or after rebooting your computer, you need to enable and start it manually:

sudo systemctl enable --now opensnitch
sudo systemctl start opensnitch

(use opensnitchd if opensnitch doesn't work)

Note:

This packages are provided to you in the aim of being useful and ease the installation. They have some no-no's (like calling pip on post install scripts), and apart from that don't expect them to be bug free or lintian errors/warnings free.


Errors?


The reason for installing some dependencies using pip is that they are not always packaged in all distributions and all versions (python3-grpcio on Ubuntu is only available from >= 19.x). Moreover, Ubuntu 20.04 python3-grpcio (version 1.16.1) differs from official 1.16.x that causes some working problems.

Besides, grpc packages distributed with some distributions (python3-grpcio, OpenSuse) do not work.

If you still don't want to install those pip packages, you'll need to install the following packages:

$ sudo apt install python3-grpcio python3-protobuf python3-slugify

You can download them from the release section.

**Note:**Select the right package for your architecture: $(uname -m) == x86_64 -> opensnitch*...amd64.deb, $(uname -m) == armhf -> opensnitch*...arhmf.deb, etc.


These packages have been tested on:

Note: You can install the UI from the sources, using pip3, and it'll work in some more distributions. Not in Fedora <= 29 due to lack of PyQt5 libraries.


Upgrading opensnitch

Use the installation commands mentioned above. The package managers will take care of the upgrading process. (you don't need to uninstall previous version in order to install a new one).

Uninstalling opensnitch

These steps will remove opensnitch from your system. That includes the rules and the configuration.

Note: If you're installing a new version, you don't need to uninstall the old one first. Just install the new version, and it'll be upgraded.

deb packages:

Remove the package, keeping the configuration and rules:

Remove the packages + rules + configuration:

rpm packages

pacman packages

If you installed pip packages: