Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ ntop monitoring software configuration and installation     - ASP.NET 5 (vNext) Linux deployment (Server)

- Raspberry Pi configuration wireless hotspot (Linux)

- The new features of MySQL 5.7 Generated Column (index function) (Database)

- Debian (Wheezy) Install Java environment / replace OpenJDK as the SUN JDK (Linux)

- Findbugs installation documentation (Linux)

- History of the most complex validation e-mail address regular expression (Linux)

- Django Web dynamic three linkage (Programming)

- Magical Virtualbox under Ubuntu (Linux)

- Protect your files, modify the Linux value Umask (Linux)

- Linux for enterprises to build a firewall (Linux)

- Graphing tool: Gnuplot (Linux)

- APT-GET commonly used Linux command (Linux)

- How to use the TF / SD card making Exynos 4412 u-boot boot disk in Ubuntu (Linux)

- nginx.conf Optimization (Server)

- To record command input under Linux (Linux)

- Usage of sudo (Linux)

- How to install Ubuntu strategy game Wesnoth 1.12.0 (Linux)

- C ++ copy constructor (Programming)

- Use NTFS-3G to mount NTFS partitions under Linux U disk and removable hard disk (Linux)

- Comparison of C # and Java (Programming)

 
         
  ntop monitoring software configuration and installation
     
  Add Date : 2018-11-21      
         
         
         
  1.Ntop Profile

1.ntop is a network monitoring tool, network sniffer. It can monitor network traffic, network bandwidth utilization even can list each node computer. It can be determined by analyzing the various problems of network traffic on the network; also be used to determine whether the hacker is attacking a network system; you can also easily show specific network protocols, bandwidth-intensive host, each secondary communication the target host, the packet transmission time, transmission delay detailed information packet and the like. By knowing this information, network management can make a timely response to the failure of network optimization and adjustment accordingly to ensure the efficiency of network operation and security.

2.ntop provides the following functions:

1) automatically identify useful information from the network;

2) the intercepted data packets into a format easy to identify;

3) on the network environment, the communication failure is analyzed;

4) detection communication bottlenecks in the network environment;

5) Record the time and process network communications;

6) Automatic Identification clients are using operating systems

Turn off SELinux with iptables;

Basic installation with common tools and commands:

yum -y install yum-plugin * telnet nmap lrzsz

2.ntop Preparation Before Installation

2.1 Checking the Installation Environment

Ntop need development libraries and software support environment: libtool zlib-devel openssl-devel python-devel rrdtool libpcap, libpcap-devel, libpng, gdbm, gd execute the following command. (Recommended to install the main package and expansion packs use yuminstall XXX *)

[Root @ test ~] #rpm -qa | egrep 'libpcap | libpng | gd'

3. Install the required plug-ins

3.1 Install libpcap

[Root @ localhost ~] # wgethttp: //www.tcpdump.org/release/libpcap-1.7.2.tar.gz

[Root @ localhost ~] #tar zxvf libpcap-1.7.2.tar.gz

[Root @ localhost ~] #cd libpcap-1.7.2

[Root @ localhost libpcap-1.7.2] #. / Configure

[Root @ localhost libpcap-1.7.2] #make && make install

Install supporting software

#yumgroupinstall "Development Libraries" "Development tools" "Legacy SoftwareDevelopment" -y (installed compiler environment)

[Root @ localhost ~] # yum installlibart_lgpl-devel

[Root @ localhost ~] # yum install libxml2-devel

# Yum install gliblibxml2-devel pangopango-devel -y

3.2 Installation geoip

# Will complain if you do not install geoip, install ntop

[Root @ localhost ~] # wgethttp: //geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz

[Root @ localhost ~] #tar zxvf GeoIP.tar.gz

[Root @ localhost ~] #cd GeoIP-1.4.8

[Root@localhostGeoIP-1.4.8] #. / Configure

[Root @ localhost GeoIP-1.4.8] # make && make install

3.3 install rrdtool

For without errors, [root @ localhost ~] # yum installpcre *

[Root @ localhost ~] # wgethttp: //oss.oetiker.ch/rrdtool/pub/rrdtool-1.5.0-rc2.tar.gz

[Root @ localhost ~] # tar zxvf rrdtool-1.5.0-rc2.tar.gz

[Root @ localhost ~] # cd rrdtool-1.5.0-rc2

[Root @ localhost rrdtool-1.5.0-rc2] #. / Configure --prefix = / usr / local / rrdtool # need to specify the path, you will find this directory to compile and install ntop

Translation of tips configure: error: Please fix thelibrary issues listed above and try again error, should be carefully examined at a number of libraries have less support, do

[Root @ localhost ~] # wgethttp: //down1.chinaunix.net/distfiles/cgilib-0.5.tar.gz

[Root @ localhost ~] # tar zxvf cgilib-0.5.tar.gz

[Root @ localhost ~] # cd cgilib-0.5

[Root @ localhost cgilib-0.5] #make

[Root @ localhost cgilib-0.5] #cp libcgi.a / usr / local / lib

[Root @ localhost cgilib-0.5] #cp cgi.h / usr / include

After installing the required library files, we re-run ./configure--prefix=/usr/local/rrdtool

Such a mistake configure: error:. You needeither glib with g_regex support or libpcre to compile rrdtool need to install pcre

[Root @ localhost rrdtool-1.5.0-rc2] ## make

Support when needed cairo install rrdtool package support, and they need to cairo pkg-config, glib, pixman, pango, freetype, fontconfig package

[Root @ localhost pkg-config-0.23] # yuminstall pixman pixman-devel

[Root @ localhost rrdtool-1.4.9] #make install

4. Installation and Configuration ntop

4.1 Editing install ntop

[Root @ localhost ~] # wgethttp: //down1.chinaunix.net/distfiles/ntop-4.1.0.tar.gz

[Root @ localhost ~] # tar zxvf ntop-4.1.0.tar.gz

[Root @ localhost ~] # cd ntop-4.1.0

[Root @ localhost ntop-4.1.0] # ./autogen.sh --with-tcpwrap --with-rrd-home = / usr / local / rrdtool

configure --with-tcpwrap option to support TCP Wrappers access control

[Root @ localhost ntop-4.1.0] #make

[Root@localhostntop-4.1.0] #make install

When installation requires automatic download etter.finger.os, if you do not connect to the Internet, it will be reported the following error

4.2 Creating a User

[Root @ localhost ~] # useradd ntop

[Root @ localhost ~] # passwd ntop

Create log storage directory folder

[Root @ localhost ~] # cd / var / log /

[Root @ localhost log] # mkdirntop

Set the directory folder owner and group

[Root @ localhost log] # chownntop.ntop ntop /

Setting ntop Folder owner and group

[Root @ localhost ~] #cd / usr / local / share /

[Root @ localhost share] #chown ntop.ntop / usr / local / share / ntop-R

4.2.1 Editing Profiles

ntop default configuration files do not need to copy the installation package from the original copy over.

[Root @ localhost ~] # cp ntop-4.1.0 / packages / RedHat / ntop.conf.sample /etc/ntop.conf

[Root @ localhost ~] # vi /etc/ntop.conf attention to the following fields

--user ntop run

--db-file-path / usr / local / share / ntop data storage directory

--interface eth0 monitor card

Port --http-server 3000 run

4.2.2 Set a password for the administrator

NTOP set an administrator password, NTOP default administrator admin, and for security reasons, we need to set a password. In addition, when you modify settings or close NTOP NTOP services through the web page, you must use the administrator user name and password to verify:

#. / Ntop -A --set-admin-password = ntopadmin set admin password

4.2.3 Setting TCP Wrapper Permissions

Setting TCP Wrapper permissions when compiling ntop we use the --with-tcpwrap configuration item, so you can access through TCP Wrapper policy ntop to control:

(This step can be modified according to the actual situation, it may be omitted)

# Vi / etc / hosts.allow ntop: 192.168.1.199 // allow only host 192.168.1.199 NTOP service #

vim / etc / hosts.deny ntop: ALL

4.2.4 Start ntop

NTop first start

The first time you run Description: Before starting to set a password management with the following command for the first time, after the time set with the web page to obtain. The default user name admin, password is the following command.

/ Usr / bin / ntop -P -u -A

-P [Directory] Specifies the database storage path

-u [user] user Specifies the service to start

-A Set the admin password, ntop will be built-in admin account managers in the ntop

Up and running

# / Usr / local / bin / ntop-p / usr / local / var / ntop / &

Or join a startup script (if no network devices are available -i eth0 items specified!)

#echo "/ usr / local / bin / ntop -p / usr / local / var / ntop / &" >> / etc / rc.d / rc.local

Browse

http://xxx.xxx.xxx.xxx:3000
     
         
         
         
  More:      
 
- a virtual machine created migrated to host RHEL6.4 on Ubuntu 14.04 (Linux)
- Let you Fun Ubuntu desktop eleven weapon (Linux)
- Compiled version of Android Opus audio codec library method (Programming)
- To install Spotify in Ubuntu / Mint (Linux)
- VMware virtual machine to install CentOS 6.2 (Linux)
- Using FTPClient to upload and download files in Java (Programming)
- Oracle restrict certain IP, the malicious user actions on important table (Database)
- VMware clone Linux find eth0 (Linux)
- TWiki LDAP error appears the problem is solved (Linux)
- Spring + Log4j + ActiveMQ remote logging - Analysis of combat (Server)
- Spark and Hadoop comparison (Server)
- On FreeBSD 10.2 Bugzilla how to install and configure Apache SSL (Server)
- The specified user to execute commands under Linux (Linux)
- Spring JDBC Comments (Programming)
- How to install Perl modules from CPAN (Linux)
- Linux Oracle delete archived logs (Database)
- Ubuntu manually set the DSL broadband connection (Linux)
- Package the Python script file into an executable file (Programming)
- Linux console password solution (Programming)
- The user of fedora is not in the sudoers file method to solve (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.