iptstate command not found

In this troubleshooting guide we learn how to fix iptstate command not found error message

Introduction

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

iptstate: command not found

or when using sudo you get the following error message

sudo: iptstate: command not found

Solutions to iptstate: command not found

How To Fix iptstate: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu iptstate is provided by iptstate package.

iptstate is:

IP Tables State (iptstate) was originally written to implement the “state top” feature of IP Filter in IP Tables. “State top” displays the states held by your stateful firewall in a top-like manner.

Features include:

  • Top-like realtime state table information
  • Sorting by any field
  • Reversible sorting
  • Single display of state table
  • Customizable refresh rate
  • Display filtering
  • Color-coding
  • much more…

To use iptstate, CONNTRACK should be enabled in your kernel.

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

sudo apt-get -y install iptstate

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

You can also use apt command to install iptstate.

sudo apt -y install iptstate

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

sudo aptitude install iptstate

Summary

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