实验环境

centos6.8_x64


实验软件

ntopng-1.1_6932.tgz


软件安装

yum clean all  &&  yum makecache -y

sed -i.bak  's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux 

sed -i.bak 's/https/http/g' /etc/yum.repos.d/epel.repo 

yum install -y   redis libpcap libpcap-devel   libxml2 libxml2-devel  glib2  glib2-devel  GeoIP  GeoIP-devel


tar zxvf /root/ntopng-1.1_6932.tgz

cd /root/ntopng-1.1_6932

 ./configure  &&  gmake -j6 && gmake install


touch  /etc/ntopng.conf       默认无配置文件需要从定义         

cat  /etc/ntopng.conf

-G=/var/tmp/ntopng.gid            制定pid文件目录

--local-networks=192.168.10.0/24     监控网段 192.168.100.0/24,192.168.200.0/24多网段写法 

--interface=eth0           

--interface=eth1              监听本地网卡

--user=nobody             

--http-port=3000             默认端口可以修改


service redis restart  && chkconfig --level 35 redis on 

cp -pv /etc/rc.d/rc.local  /etc/rc.d/rc.local.bak

ln -s /usr/local/bin/ntopng  /bin/

ntopng  /etc/ntopng.conf  &   启动服务

echo "ntopng /etc/ntopng.conf & "  >> /etc/rc.d/rc.local     服务设置开机启动


jobs 

[1]+  Running                 ntopng /etc/ntopng.conf &

killall ntopng  杀死进程


netstat -tuplna | grep LISTEN

tcp      0   0 0.0.0.0:3000     0.0.0.0:*        LISTEN    15797/ntopng     

tcp     0    0 127.0.0.1:6379     0.0.0.0:*    LISTEN     15762/redis-server  


​http://serverip:3000​

ntopng抓包分析_ntopng

admin/admin


ntopng抓包分析_ntopng_02