
ntopng是一个网络流量分析工具,它是 ntop 项目的一个重写版本,旨在提供更高效、更强大的网络监控和流量分析功能。它能够帮助用户实时查看网络使用情况,识别网络上的设备以及它们之间的通信模式,并提供有关网络性能的详细统计数据。
ntopng 广泛应用于企业网络管理、数据中心监控、网络安全分析等领域。它可以帮助管理员发现网络瓶颈、优化资源分配、检测异常行为或潜在的安全威胁。
本次实践为个人测试环境,服务器操作系统版本为
Ubuntu 22.04.1 LTS。
hostname | 本地IP地址 | 操作系统版本 | 内核版本 | 部署项目 |
|---|---|---|---|---|
jeven01 | 192.168.3.88 | Ubuntu 22.04.1 LTS | 5.15.0-139-generic | ntopng |
1.本次实践部署环境为个人测试环境,生产环境;
2.本次实践为在ubuntu环境下安装ntopng工具及其基本使用。

apt-get install software-properties-common wget
apt install ./apt-ntop-stable.deb
root@jeven01:~# apt update
Hit:1 https://mirrors.aliyun.com/ubuntu jammy InRelease
Hit:2 https://mirrors.aliyun.com/ubuntu jammy-security InRelease
Hit:3 https://mirrors.aliyun.com/ubuntu jammy-updates InRelease
Hit:4 https://mirrors.aliyun.com/ubuntu jammy-backports InRelease
Hit:5 https://mirrors.aliyun.com/docker-ce/linux/ubuntu jammy InRelease
Get:6 https://packages.ntop.org/apt-stable/22.04 x64/ InRelease [2,153 B]
Get:7 https://packages.ntop.org/apt-stable/22.04 all/ InRelease [2,153 B]
Get:8 https://packages.ntop.org/apt-stable/22.04 x64/ Packages [3,593 B]
Get:9 https://packages.ntop.org/apt-stable/22.04 all/ Packages [2,821 B]
Fetched 10.7 kB in 3s (3,888 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
117 packages can be upgraded. Run 'apt list --upgradable' to see them.apt install pfring-drivers-zc-dkms -y 
apt install pfring-dkms nprobe ntopng n2disk cento -y
ntopng 的默认配置文件位于
/etc/ntopng/ntopng.conf,我们可以通过编辑此文件来调整 ntopng 的各项参数,如监听接口、日志级别和警报规则等。
vim /etc/ntopng/ntopng.conf-w=3000
-i=enp6s18
-d=/var/lib/ntopng 用于指定 ntopng 的数据存储目录,该目录必须对运行 ntopng 的用户具有写权限。-d=/var/lib/ntopng
systemctl enable ntopng
systemctl start ntopngsystemctl status ntopng
浏览器地址:http://【服务器IP地址】:3000,进入到ntopng的登录页。如果无法访问到该页面,检查下本地防火墙是否关闭或放行相关服务端口,云服务器则还需要设置安全组规则。

默认登录账号密码为admin/admin,输入账号密码后,提示修改密码以及设置系统语言。


通过本次实践,我们完成了 ntopng 的安装与基础配置,掌握了其在 Linux 环境下的部署流程和基本使用方法。ntopng 作为一款功能强大的网络流量分析工具,能够有效帮助用户实时监控网络状态、识别流量模式并发现潜在问题。结合其可视化界面与灵活的配置选项,适用于多种网络管理与安全审计场景。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。