Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork144
Description
NFStreamer fails to capture any live network traffic on a Debian-based system, despite the network interface being active and traffic clearly present, as verified by tcpdump. The issue persists across different versions of NFStreamer (6.5.3 and 6.5.2), with no flows detected during live capture, although PCAP analysis using NFStreamer works as expected.
System Information
Operating System: Debian (Kernel Version: please specify the exact version)
Python Version: 3.11 (using a virtual environment)
NFStreamer Versions Tested: 6.5.3, 6.5.2
Network Interface: wlp0s20f3 (Wi-Fi interface)
Other Installed Packages:
cffi 1.17.0
psutil 6.0.0
dpkt 1.9.8
numpy 2.0.1
pandas 2.2.2
pip install nfstream
Attempt to capture live network traffic using the following Python script
from nfstream import NFStreamer
interface = "wlp0s20f3"
print(f"Checking network interface: {interface}")
try:
streamer = NFStreamer(source=interface,
promiscuous_mode=True,
n_dissections=0,
statistical_analysis=False)
print(f"Successfully opened interface {interface}.")print("Capturing network data in real-time...")captured_flows = 0for flow in streamer: captured_flows += 1 print(f"Captured Flow: {flow}") if captured_flows >= 10: breakif captured_flows == 0: print("No network data captured. Possible reasons:") print("1. No traffic is present.") print("2. The interface is not correctly selected.") print("3. The Python environment does not have access to the network interface.")except Exception as e:
print(f"Error opening the interface or capturing data: {str(e)}")
this is one out of 20 scrippts I tried :(
Despite active traffic (verified with tcpdump), no flows are detected.
for help I would be more then thankfull - if all works I would even donate - I need this for my bachelorthesis and I spend already sooo much time