Skip to content

ntopng shows no traffic after upgrade; tcpdump also affected #993

@hoomanv

Description

@hoomanv

Summary

ntopng worked fine before the upgrade and was able to monitor traffic on all interfaces listed below:

# pf_ringcfg --list-interfaces
Name: ens32                Driver: e1000      RSS:     1    [Linux Driver]
Name: ens34                Driver: e1000      RSS:     1    [Linux Driver]
Name: ens35                Driver: e1000      RSS:     1    [Linux Driver]
Name: ppp0                 Driver: ppp        RSS: Unknown  [Linux Driver]
Name: ppp1                 Driver: ppp        RSS: Unknown  [Linux Driver]
Name: tun0                 Driver: tun        RSS: Unknown  [Linux Driver]
Name: tun1                 Driver: tun        RSS: Unknown  [Linux Driver]

After upgrading ntopng, PF_RING, and the kernel, ntopng no longer sees traffic on any interface, including both Ethernet and tunnel interfaces.

Additional Observations

  • tcpdump also fails to capture on ens32, but it can capture on ppp0, tun0, and even on enp2s0 (the altname of ens32):
# ip link show ens32
2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP mode DEFAULT group default qlen 1000
    link/ether 00:0c:29:02:07:f1 brd ff:ff:ff:ff:ff:ff
    altname enp2s0
  • Both versions of tcpdump (/usr/sbin/tcpdump and the one from PF_RING at /usr/local/bin/tcpdump) and pf_ringcfg report the same interface names and status:
[root@kappa ~]# tcpdump -D
1.ens32 [Up, Running, Connected]
2.ens34 [Up, Running, Connected]
3.ens35 [Up, Running, Connected]
4.ppp0 [Up, Running]
5.ppp1 [Up, Running]
6.tun0 [Up, Running, Connected]
8.tun1 [Up, Running, Connected]
  • However, /usr/sbin/tcpdump (the system version) is now linked against PF_RING’s libpcap after installing PF_RING:
# ldd /usr/sbin/tcpdump | grep pcap
        libpcap.so.1 => /usr/local/lib/libpcap.so.1 (0x00007fda4fd2e000)

After removing PF_RING, the system's tcpdump reverts to using the default system libpcap, and capturing on ens32 works again:

# ldd /usr/sbin/tcpdump | grep pcap
        libpcap.so.1 => /lib64/libpcap.so.1 (0x00007f7d915f7000)

Version Details

Before upgrade:

  • ntopng: 6.4.250515-25785.x86_64
  • pfring: 9.0.0-9896.x86_64
  • kernel: 5.14.0-554.el9.x86_64

After upgrade:

  • ntopng: 6.4.250708-26098.x86_64
  • pfring: 9.0.0-10070.x86_64
  • kernel: 5.14.0-572.el9.x86_64

System Info

  • OS: CentOS Stream 9
  • No ZC (zero-copy) drivers installed
  • Interfaces use the standard e1000 driver

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions