0

I am playing around and want to create a bunch of wifi networks that if you join them, have no internet access or anything. I have seen an Arduino script for this, but not for the raspberry pi, and I'm not sure how to port a script from the Arduino to a RasPi. Is there any way to achieve this? I am also using raspberry pi os lite on a Raspberry Pi Zero W.

Edit: Original Script

3
  • 1
    Welcome to the site. Please edit your post to indicate what you already tried in porting the Arduino scripts to the Raspberry PI, and where you faced problems. That way you can ensure contributors don't suggest solutions you already know won't work. It will also help contributors assess what tools you have available/are comfortable with.
    – AdminBee
    Commented Mar 3, 2021 at 8:12
  • 1
    Does the WiFi networks normally provide internet access and you only want that the RasPi cannot connect to the internet? Are there networks that the RasPi can use to access the internet? How would you manage the latter case?
    – Ingo
    Commented Mar 3, 2021 at 10:36
  • I wanna set it up so that the RasPi can connect to one specific WiFi, but does not need to connect to a network for it to create the bunch of networks. I am not exactly sure how I would manage the latter case.
    – guest0197
    Commented Mar 3, 2021 at 12:48

1 Answer 1

2

The way to achieve this is to get hostapd and create a bunch of ssids in the config files. At the bottom of your /etc/hostapd/hostapd.conf, you would want to put

bss=wlan0_0
ssid=thisisthefirstone

bss=wlan0_1
ssid=thisisthesecondone

and so on for each on ssid that you want. I have not tested the limit of this yet. You can set passwords for it as if you would for a regular hostapd entry.

2
  • And they all are on the air at the same time? Commented Mar 3, 2021 at 14:33
  • 1
    Yes they are all on the air at the same time. That was the point of the original post.
    – guest0197
    Commented Mar 3, 2021 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.