firewall-config command not found

In this troubleshooting guide we learn how to fix firewall-config command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

firewall-config: command not found

or when using sudo you get the following error message

sudo: firewall-config: command not found

Solutions to firewall-config: command not found

How To Fix firewall-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu firewall-config is provided by firewall-config package.

firewall-config 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.

This package provides a graphical configuration tool to change the firewall settings.

To fix this problem, we can install more using the command below.

sudo apt-get -y install firewall-config

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install firewall-config.

sudo apt -y install firewall-config

Or if you have aptitude installed you can use the following command.

sudo aptitude install firewall-config

Summary

In this tutorial we learn how to fix firewall-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.