Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

Networking and servers • Re: "Fake" WiFi Captive Portal on Zero W?

$
0
0
I'm running the full version with a desktop environment (32 bit debian bookworm with raspberry pi desktop). From what I read, NetworkManager cannot create a captive portal. The only thing I need is to show a captive portal page on another device. It does not matter what is on the captive portal page - it can even be a blank page. Thanks for the pointer though!
Here's a step-by-step walkthrough to create a basic captive portal splash page. The only requirement is a wireless interface (for example, wlan0) hosting an AP. You can use nmcli, RaspAP or whatever you prefer for the latter.
I looked at this guide before, and I tried it again just to be sure:

1. I completely re-imaged my raspberry pi (now 32 bit debian bookworm without a desktop environment), and
2. I reinstalled raspAP.
3. After finishing the installer (picked all default settings), there was no prompt to restart, so I restarted manually.
4. Upon restarting, there were errors starting up hostapd.service. (in

Code:

systemctl status hostapd
, the error was

Code:

hostpad.service: Can't open PID file /run/hostapd.pid (yet?) after start: No such file or directory
. So I manually restarted with

Code:

sudo systemctl restart hostapd
. After this, the service is up and running. I checked and the file

Code:

/run/hostapd.pid
just has the content

Code:

954
. At this point there is still no WiFi access point.

Previously when I tried this, I was able to get an access point. However, when I try to connect to it (default password), my devices would refuse to connect. They would not give any sort of error message, they would simply give up and connect to another available WiFi access point.

What am I doing wrong?

Statistics: Posted by DreamlessQuicksand — Mon Oct 28, 2024 4:11 am



Viewing all articles
Browse latest Browse all 3556

Trending Articles