Please be advised that this is a security issue not using any wireless encryption.
You are at the mercy of the host network.
That's one of the reasons why those secure VPN services are so popular. Apart from having to trust that VPN provider, it's a good idea to use some form of VPN on these 'dodgy' open wireless networks. If you don't trust any of the commercial VPN providers you could setup your own VPN service on a hosted server and use that to protect your data from any prying eyes.And anyone sniffing it. I wouldn't log into anywhere that needed a password.
What is the difference between "DHCP" and "SYNCDHCP"?
Yes but use the append option for sysrc(8)sysrc ifconfig_wlan0="SYNCDHCP" will add a code line?
sysrc ifconfig_wlan0+="SYNCDHCP"
network={
ssid="HOME1"
scan_ssid=1
psk="HOME1_PASS"
key_mgmt=WPA-PSK
}
network={
ssid="HOME2"
scan_ssid=1
psk="HOME2_PASSWORD"
key_mgmt=WPA-PSK
}
network={
ssid="STARBUCKS"
scan_ssid=1
key_mgmt=NONE
}
wpa_cli
to switch between networks. wpa_cli list_networks
wpa_cli -i wlan0 select_network 2
Try it with the interface:wpa_cli list_networks
Failed to connect to non-global ctrl_ifname: (nil) error: No error: 0
wpa_cli -i wlan0 list_networks