Report comment

Hi Roboberry,

congrats on a really good tutorial, followed it to the letter and got my AP plus internet access through eth0 working right away on rpi 3b running raspbian stretch. Great.

Just to follow up on previous discussion with keith: I want a setup in which wlan0 (internal wifi) is always used as AP, and in which either eth0 or wlan1 (usb wifi dongle) is used for internet access. This proved to require even less changes than suggested by keith. I changed the last part of dhcpcd.conf to:
interface wlan0
denyinterface wlan0
nohook wpa_supplicant
static ip_address=192.168.50.10/24
static domain_name_servers=8.8.8.8

and ADDED the following lines at the bottom of iptables-hs (I use stretch only!):
iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE
iptables -A FORWARD -i wlan1 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o wlan1 -j ACCEPT

this results in a setup in which ethernet cable is hot-(un)pluggable ... only thing one should not do is a hot unplug of the usb wifi dongle (wlan1), this appears to mess up wlan0/wlan1 and kills the AP.

Perhaps this is useful info for someone out there ...

thanks again, Knoek