Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > 流量统计监控软件ntop安装
【标  题】:流量统计监控软件ntop安装
【关键字】:ntop
【来  源】:http://blog.chinaunix.net/article.php?articleId=49899&blogId=8277

流量统计监控软件ntop安装

Your Ad Here
摘要
ntop是基于sniffer的一种网络监控工具。把它安装在网关上面监控一段网络真的不错。他可以显示总的流量,还可以显示网段内机器的流量,包含每种服务的流量等。

摘要
ntop是基于sniffer的一种网络监控工具。把它安装在网关上面监控一段网络真的不错。他可以显示总的流量,还可以显示网段内机器的流量,包含每种服务的流量等。(2004-08-09 22:33:07)
环境 redhat9.0 单块网卡
软件
gdome2-0.7.2-1.i586.rpm
ntop-3.0-0.i386.rpm
下载地址
ftp://ftp.task.gda.pl/vol/d35/ftp.pld-linux.org/dists/1.1/PLD/i586/PLD/RPMS/gdome2-0.7.2-1.i586.rpm
http://puzzle.dl.sourceforge.net/sourceforge/ntop/ntop-3.0-0.i386.rpm

1.下载
cd /tmp
wget -c -q ftp://ftp.task.gda.pl/vol/d35/ftp.pld-linux.org/dists/1.1/PLD/i586/PLD/RPMS/gdome2-0.7.2-1.i586.rpm &
wget -c -q http://puzzle.dl.sourceforge.net/sourceforge/ntop/ntop-3.0-0.i386.rpm &
rpm -ivh gdome2-0.7.2-1.i586.rpm
rpm -ivh ntop-3.0-0.i386.rpm

2.建立ntop.conf
cp /etc/ntop.conf.sample /etc/ntop.conf

3.首次启动(root)
/usr/bin/ntop -P /usr/share/ntop -u ntop -A
#-P [directory]指定.db档存放路径
#-u [user]指定service启动user
#-A 设定admin密码,ntop会内建admin管理者帐号于ntop中

4.查看首次启动所需动作
less /usr/share/doc/ntop-3.0/1STRUN.txt

5.编修/etc/ntop.conf档
vi /etc/ntop.conf
内容如下:
#eth0 是我的单块网卡 lo是回路
--interface eth0,lo
#--no-mac
#由于我只是一台机器所以下面的没加,如果您是在路由器或网关上请把对应的ip段改成自己的
--local-subnets 192.168.10.0/24
#运行端口
--http-server 3000
#数据库存放路径
--db-file-path /usr/share/ntop
#守护进程方式运行
--daemon
#用户名
--user ntop
#默认运行等级
--trace-level 3
#跳过所有错误
--disable-schedyield

6.启动ntop
/etc/init.d/ntop start

7.查看网络流量
http://localhost:3000/

8.停止为
/etc/init.d/ntop stop

http://www.ntop.org/ntop.html为ntop首页 ,里面有相关资料及抓图等
ntop若是架设在hub下时便能监视到网络上所有的封包。但若是架设在switch环境下时,除非是开放SPAN的功能否则只能监测给自己的封包。
本机测试环境为单机,标准安装。未配置插件条件下。如有兴趣可自行研究插件 由于ntop需要监听端口,所以最好用iptables限定某些ip可以浏览 否则可能带来安全性问题.

环境 redhat9.0 单块网卡
软件
gdome2-0.7.2-1.i586.rpm
ntop-3.0-0.i386.rpm
下载地址
ftp://ftp.task.gda.pl/vol/d35/ftp.pld-linux.org/dists/1.1/PLD/i586/PLD/RPMS/gdome2-0.7.2-1.i586.rpm
http://puzzle.dl.sourceforge.net/sourceforge/ntop/ntop-3.0-0.i386.rpm

1.下载
cd /tmp
wget -c -q ftp://ftp.task.gda.pl/vol/d35/ftp.pld-linux.org/dists/1.1/PLD/i586/PLD/RPMS/gdome2-0.7.2-1.i586.rpm &
wget -c -q http://puzzle.dl.sourceforge.net/sourceforge/ntop/ntop-3.0-0.i386.rpm &
rpm -ivh gdome2-0.7.2-1.i586.rpm
rpm -ivh ntop-3.0-0.i386.rpm

2.建立ntop.conf
cp /etc/ntop.conf.sample /etc/ntop.conf

3.首次启动(root)
/usr/bin/ntop -P /usr/share/ntop -u ntop -A
#-P [directory]指定.db档存放路径
#-u [user]指定service启动user
#-A 设定admin密码,ntop会内建admin管理者帐号于ntop中

4.查看首次启动所需动作
less /usr/share/doc/ntop-3.0/1STRUN.txt

5.编修/etc/ntop.conf档
vi /etc/ntop.conf
内容如下:
#eth0 是我的单块网卡 lo是回路
--interface eth0,lo
#--no-mac
#由于我只是一台机器所以下面的没加,如果您是在路由器或网关上请把对应的ip段改成自己的
--local-subnets 192.168.10.0/24
#运行端口
--http-server 3000
#数据库存放路径
--db-file-path /usr/share/ntop
#守护进程方式运行
--daemon
#用户名
--user ntop
#默认运行等级
--trace-level 3
#跳过所有错误
--disable-schedyield

6.启动ntop
/etc/init.d/ntop start

7.查看网络流量
http://localhost:3000/

8.停止为
/etc/init.d/ntop stop

http://www.ntop.org/ntop.html为ntop首页 ,里面有相关资料及抓图等
ntop若是架设在hub下时便能监视到网络上所有的封包。但若是架设在switch环境下时,除非是开放SPAN的功能否则只能监测给自己的封包。
本机测试环境为单机,标准安装。未配置插件条件下。如有兴趣可自行研究插件 由于ntop需要监听端口,所以最好用iptables限定某些ip可以浏览 否则可能带来安全性问题.
忘记root密码:【上一篇】
VSFTPD建立个人FTP:【下一篇】
【相关文章】
  • FreeBSD sntop 网络状况
  • 【随机文章】
  • 系统引导与启动
  • 提高 firefox 页面加载速度
  • 理想主义者——理查德.马修.斯托曼(RMS)
  • 读Charles Petzold文《Does Visual Studio Rot the Mind?》有感
  • 一个个人网页自动化生成系统(5)
  • If (Request.QueryString("Category")
  • 对黑客攻击的新感叹和发生在身边的恐慌
  • FreeBSD连载(77):安全工具
  • 10/100M服务器网卡PILA8470C3
  • RE:对博客园URL的一些调整建议, 二级域名不利于客户端浏览器缓存
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.