Bob Brown
asked on
Linux Wireless - Deny restrict
Hello Everyone
How can I configure Linux wireless on a laptop to Not connect to public Wifi that has no password.?
Some of the commands I have been using need to have a SSID= to point to each Wifi network.
Is it possible to have only one SSID statement to point to all of them, similar to a wild card.
Example SSID=”*.*”
Example of what I currently have that can only point to one Wifi network.
edit /etc/wpa_supplicant.conf
network={
SSID=”CableWifi”
key_mgmt=NONE
disable=1
}
How can I configure Linux wireless on a laptop to Not connect to public Wifi that has no password.?
Some of the commands I have been using need to have a SSID= to point to each Wifi network.
Is it possible to have only one SSID statement to point to all of them, similar to a wild card.
Example SSID=”*.*”
Example of what I currently have that can only point to one Wifi network.
edit /etc/wpa_supplicant.conf
network={
SSID=”CableWifi”
key_mgmt=NONE
disable=1
}
To enforce passwords, change key_mgmt=NONE to something else, and add a psk (password) line.
I am mystified by the disable=1 line in your config. Neither man wpa_supplicant.conf nor man wpa_supplicant on my system document it. Where did you read about that line?
I am mystified by the disable=1 line in your config. Neither man wpa_supplicant.conf nor man wpa_supplicant on my system document it. Where did you read about that line?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You Noci - this was helpful
The network={...} block may be repeated.
There is no wildcard for ssid= and the ssid= field is mandatory.
Then only add blocks for network you do like to connect to.
+
# filter_ssids - SSID-based scan result filtering
# 0 = do not filter scan results (default)
# 1 = only include configured SSIDs in scan results/BSS table
filter_ssids=1
(from the wpa_supplicant.conf example (probably lives in the /usr/share/doc/wpa_suppl*/