Skip to content

list of commands to run and files to edit to enable pi hotspot using raspbian (jessie and stretch) on pi 3

License

Notifications You must be signed in to change notification settings

reichley/raspberry-pi-hotspot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

raspberry-pi-hotspot

The scripts in this directory enable a raspberry pi 3 (running raspbian jessie or stretch) to perform hotspot duties while forwarding client traffic through the ethernet port (or another wifi card/dongle) and out to the interwebs.

Installed software (and their dependencies)

  • hostapd
  • dnsmasq
  • iptables-persistent

Files edited

  • /etc/network/interfaces
  • /etc/dhcpcd.conf
  • /etc/dnsmasq.conf
  • /etc/hostapd/hostapd.conf (created and edited)
  • /etc/default/hostapd
  • /etc/sysctl.conf

3 iptables rules added

sudo iptables -t nat -A  POSTROUTING -o ethX -j MASQUERADE
sudo iptables -A FORWARD -i ethX -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o ethX -j ACCEPT

user input required

  • prompted for hotspot ssid
  • prompted for hotspot password
  • asked which interface to route traffic out to the internet
  • asked which interface to be used as a hotspot
  • asked to reboot

REMEMBER! there are separate scripts for raspbian jessie and stretch

About

list of commands to run and files to edit to enable pi hotspot using raspbian (jessie and stretch) on pi 3

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages