firewall-offline-cmd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
firewall-offline-cmd: command not found
or when using sudo you get the following error message
sudo: firewall-offline-cmd: command not found
Solutions to firewall-offline-cmd: command not found
How To Fix firewall-offline-cmd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu firewall-offline-cmd is provided by firewalld package.
firewalld is:
firewalld is a dynamically managed firewall daemon with support for network/firewall zones to define the trust level of network connections or interfaces. It has support for IPv4, IPv6 firewall settings and for ethernet bridges and has a separation of runtime and persistent configuration options. It also provides a D-Bus interface for services or applications to add and apply firewall rules on-the-fly.
To fix this problem, we can install more using the command below.
sudo apt-get -y install firewalld
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install firewalld.
sudo apt -y install firewalld
Or if you have aptitude installed you can use the following command.
sudo aptitude install firewalld
Summary
In this tutorial we learn how to fix firewall-offline-cmd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.