lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.37k stars 311 forks source link

Iptables dependency missing on RpiOS Lite #425

Open dani-carbonell opened 3 months ago

dani-carbonell commented 3 months ago

Hardware: Raspberry Pi Zero 2 OS: Raspberry Pi OS Lite

Release date: July 4th 2024
System: 32-bit
Kernel version: 6.6
Debian version: 12 (bookworm)
Size: 500MB

I was getting the following error while trying to run simultaneous Access Point and Client Mode on any Raspberry Pi with built-in Wi-Fi

owl@owl2:~ $ wihotspot
pkexec --user root create_ap ap0 wlan0 'OWL2AP' '123456789' --mkconfig /etc/                                                  create_ap.conf --freq-band 2.4
Config options written to '/etc/create_ap.conf'
WARN: brmfmac driver doesn't work properly with virtual interfaces and
      it can cause kernel panic. For this reason we disallow virtual
      interfaces for your adapter.
      For more info: https://github.com/oblique/create_ap/issues/203
WARN: Your adapter does not fully support AP virtual interface, enabling --no-vi                                                  rt
/usr/bin/create_ap: line 1833: iptables: command not found
Command not found or exited with error status

ERROR: '1865' is not the pid of a running create_ap instance.

Segmentation fault

Solution: I installed iptables and the problem got fixed: sudo apt-get install iptables

I know the installation of dependencies doesnt mention Rpi OS but adding that one could save some time to other people trying to run it on a RPi OS Lite