|
|
The page describe how to compile the Douane firewall on your machine.
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
In order to compile Douane, it is necessary to install a number of libraries before building. Further information on dependencies is given at [https://github.com/Douane/Douane/wiki/Dependencies](https://github.com/Douane/Douane/wiki/Dependencies)
|
|
|
|
|
|
## Compilation area
|
|
|
|
|
|
In order to keep your machine clean, I recommend you to create a folder where all the source codes will be downloaded and compiled:
|
|
|
|
|
|
cd
|
|
|
mkdir Douane
|
|
|
cd Douane/
|
|
|
|
|
|
## The kernel module
|
|
|
|
|
|
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://github.com/Douane/douane-dkms
|
|
|
cd douane-dkms
|
|
|
sudo 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 daemon
|
|
|
|
|
|
Next you need the daemon:
|
|
|
|
|
|
cd ~/Douane
|
|
|
git clone https://github.com/Douane/douane-daemon
|
|
|
cd douane-daemon
|
|
|
git submodule init && git submodule update
|
|
|
make
|
|
|
sudo make install
|
|
|
|
|
|
Now you need to start it:
|
|
|
|
|
|
sudo service douane start
|
|
|
|
|
|
You can already see the daemon activities from the Douane log file:
|
|
|
|
|
|
tail -f /var/log/douane.log
|
|
|
|
|
|
## The dialog process
|
|
|
|
|
|
As I'm a GNOME fan, I'm developing GNOME applications. So the official dialog window (screenshots shown on the [Douaneapp.com](http://douaneapp.com) website and [the Github main repository](/Douane/Douane)) is a GTK process.
|
|
|
|
|
|
cd ~/Douane
|
|
|
git clone https://github.com/Douane/douane-dialog
|
|
|
cd douane-dialog
|
|
|
git submodule init && git submodule update
|
|
|
make
|
|
|
sudo make install
|
|
|
|
|
|
Now you need to start it:
|
|
|
|
|
|
douane-dialog &
|
|
|
|
|
|
And you should probably see it quite immediately.
|
|
|
|
|
|
## The configurator
|
|
|
|
|
|
Finally, in order to start/stop the firewall, and manage the rules, you'll need the configurator:
|
|
|
|
|
|
cd ~/Douane
|
|
|
git clone https://github.com/zedtux/gtktwitterbox
|
|
|
cd gtktwitterbox
|
|
|
sudo python setup.py install
|
|
|
cd -
|
|
|
git clone https://github.com/Douane/douane-configurator
|
|
|
cd douane-configurator
|
|
|
sudo python setup.py install
|
|
|
|
|
|
The page describe how to compile the Douane firewall on your machine.
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
In order to compile Douane, it is necessary to install a number of libraries before building. Further information on dependencies is given at [https://github.com/Douane/Douane/wiki/Dependencies](https://github.com/Douane/Douane/wiki/Dependencies)
|
|
|
|
|
|
## Compilation area
|
|
|
|
|
|
In order to keep your machine clean, I recommend you to create a folder where all the source codes will be downloaded and compiled:
|
|
|
|
|
|
cd
|
|
|
mkdir Douane
|
|
|
cd Douane/
|
|
|
|
|
|
## The kernel module
|
|
|
|
|
|
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://github.com/Douane/douane-dkms
|
|
|
cd douane-dkms
|
|
|
sudo 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 daemon
|
|
|
|
|
|
Next you need the daemon:
|
|
|
|
|
|
cd ~/Douane
|
|
|
git clone https://github.com/Douane/douane-daemon
|
|
|
cd douane-daemon
|
|
|
git submodule init && git submodule update
|
|
|
make
|
|
|
sudo make install
|
|
|
|
|
|
Now you need to start it:
|
|
|
|
|
|
sudo service douane start
|
|
|
|
|
|
You can already see the daemon activities from the Douane log file:
|
|
|
|
|
|
tail -f /var/log/douane.log
|
|
|
|
|
|
## The dialog process
|
|
|
|
|
|
As I'm a GNOME fan, I'm developing GNOME applications. So the official dialog window (screenshots shown on the [Douaneapp.com](http://douaneapp.com) website and [the Github main repository](/Douane/Douane)) is a GTK process.
|
|
|
|
|
|
cd ~/Douane
|
|
|
git clone https://github.com/Douane/douane-dialog
|
|
|
cd douane-dialog
|
|
|
git submodule init && git submodule update
|
|
|
make
|
|
|
sudo make install
|
|
|
|
|
|
Now you need to start it:
|
|
|
|
|
|
douane-dialog &
|
|
|
|
|
|
And you should probably see it quit immediately.
|
|
|
|
|
|
## The configurator
|
|
|
|
|
|
Finally, in order to start/stop the firewall, and manage the rules, you'll need the configurator:
|
|
|
|
|
|
cd ~/Douane
|
|
|
git clone https://github.com/zedtux/gtktwitterbox
|
|
|
cd gtktwitterbox
|
|
|
sudo python setup.py install
|
|
|
cd -
|
|
|
git clone https://github.com/Douane/douane-configurator
|
|
|
cd douane-configurator
|
|
|
sudo python setup.py install
|
|
|
|
|
|
Now you should got a Douane application in your applications. |
|
|
\ No newline at end of file |