How To Install uruk on Debian 9
Introduction
In this tutorial we learn how to install uruk
on Debian 9.
What is uruk
uruk is:
Uruk is a wrapper for Linux ip[6]tables. A very simple shell script, but useful if you need similar (but not the same) packet filtering configurations on lots of hosts. It uses a template file, which gets sourced as a shell script, to get lists of source addresses, allowed to use specific network services. Listing these groups of allowed hosts and allowed services is all what’s needed to configure your box.
Main difference with other firewall setup tools: uruk is just a very small (just 14K!) shell script, no gui, no interactive setup, no default configuration. You’ll like this if you’d rather not have lots of (probably buggy) code between you and your filtering rules.
There are three methods to install uruk
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install uruk Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install uruk
using apt-get
by running the following command:
sudo apt-get -y install uruk
Install uruk Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install uruk
using apt
by running the following command:
sudo apt -y install uruk
Install uruk 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 uruk
using aptitude
by running the following command:
sudo aptitude -y install uruk
How To Uninstall uruk on Debian 9
To uninstall only the uruk
package we can use the following command:
sudo apt-get remove uruk
Uninstall uruk And Its Dependencies
To uninstall uruk
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove uruk
Remove uruk Configurations and Data
To remove uruk
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge uruk
Remove uruk configuration, data, and all of its dependencies
We can use the following command to remove uruk
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge uruk
Dependencies
uruk have the following dependencies:
References
Summary
In this tutorial we learn how to install uruk
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.