| @@ -1,40 +1,49 @@ | | | @@ -1,40 +1,49 @@ |
1 | # $NetBSD: wpa_supplicant.conf,v 1.4 2023/09/29 14:05:28 gutteridge Exp $ | | 1 | # $NetBSD: wpa_supplicant.conf,v 1.5 2023/10/10 07:21:00 nia Exp $ |
2 | # | | 2 | # |
3 | # example wpa_supplicant config | | 3 | # example wpa_supplicant config |
4 | # | | 4 | # |
5 | # please refer to the wpa_supplicant.conf man page | | 5 | # please refer to the wpa_supplicant.conf man page |
6 | | | 6 | |
7 | # wpa_cli and dhcpcd won't work well if you have no ctrl_interface set | | 7 | # wpa_cli and dhcpcd won't work well if you have no ctrl_interface set |
8 | # the value must be a directory, the sockets will be named after the interfaces | | 8 | # the value must be a directory, the sockets will be named after the interfaces |
9 | ctrl_interface=/var/run/wpa_supplicant/ | | 9 | ctrl_interface=/var/run/wpa_supplicant/ |
10 | | | 10 | |
11 | # if non-root should be allowed to send wpa_supplicant commands via wpa_cli | | 11 | # if non-root should be allowed to send wpa_supplicant commands via wpa_cli |
12 | # name a group whose members will be Allowed(tm) | | 12 | # name a group whose members will be Allowed(tm) |
13 | ctrl_interface_group=wheel | | 13 | ctrl_interface_group=wheel |
14 | | | 14 | |
| | | 15 | # an unencrypted network |
| | | 16 | network={ |
| | | 17 | ssid="Freifunk" |
| | | 18 | key_mgmt=NONE |
| | | 19 | priority=10 |
| | | 20 | } |
| | | 21 | |
15 | # simple WPA-PSK, a favourite with conferences and hotel networks | | 22 | # simple WPA-PSK, a favourite with conferences and hotel networks |
16 | network={ | | 23 | network={ |
17 | ssid="SomeConference" | | 24 | ssid="SomeConference" |
18 | key_mgmt=WPA-PSK | | 25 | key_mgmt=WPA-PSK |
19 | psk="secretKey" | | 26 | psk="secretKey" |
| | | 27 | priority=20 |
20 | } | | 28 | } |
21 | | | 29 | |
22 | # a private WPA-PSK that doesn't broadcast its SSID | | 30 | # a private WPA-PSK that doesn't broadcast its SSID |
23 | network={ | | 31 | network={ |
24 | ssid="HomeSweetHome" | | 32 | ssid="HomeSweetHome" |
25 | key_mgmt=WPA-PSK | | 33 | key_mgmt=WPA-PSK |
26 | psk="secretKey" | | 34 | psk="secretKey" |
27 | scan_ssid=1 | | 35 | scan_ssid=1 |
| | | 36 | priority=30 |
28 | } | | 37 | } |
29 | | | 38 | |
30 | # WEP .. all the stopping power of a "please keep off the lawn" sign | | 39 | # WEP .. all the stopping power of a "please keep off the lawn" sign |
31 | # least common denominator "security" so it's formally not open | | 40 | # least common denominator "security" so it's formally not open |
32 | network={ | | 41 | network={ |
33 | ssid="TheLawn" | | 42 | ssid="TheLawn" |
34 | key_mgmt=NONE | | 43 | key_mgmt=NONE |
35 | wep_tx_keyidx=0 | | 44 | wep_tx_keyidx=0 |
36 | #wep_key0="pleasekeepoff" | | 45 | #wep_key0="pleasekeepoff" |
37 | wep_key0=706c656173656b6565706f6666 | | 46 | wep_key0=706c656173656b6565706f6666 |
38 | priority=2 | | 47 | priority=2 |
39 | } | | 48 | } |
40 | | | 49 | |