The page describe how to compile the Douane firewall on your machine.
In order to compile Douane, it is necessary to install a number of libraries before building. Further information on dependencies is given in the Dependencies wiki page.
In order to keep your machine clean, I recommend you to create a folder where all the source codes will be downloaded and compiled:
cdmkdir Douanecd Douane/
Source Code Manager
All the following steps will need the git scm. The package is named git.
The kernel module (unsigned instructions)
This is the very first step in order to install the firewall. The kernel module is written with DKMS, and a Makefile has been written in order to easy the installation:
git clone https://gitlab.com/douaneapp/douane-dkms.gitcd douane-dkmssudo make dkms
The last command will copy/compile/install and load the kernel module on your machine. As it is a DKMS module, next time you install a new kernel, the Douane kernel module will be re-compiled against the new kernel automatically.
The kernel module (signed instructions)
Some machines use an UEFI security feature known as Secure Boot. Most manufacturers will have it enabled by default. If Secure Boot is enabled, following the instructions above will result in an error saying that the module has not been signed with an appropriate key.