I have following goal:
- if the container starts,
wlan1(usb-wifi) will open up a static ip hotspot.
wlan0resin-wifi credentials are ok, it will connect to the internet using
- Flask server running on the static ip of
wlan1and modifying wlan0 using
nmclifrom the app container.
It would nearly work. What I am missing is:
if there is no internet on
wlan0 (but, deployment was done before hand) and the app loads. I open up a
wlan1 static ip hotspot.
If I try to connect to my wifi hotspot, I will not get an IP assigned by the hotspot.
Mostlikely I need some DNS Server running for hotspot
wlan1. How can I achieve this?
Do I have to install
dnsmasq in the app container and enable the service + place a
.conf file inside
/etc defining DHCP ranges?
interface=wlan1 bind-interfaces dhcp-range=192.168.1.2,192.168.1.50,255.255.255.0,24h
[connection] id=resin-wifi-02 uuid=36060c57-aebd-4ccf-aba4-ef75121b5f77 type=wifi autoconnect=false interface-name=wlan1 permissions= secondaries= [wifi] band=bg mac-address-blacklist= mac-address-randomization=0 mode=ap seen-bssids= ssid=resin-wifi-02 [wifi-security] group= key-mgmt=wpa-psk pairwise= proto= psk=mypw [ipv4] address1=192.168.1.1/24,192.168.1.1 dns-search= method=manual [ipv6] addr-gen-mode=stable-privacy dns-search= method=ignore
Thank you for help