Are there any opensource scripts/repos that automate configuring a Raspberry Pi into a Wireless Access Point?
Yes: "pi-ap" a GPL 3.0 repo in Github. I configured a series of bash scripts which automate the configuration of:
...to turn a a Raspberry Pi into a Wireless Access Point. Tested on Pi 3B+ and Pi 4 with both Raspbian Stretch and Buster.
- Fast DNS:
systemd-resolvedconfigured as a caching stub-resolver
- Enhanced Security: MAC Address whitelisting adds another layer of defenses
- No Subnet Calculator Required: Any required IP calculations are done for you
- Firewalling: A basic UFW config provided which also masquerades the eth0 interface in the NAT chain
- No Network Guru Skills Required: Fill in some values in
sudo ./install.shand you can have a working AP quite quickly
- Scripts are modular and all very well documented.
- POE Compatible: Stick a POE Hat on it and you can emplace the AP where a 1.5 meter mains power lead won't reach
You just need a DHCP-enabled Ethernet port in a router or switch to connect the Pi's eth0 port for an uplink.
My neighbour confirmed the solution worked with his BT "Home Hub" (which I understand is very common in the UK; I use a MikroTik router myself). He just connected the Pi via its' eth0 port, connected to the AP's SSID on his phone and started browsing successfully.
"pi-ap" (it seemed an obvious thing to call it ;-> ) is not meant to be a replacement for an Enterprise wireless networking gear, but it suggests several obvious use cases:
- Extend WiFi coverage to dead-zones. Internet won't reach either parts of your home/office or possibly your hammock in your backyard?!?!?
- Could take it with you to a data center if working behind a rack...
- Network Training: This is a great training aid for teaching networking.
I guess there is a lot more that could be done, but this is a pretty good beginning. The repo can be be found at:
If you have an bugs to report or features to report, please do so through the Github modalities. Hope folks find this useful- Terrence