xref: /netbsd-src/share/examples/wpa_supplicant/wpa_supplicant.conf (revision dd1cd64036cc05ef8dd5b51d7fa411dd9cba94e5)
1# $NetBSD: wpa_supplicant.conf,v 1.5 2023/10/10 07:21:00 nia Exp $
2#
3# example wpa_supplicant config
4#
5# please refer to the wpa_supplicant.conf man page
6
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
9ctrl_interface=/var/run/wpa_supplicant/
10
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)
13ctrl_interface_group=wheel
14
15# an unencrypted network
16network={
17	ssid="Freifunk"
18	key_mgmt=NONE
19	priority=10
20}
21
22# simple WPA-PSK, a favourite with conferences and hotel networks
23network={
24	ssid="SomeConference"
25	key_mgmt=WPA-PSK
26	psk="secretKey"
27	priority=20
28}
29
30# a private WPA-PSK that doesn't broadcast its SSID
31network={
32	ssid="HomeSweetHome"
33	key_mgmt=WPA-PSK
34	psk="secretKey"
35	scan_ssid=1
36	priority=30
37}
38
39# WEP .. all the stopping power of a "please keep off the lawn" sign
40# least common denominator "security" so it's formally not open
41network={
42	ssid="TheLawn"
43	key_mgmt=NONE
44	wep_tx_keyidx=0
45	#wep_key0="pleasekeepoff"
46	wep_key0=706c656173656b6565706f6666
47	priority=2
48}
49
50# using eduroam for more examples:
51
52## eduroam with PEAP/MSCHAPv2
53#network={
54#	ssid="eduroam"
55#	scan_ssid=1
56#
57#	# The 'identity' is the username used for authentication.
58#	identity="user1234@your.university.domain"
59#
60#	# add yours
61#	password="myPassword"
62#
63#	# download a fitting CA cert and put the path to it here
64#	ca_cert="/etc/openssl/certs/eduroam-CA-cert.pem"
65#
66#	# where the authentication requests should be routed to
67#	anonymous_identity="anonymous@your.university.domain"
68#
69#	key_mgmt=WPA-EAP
70#	auth_alg=OPEN
71#	eap=PEAP
72#	phase2="auth=MSCHAPV2"
73#
74#	priority=5
75#}
76#
77## eduroam with EAP-TLS
78#network={
79#	ssid="eduroam"
80#	scan_ssid=1
81#
82#	# The 'identity' is the username used for authentication.
83#	identity="user1234@your.university.domain"
84#
85#	client_cert="/home/you/eduroam/user.cert"
86#	private_key="/home/you/eduroam/user.key"
87#	private_key_passwd="s3kr3t"
88#
89#	# download a fitting CA cert and put the path to it here
90#	ca_cert="/etc/openssl/certs/eduroam-CA-cert.pem"
91#
92#	# where the authentication requests should be routed to
93#	anonymous_identity="anonymous@your.university.domain"
94#
95#	key_mgmt=WPA-EAP
96#	auth_alg=OPEN
97#	eap=TLS
98#
99#	priority=4
100#}
101#
102## eduroam with TTLS+PAP
103#network={
104#	ssid="eduroam"
105#	scan_ssid=1
106#
107#	# The 'identity' is the username used for authentication.
108#	identity="user1234@your.university.domain"
109#
110#	# add yours
111#	password="myPassword"
112#
113#	# download a fitting CA cert and put the path to it here
114#	ca_cert="/etc/openssl/certs/eduroam-CA-cert.pem"
115#
116#	# where the authentication requests should be routed to
117#	anonymous_identity="anonymous@your.university.domain"
118#
119#	key_mgmt=WPA-EAP
120#	auth_alg=OPEN
121#	eap=TTLS
122#	phase2="auth=PAP"
123#
124#	priority=3
125#}
126#
127