How To Install netscript-ipfilter on Debian 9
Introduction
In this tutorial we learn how to install netscript-ipfilter on Debian 9.
What is netscript-ipfilter
netscript-ipfilter is:
This is a cut down version of netscript-2.4, which is just the ipfilter iptables/ip6tables management implementation. This provides iptables and ip6tables management with a cyclic backup history, via iptables-restore and iptables-save.
This is designed to work with ifupdown, and is better than iptables-persistent as you can roll back filter changes if you have made a mistake.
There are three methods to install netscript-ipfilter 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 netscript-ipfilter Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install netscript-ipfilter using apt-get by running the following command:
sudo apt-get -y install netscript-ipfilter
Install netscript-ipfilter Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install netscript-ipfilter using apt by running the following command:
sudo apt -y install netscript-ipfilter
Install netscript-ipfilter 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 netscript-ipfilter using aptitude by running the following command:
sudo aptitude -y install netscript-ipfilter
How To Uninstall netscript-ipfilter on Debian 9
To uninstall only the netscript-ipfilter package we can use the following command:
sudo apt-get remove netscript-ipfilter
Uninstall netscript-ipfilter And Its Dependencies
To uninstall netscript-ipfilter and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove netscript-ipfilter
Remove netscript-ipfilter Configurations and Data
To remove netscript-ipfilter configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge netscript-ipfilter
Remove netscript-ipfilter configuration, data, and all of its dependencies
We can use the following command to remove netscript-ipfilter configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge netscript-ipfilter
Dependencies
netscript-ipfilter have the following dependencies:
References
Summary
In this tutorial we learn how to install netscript-ipfilter package on Debian 9 using different package management tools: apt, apt-get and aptitude.