Ive got a PI set up where I want to switch between acting as an AP and acting like a normal user of a wifi network.
Currently I have to reboot to make this work, but i'm certain there's just a tiny piece of the puzzle I'm overlooking.
In AP mode all traffic is resolved to the internal web browser, and I think its this that gets stuck somewhere.
My current process is:
# switch to AP mode
cp interfaces.fixed /etc/network/interfaces
systemctl enable hostapd.service
systemctl enable dnsmasq.service
systemctl enable bluetooth
systemctl disable wpa_supplicant.service
# switch to client mode
cp interfaces.dhcp /etc/network/interfaces
systemctl disable hostapd.service
systemctl disable dnsmasq.service
systemctl disable bluetooth
systemctl enable wpa_supplicant.service
Logically I think i should be able to swap the [dis|en]able for st[op|art], but if I do this then the Pi gets an IP address, but no traffic escapes.
What am I missing?