Installing Darkstat in Linux: web-based traffic analyzer
Darkstat is a simple web-based traffic analysis program. It can work on mainstream operating systems such as Linux, Solaris, MAC, and AIX. It continues to work in the background as a daemon, constantly sniffing network data, and displaying it on its webpage in a simple and understandable form. It can generate traffic reports for hosts to identify which ports are opened on specific hosts. It is compatible with IPv6. Let's take a look at how to install and configure it in Linux.
Install and configure Darkstat in Linux
Install Darkstat in Fedora/CentOS/RHEL:
To install it in Fedora/RHEL and CentOS, run the following command.
sudo yum install darkstat
Install Darkstat in Ubuntu/Debian:
Run the following command to install it in Ubuntu and Debian.
sudo apt-get install darkstat
Congratulations, Darkstat has been installed in your Linux.
Configure Darkstat
To run this program correctly, we need to execute some basic configurations. Run the following command to open the/etc/darkstat/init. cfg file in the gedit editor.
sudo gedit /etc/darkstat/init.cfg
Edit Darkstat
Modify START_DARKSTAT to yes and provide your network INTERFACE in "INTERFACE. Make sure that the comments of the DIR, PORT, BINDIP, and LOCAL parameters are removed. If you want to bind Darkstat to a specific IP address, provide it in the BINDIP parameter.
Start the Darkstat daemon
After installing and configuring Darkstat, run the following command to start its daemon process.
sudo /etc/init.d/darkstat start
Restarting Darkstat
You can use the following command to start Darkstat at startup:
chkconfig darkstat on
Open the browser and open http: // localhost: 666. It displays the webpage interface of Darkstat. Use this tool to analyze your network traffic.
Darkstat
Summary
It is a lightweight tool that occupies a small amount of memory. This tool is easy to configure and use. This is a program that must be owned by the system administrator.
Via: Darkstat is a Web Based Network Traffic Analyzer-Install it on Linux
Author: Aun Translator: geekpi Proofreader: wxy
This article was originally translated by LCTT and launched with the Linux honor in China
This article permanently updates the link address: