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.
- hostapd
- dnsmasq
- iptables-persistent
- /etc/network/interfaces
- /etc/dhcpcd.conf
- /etc/dnsmasq.conf
- /etc/hostapd/hostapd.conf (created and edited)
- /etc/default/hostapd
- /etc/sysctl.conf
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
- 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