Description
nzyme Version: nzyme-tap version 2.0.0 alpha 15
Describe the bug
After a fresh installation of a Raspberry Pi 4 or 5 with Raspberry Pi OS 12 (bookworm, 64-bit, full version with desktop, 2025-01-16), nzyme-tap is not working as intended. nzyme-node is not installed.
The problem is, that the tap is not working correctly and delivering data to the node as intended.
The problem occurs with a Raspberry Pi 4 and with a Raspberry Pi 5
- both systems were setup exactly in the same way - see Installation description.
- both systems use the same ALFA Network AWUS036ACHM network card.
Please take into accout where issue does not occur.
If you need further information, you can contact me. I can also reinstall and do whatever you need to get enough debugging information. The bug is not hard to reproduce. If you have dev-builds and you want to test them, I will do that.
Problem output
`journalctl -xe`
[...]
Jan 16 19:54:46 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:46][dot11::capture] Enabling interface [wlan1] ...
Jan 16 19:54:46 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:46][dot11::capture] Device [wlan1] is now up.
Jan 16 19:54:46 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: entered promiscuous mode
Jan 16 19:54:46 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: left promiscuous mode
Jan 16 19:54:46 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:46][dot11::capture] Could not get PCAP capture handle on [wlan1]: libpcap error: That device is not up
Jan 16 19:54:46 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:46][nzyme_tap] WiFi capture [wlan1] disconnected. Retrying in 5 seconds.
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:51][dot11::capture] Starting WiFi capture on [wlan1]
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:51][dot11::capture] Temporarily disabling interface [wlan1] ...
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:51][dot11::capture] Device [wlan1] is now down.
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:51][dot11::capture] Enabling monitor mode on interface [wlan1] ...
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:51][dot11::capture] Device [wlan1] is now in monitor mode.
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:51][dot11::capture] Enabling interface [wlan1] ...
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:51][dot11::capture] Device [wlan1] is now up.
Jan 16 19:54:51 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: entered promiscuous mode
Jan 16 19:54:51 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: left promiscuous mode
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:51][dot11::capture] Could not get PCAP capture handle on [wlan1]: libpcap error: That device is not up
Jan 16 19:54:51 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:51][nzyme_tap] WiFi capture [wlan1] disconnected. Retrying in 5 seconds.
Jan 16 19:54:53 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:53][bluetooth::tables::bluetooth_table] Could not submit Bluetooth devices report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:54:53 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:53][ethernet::tables::tcp_table] Could not submit TCP sessions report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:54:53 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:53][ethernet::tables::udp_table] Could not submit UDP datagrams report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:54:53 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:53][ethernet::tables::dns_table] Could not submit DNS report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:54:53 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:53][ethernet::tables::ssh_table] Could not submit SSH sessions report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:54:53 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:53][ethernet::tables::socks_table] Could not submit SOCKS tunnels report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:54:56 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:56][dot11::capture] Starting WiFi capture on [wlan1]
Jan 16 19:54:56 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:56][dot11::capture] Temporarily disabling interface [wlan1] ...
Jan 16 19:54:56 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:56][dot11::capture] Device [wlan1] is now down.
Jan 16 19:54:56 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:56][dot11::capture] Enabling monitor mode on interface [wlan1] ...
Jan 16 19:54:56 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:56][dot11::capture] Device [wlan1] is now in monitor mode.
Jan 16 19:54:56 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:56][dot11::capture] Enabling interface [wlan1] ...
Jan 16 19:54:56 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:54:56][dot11::capture] Device [wlan1] is now up.
Jan 16 19:54:56 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: entered promiscuous mode
Jan 16 19:54:56 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: left promiscuous mode
Jan 16 19:54:57 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:57][dot11::capture] Could not get PCAP capture handle on [wlan1]: libpcap error: That device is not up
Jan 16 19:54:57 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:54:57][nzyme_tap] WiFi capture [wlan1] disconnected. Retrying in 5 seconds.
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:02][dot11::capture] Starting WiFi capture on [wlan1]
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:02][dot11::capture] Temporarily disabling interface [wlan1] ...
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:02][dot11::capture] Device [wlan1] is now down.
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:02][dot11::capture] Enabling monitor mode on interface [wlan1] ...
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:02][dot11::capture] Device [wlan1] is now in monitor mode.
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:02][dot11::capture] Enabling interface [wlan1] ...
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:02][dot11::capture] Device [wlan1] is now up.
Jan 16 19:55:02 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: entered promiscuous mode
Jan 16 19:55:02 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: left promiscuous mode
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:02][dot11::capture] Could not get PCAP capture handle on [wlan1]: libpcap error: That device is not up
Jan 16 19:55:02 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:02][nzyme_tap] WiFi capture [wlan1] disconnected. Retrying in 5 seconds.
Jan 16 19:55:05 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:05][bluetooth::tables::bluetooth_table] Could not submit Bluetooth devices report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:55:05 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:05][ethernet::tables::tcp_table] Could not submit TCP sessions report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:55:05 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:05][ethernet::tables::udp_table] Could not submit UDP datagrams report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:55:05 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:05][ethernet::tables::dns_table] Could not submit DNS report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:55:05 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:05][ethernet::tables::ssh_table] Could not submit SSH sessions report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:55:06 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:06][ethernet::tables::socks_table] Could not submit SOCKS tunnels report: Could not send report. Received response code [HTTP 401 Unauthorized].
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:07][dot11::capture] Starting WiFi capture on [wlan1]
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:07][dot11::capture] Temporarily disabling interface [wlan1] ...
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:07][dot11::capture] Device [wlan1] is now down.
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:07][dot11::capture] Enabling monitor mode on interface [wlan1] ...
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:07][dot11::capture] Device [wlan1] is now in monitor mode.
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:07][dot11::capture] Enabling interface [wlan1] ...
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [INFO][2025-01-16 19:55:07][dot11::capture] Device [wlan1] is now up.
Jan 16 19:55:07 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: entered promiscuous mode
Jan 16 19:55:07 Verdandi kernel: mt76x0u 3-2:1.0 wlan1: left promiscuous mode
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:07][dot11::capture] Could not get PCAP capture handle on [wlan1]: libpcap error: That device is not up
Jan 16 19:55:07 Verdandi nzyme-tap[2037]: [ERROR][2025-01-16 19:55:07][nzyme_tap] WiFi capture [wlan1] disconnected. Retrying in 5 seconds.
To Reproduce
Steps to reproduce the behavior:
- Install a fresh Raspberry Pi 5 or 4 with the latest Raspberry Pi OS 12 64-bit
- Fully upgrade the Raspberry Pi OS
- Install nzyme-tap
- Error occurs
Installation description #
In general I followed the nzyme-tap installation instructions.
The Installation instructions were executed via ssh.
-
First I installed a fresh SD card with Raspberry Pi OS 12 and updated the system.
sudo apt update sudo apt full-upgrade sudo reboot
-
I connected my ALFA Network AWUS036ACHM - it is visible as
wlan1
. -
Then I installed the latest nzyme-tap version 2.0.0 alpha 15.
mkdir Installation cd Installation wget https://github.com/nzymedefense/nzyme/releases/download/2.0.0-alpha.15/nzyme-tap_rpios-12bookworm-arm64-2.0.0-alpha.15.deb sudo dpkg -i nzyme-tap_rpios-12bookworm-arm64-2.0.0-alpha.15.deb
-
I overtook my nzyme-tap.conf configuration file to
/etc/nzyme/nzyme-tap.conf
.nzyme-tap.conf (with faked leader_secret)
[general] leader_secret = "my-secret" leader_uri = "https://192.168.2.146:22900/" accept_insecure_certs = true #[ethernet_interfaces.enp6s0] #active = true #networks = [ # { cidr = "192.168.0.0/24", dns_servers = [ "192.168.0.1:53" ], injection_interface = "enp6s0" } #] # ALFA Network AWUS036ACHM [wifi_interfaces.wlan1] active = true channel_width_hopping_mode = "full" # Learn more: https://go.nzyme.org/wifi-hopping-channel-width-mode channels_2g = [4, 5, 6, 7, 8, 9, 10, 11, 12] channels_5g = [36, 40, 44, 48, 52, 56, 60, 64] channels_6g = [] # TP-Link TL-WN722N #[wifi_interfaces.wlp1s0u1u1] #active = true #channel_width_hopping_mode = "full" # Learn more: https://go.nzyme.org/wifi-hopping-channel-width-mode #channels_2g = [1, 2, 3, 13] #channels_5g = [] # [68, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165, 169, 177] #channels_6g = [] #[bluetooth_interfaces.hci0] #active = true #bt_classic_enabled = true #bt_le_enabled = true #discovery_period_seconds = 15 #dbus_method_call_timeout_seconds = 2 [performance] ethernet_brokers = 1 wifi_brokers = 1 wifi_broker_buffer_capacity = 65535 ethernet_broker_buffer_capacity = 65535 bluetooth_devices_pipeline_size = 1024 [protocols.tcp] pipeline_size = 16384 reassembly_buffer_size = 1048576 session_timeout_seconds = 43200 [protocols.udp] pipeline_size = 16384 [protocols.dns] pipeline_size = 4096 entropy_zscore_threshold = 3.0 [protocols.ssh] pipeline_size = 1024 [protocols.socks] pipeline_size = 1024 [protocols.arp] pipeline_size = 1024 [protocols.dhcpv4] pipeline_size = 1024 [misc] training_period_minutes = 5 context_mac_ip_retention_hours = 36 context_mac_hostname_retention_hours = 36
-
Then I enabled and started the systemd service.
sudo systemctl enable nzyme-tap sudo systemctl start nzyme-tap
Expected behavior
That the nzyme-tap simply does what it should.
Desktop (please complete the following information):
The problem occurs with nzyme-tap, so it is not related to the web interface.
Additional context
Where the issue does not occur #
I have a second Raspberry Pi 5 (where I started working with) that has an nzyme-node and an nzyme-tap installed and running on one system.
- Same Raspberry Pi 5 hardware.
- Same ALFA Network AWUS036ACHM network card.
- The only difference seems to be the previously setup and running nzyme-node.
Workaround attempts - did not help
-
I tried to reboot several times.
-
I tried to install nzyme-node package in addtion (without fully configuring and running it)
sudo apt install -y openjdk-17-jre-headless postgresql-15