How To Install opensnitch on Debian 12
Introduction
In this tutorial we learn how to install opensnitch
on Debian 12.
What is opensnitch
opensnitch is:
Whenever a program makes a connection, it’ll prompt the user to allow or deny it.
The user can decide if block the outgoing connection based on properties of the connection: by port, by uid, by dst ip, by program or a combination of them.
These rules can last forever, until the app restart or just one time.
The GUI allows the user to view live outgoing connections, as well as search by process, user, host or port.
OpenSnitch can also work as a system-wide domains blocker, by using lists of domains, list of IPs or list of regular expressions.
There are three methods to install opensnitch
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install opensnitch Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install opensnitch
using apt-get
by running the following command:
sudo apt-get -y install opensnitch
Install opensnitch Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install opensnitch
using apt
by running the following command:
sudo apt -y install opensnitch
Install opensnitch Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install opensnitch
using aptitude
by running the following command:
sudo aptitude -y install opensnitch
How To Uninstall opensnitch on Debian 12
To uninstall only the opensnitch
package we can use the following command:
sudo apt-get remove opensnitch
Uninstall opensnitch And Its Dependencies
To uninstall opensnitch
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove opensnitch
Remove opensnitch Configurations and Data
To remove opensnitch
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge opensnitch
Remove opensnitch configuration, data, and all of its dependencies
We can use the following command to remove opensnitch
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge opensnitch
Dependencies
opensnitch have the following dependencies:
References
Summary
In this tutorial we learn how to install opensnitch
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.