f1linux / pi-ap

Raspberry Pi wireless Access Point: This repo automates the config of hostapd, dnsmasq, dhcpcd & wpa_supplicant to transform a Pi into an AP. Requires: a Pi, Ethernet cable & DHCP-enabled port on a broadband router or a switch connected to this router. For other interesting & practical Pi solutions, my Stack page is: https://raspberrypi.stackexchange.com/users/97613/f1linux
GNU General Public License v3.0
83 stars 17 forks source link
access-point dhcp dhcpcd dnsmasq hostapd linux pi-ap raspberry-pi raspbian router wifi wpa-supplicant

#

# pi-ap: These scripts configure a Raspberry Pi into a wireless Access Point

# Source: https://github.com/f1linux/pi-ap

Version: 01.10.02

# License: GPL 3.0

# Script Author: Terrence Houlahan Linux & Network Engineer

# Contact: houlahan@F1Linux.com

# Linkedin: www.linkedin.com/in/terrencehoulahan

README CONTENTS:

  1. ABOUT "pi-ap"
  2. USE-CASES
  3. COMPATIBILITY
  4. FEATURES
  5. LICENSE
  6. HARDWARE REQUIREMENTS
  7. INSTALLATION
  8. CONNECTING TO AP
  9. TROUBLESHOOTING
  10. USEFUL LINKS: Wiki & YouTube Channel

1. ABOUT "pi-ap":

"pi-ap" is a series of bash scripts that automates configuration of below standardized packages to transform a PI into a wireless Access Point ("AP"):

Other host configuration is performed, but the foregoing are the key packages related to delivering the AP functionality

2. USE-CASES

pi-ap is NOT meant to replace enterprise class AP systems which offer beefier hardware and joined-up management interfaces for building or campus deployments. The obvious use cases for these scripts is:

3. COMPATIBILITY

These scripts have been tested on the following Pi models & OSs and found to work correctly:

4. FEATURES

5. LICENSE

Terrence Houlahan developed "pi-ap" and opensources it under the terms of the GPL 3.0 License that is distributed with my repo source files

6. HARDWARE REQUIREMENTS

Pi Case:

AVOID METAL CASES!!! If you wrap a metal case around your Pi it is going to cause Layer 1 problems by impeding the signal.

Probably worth trying a few different cases of differing materials to see which gives you the best result in respect to signal performance.

NON-POE:

A long Ethernet cable, a Pi and a power supply are minimum requirements.

HOWEVER: Using an AP implies covering an area the antenna(s) of the router cannot itself reach. At such a distance- probably greater than 40 feet- or any distance their is not a mains outlet to power the Pi, using a single Ethernet cable for both Data + Power becomes more interesting.

POE:

POE gear I have had success with- YMMV- with my Pi applications is:

I discuss POE gear and perform a cost vs. benefit analysis at below link for those considering a POE implementation for their pi-ap:

choosing-a-pi4-power-supply

7. INSTALLATION & CONFIGURATION:

Hardware Configuration:

NOTE: You can connect a "*pi-ap" to some intermediate router but you will of course have to configure the routing so the Pi can reach the router with the Internet connection.

Software Configuration:

All the complex configuration is abstracted into a centralized variables file named "variables.sh". This file is sourced by all repo scripts. Edit this file in nano to modify default values and execute install.sh. All the other scripts are chained off of install.sh That it to achieve a working Pi AP

Either using a local or SSH connection to the Pi execute the following commands:

8. CONNECTING TO AP:

After setup completes, to connect to your new Pi Access Point:

You're in.

9. TROUBLESHOOTING

A suggested non-exhausitive list of things to investigate if pi-ap broken:

10. USEFUL LINKS:

Pi-AP YouTube Channel: F1Linux

Pi-AP Wiki: Github

I think that about covers it. Not a lot really to do to configure a Pi into a working Access Point with this pile of scripts...

Terrence Houlahan, Linux & Network Engineer F1Linux.com

Linkedin: Terrence Houlahan