NTOP installation in CentOS 7/8
Adding the ntop Packages Repository
In order to add the official ntop package repository do (as root):
curl https://packages.ntop.org/centos-stable/ntop.repo > /etc/yum.repos.d/ntop.repo
Then, perform the following steps, depending on your distribution.
Rocky 8
Open your shell and type:
dnf config-manager --set-enabled powertools
dnf install epel-release
CentOS/RedHat 8
Open your shell and type:
yum install epel-releaserpm -ivh http://rpms.remirepo.net/enterprise/remi-release-8.rpmyum install dnf-plugins-corednf config-manager --set-enabled PowerTools
##you may have to change the key work to powertools in some cases
dnf config-manager --set-enabled remi
CentOS/RedHat 7
Open your shell and type:
yum install epel-release
Installing ntop Packages
Now that the ntop packages repository has been added, packages can be installed as:
yum clean allyum updateyum install pfring-dkms n2disk nprobe ntopng cento ntap
Configure Firewall
Configure firewall to allow traffic to ntopng. If you have not installed firewall in your CentOS 7, then install it using following commands.
#yum install firewalld #systemctl start firewalld #systemctl enable firewalld
Now open the following port to public using firewall-cmd
#firewall-cmd --zone=public --add-port=3000/tcp --permanent #firewall-cmd --zone=public --add-port=6379/tcp --permanent #firewall-cmd --reload
Create configuration files for ntopng
By default, redis and ntopng installed in /usr/local/ folder. We need to create configuration files for ntopng.
# cd /usr/local/etc # mkdir ntopng # cd ntopng
# nano ntopng.start
Put these lines :
–local-network “192.168.0.0” ### 192.168.0.0 is the network ID##
–interface 0
Create ntop config file:
# nano ntopng.pidPut this line :
-G=/var/run/ntopng.pid
ntopng pid location
Restart ntopng/redis
# systemctl restart redis # systemctl restart ntopng
Access the ntop dashboard at 192.168.0.x:3000
Comments
Post a Comment