I have kali linux installed on raspberry pi4B. The kali version is 2024.2 and the kernel version is 5.15.44-Re4son-v8l+
I would like to set up hostapd on my device using the raspberry’s built-in wifi adapter. I have tried to set up hostapd using the instructions USB-WiFi/home/AP_Mode/Upgrade_hostapd.md at main · morrownr/USB-WiFi · GitHub
However, it doesn’t seem to work consistently, the hotspot appears, but for some reason it doesn’t work for long. I specifically tested by turning on the raspberry but not running any programs. Access point appears, but after a random time (5-90 minutes) stops receiving connection. That is, the access point is detected by surrounding devices, but cannot connect. This manifests itself in a long connection after entering the wifi password and eventually the connection resets. I am testing the connection from windows 10, android 10 and android 12 computer. Also, the maximum connection speed is only 72 mbps.
What is the best way to set up a hotspot on a raspberry pi4B with kali linux OS?
Perhaps there are more optimized or configured programs to run the access point on kali linux OS?
The main point of all manipulations is to have ssh/vnc access to kali, while the external wifi adapter is busy pentesting the surrounding networks.
In a previous role I did a research project involving Raspberry Pis and one thing I found was crucial, and that is to use a powered USB hub to power it. The voltage from a PC, or those small cheap usb adapters is not enough and you get drop outs and random errors.
So step 1, ensure you are powering it either using a powered hub, or for out and about a 10 mah battery.