Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to perform traffic monitoring ntop on Linux server

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In order to solve this problem, this article introduces the corresponding analysis and answer in detail about how to monitor the ntop of Linux server, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Ntop

Ntop is a traffic monitoring tool similar to sniffer, which displays traffic information in more detail than mrtg.

1. Install some dependent software

[root@localhost bandwidthd] # yum install-y gcc libpcap-devel libpcap libtool automake autoconf gdbm gdbm-devel libevent libevent-devel rrdtool rrdtool-devel zlib zlib-devel

2. Install geoip software, which has multiple dependencies and can be downloaded from https://centos.pkgs.org. Several rpm packages should be installed at the same time

[root@localhost wj] # rpm-ivh GeoIP-1.6.9-2857.el6.art.i686.rpm GeoIP-GeoLite-data-2017.05-1.el6.art.noarch.rpm GeoIP-GeoLite-data-extra-2017.05-1.el6.art.noarch.rpm geoipupdate-2.2.2-2.el6.art.i686.rpm

Preparing... # [100%]

1:GeoIP-GeoLite-data-extr### [25%]

2:GeoIP-GeoLite-data # # [50%]

3:geoipupdate # [75]

4:GeoIP # # [100%]

3. Download the ntop software (https://sourceforge.net/projects/ntop/files/ntop/ntop-4.0.1/ntop-4.0.1.tar.gz/download)

4. Decompress bandwidthd.

[root@localhost ~] # tar-xzvf ntop-4.0.1.tar.gz

5. Installation. Ntop needs to be compiled and installed, first execute the autogen.sh file, generate makefile, and then compile and install

[root@localhost ntop-4.0.1] #. / autogen.sh

[root@localhost ntop-4.0.1] # make

[root@localhost ntop-4.0.1] # make install

6. Configure firewall and increase port 3000 of tcp.

[root@localhost GeoIP-1.4.8] # gedit / etc/sysconfig/iptables

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3000-j ACCEPT

[root@localhost GeoIP-1.4.8] # service iptables restart

Iptables: set chain to policy ACCEPT:filter nat [OK]

Iptables: clear firewall rules: [OK]

Iptables: uninstalling module: [OK]

Iptables: apply firewall rules: [OK]

Iptables: load additional modules: nf_conntrack_ftp [OK]

7. Start ntop

[root@localhost GeoIP-1.4.8] # / usr/local/bin/ntop-d-L-u root-P / usr/local/var/ntop-- skip-version-check-- use-syslog=daemon

8. Type "127.0.0.1 3000" in the browser to open the ntop.

This is the answer to the question about how the Linux server monitors the ntop traffic. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report