Install Ntop in centos

#yum install epel-release wget    here
#vi /etc/yum.repos.d/ntop.repo ----------edit

[ntop]
name=ntop packages
baseurl=http://packages.ntop.org/centos/\$releasever/\$basearch/
enabled=1
gpgcheck=1
gpgkey=http://packages.ntop.org/centos/RPM-GPG-KEY-deri
[ntop-noarch]
name=ntop packages
baseurl=http://packages.ntop.org/centos/\$releasever/noarch/
enabled=1
gpgcheck=1
gpgkey=http://packages.ntop.org/centos/RPM-GPG-KEY-deri
#yum install ntopng ntopng-data
# yum install ntop*

# service ntop start

here you may get error like "Starting ntop: service not configured, run ntop manually" then

# ntop --set-admin-password=reallyBadpassword

# service ntop start

now go to localhost:3000

now check your ntop.conf file
#vi /etc/ntop.conf

# limit ntop to listening on a specific interface and port
--http-server 127.0.0.1:3000 --https-server 127.0.0.1:3001

and change the interface

# limit ntop to listening on a specific interface and port
--http-server 0.0.0.0:3000 --https-server 0.0.0.0:3001

now you need to edit your firewall  # vi /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3001 -j ACCEPT

#service iptables restart



Post a Comment

0 Comments