netstat-nat command not found

In this troubleshooting guide we learn how to fix netstat-nat command not found error message

Introduction

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

netstat-nat: command not found

or when using sudo you get the following error message

sudo: netstat-nat: command not found

Solutions to netstat-nat: command not found

How To Fix netstat-nat: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu netstat-nat is provided by netstat-nat package.

netstat-nat is:

Netstat-nat is a program that displays Network Address Translations (NAT) connections, managed by netfilter/iptables acting as firewall.

NAT rules are stored in memory. However, the program reads its information from ‘/proc/net/ip_conntrack’, which is the temporary conntrack-storage of netfilter.

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

sudo apt-get -y install netstat-nat

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

You can also use apt command to install netstat-nat.

sudo apt -y install netstat-nat

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

sudo aptitude install netstat-nat

Summary

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