Helpful Materials
Drill Down Deeper: Using ntopng to Zoom In, Filter Out and Go Straight to the Packets
Configuration
Section titled “Configuration”Hardware
Section titled “Hardware”Tracewell TFX2HE with 1 passthrough module, 1 switch module.
Operating System Version
Section titled “Operating System Version”CentOS Linux release 7.7.1908 (Core)NAME="CentOS Linux"VERSION="7 (Core)"ID="centos"ID_LIKE="rhel fedora"VERSION_ID="7"PRETTY_NAME="CentOS Linux 7 (Core)"ANSI_COLOR="0;31"CPE_NAME="cpe:/o:centos:centos:7"HOME_URL="https://www.centos.org/"BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"CENTOS_MANTISBT_PROJECT_VERSION="7"REDHAT_SUPPORT_PRODUCT="centos"REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.7.1908 (Core)CentOS Linux release 7.7.1908 (Core)Kernel Version
Section titled “Kernel Version”Linux ntopdemo.lan 3.10.0-1062.4.1.el7.x86_64 #1 SMP Fri Oct 18 17:15:30 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxInstall n2disk and ntop
Section titled “Install n2disk and ntop”Perform Installation
Section titled “Perform Installation”- Install epel with
yum install -y epel-release - Erase the zeromq3 package with
yum erase zeromq && yum clean all && yum update -y && reboot - Pull ntop repo with
wget http://packages.ntop.org/centos-stable/ntop.repo -O /etc/yum.repos.d/ntop.repo - Install required packages with
yum install pfring-dkms pfring n2disk nprobe ntopng ntopng-data cento pfring-drivers-zc-dkms redis hiredis-devel
Perform Configuration Zero Copy Driver
Section titled “Perform Configuration Zero Copy Driver”-
List interfaces with
pf_ringcfg --list-interfaces -
Configure the driver with
pf_ringcfg --configure-driver i40e -
Set promiscuous mode on the interface in question with
/sbin/ip link set em1 promisc on -
Edit the pfring configuration file with
vim /etc/pf_ring/interfaces.confand add your configuration.MANAGEMENT_INTERFACES="<YOUR_MANAGEMENT_INTERFACE>"CAPTURE_INTERFACES="<YOUR_CAPTURE_INTERFACE>" -
Open the file
etc/ntopng/ntopng.conf. If you do not have a license add--communityto the end -
Configure the firewall to accept connections to ntopng with:
firewall-cmd --zone=public --permanent --add-port=3000/tcp && firewall-cmd --reload -
Enable and start services with:
systemctl enable redis.servicesystemctl enable ntopng.servicesystemctl enable pf_ringsystemctl start redis.servicesystemctl start ntopng.servicesystemctl start pf_ring -
Make sure the services are running correctly with:
systemctl status redis.servicesystemctl status ntopng.servicesystemctl status pf_ring