natlog command not found

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

Introduction

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

natlog: command not found

or when using sudo you get the following error message

sudo: natlog: command not found

Solutions to natlog: command not found

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

In Ubuntu natlog is provided by natlog package.

natlog is:

Firewalls like iptables usually offer POSTROUTING source network address translation facilities changing the source address of a host behind the firewall to the address of the host before the firewall.

The standard log facilities provided by iptables do not easily allow associating addresses behind the firewall with their source-natted equivalents before the firewall. Natlog was designed to fill in that particular niche.

When running natlog, messages are sent to the syslog daemon and/or to the standard output stream showing the essential characteristics of the connection using source natting. Here is an example:

from Fri 8 22:30:10:55588 until Fri 8 22:40:43:807100: 192.168.19.72:4467 (via: 129.125.90.132:4467) to 200.49.219.180:443

Natlog depends on facilities provided by iptables; work is in progress to generate logs using facilities offered by the pcap library.

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

sudo apt-get -y install natlog

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

You can also use apt command to install natlog.

sudo apt -y install natlog

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

sudo aptitude install natlog

Summary

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