]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/wpa/wpa_supplicant/doc/docbook/wpa_supplicant.8
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / wpa / wpa_supplicant / doc / docbook / wpa_supplicant.8
1 .\" This manpage has been automatically generated by docbook2man 
2 .\" from a DocBook document.  This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4 .\" Please send any bug reports, improvements, comments, patches, 
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "WPA_SUPPLICANT" "8" "07 September 2010" "" ""
7
8 .SH NAME
9 wpa_supplicant \- Wi-Fi Protected Access client and IEEE 802.1X supplicant
10 .SH SYNOPSIS
11
12 \fBwpa_supplicant\fR [ \fB-BddfhKLqqtuvW\fR ] [ \fB-i\fIifname\fB\fR ] [ \fB-c\fIconfig file\fB\fR ] [ \fB-D\fIdriver\fB\fR ] [ \fB-P\fIPID_file\fB\fR ] [ \fB-f\fIoutput file\fB\fR ]
13
14 .SH "OVERVIEW"
15 .PP
16 Wireless networks do not require physical access to the network equipment
17 in the same way as wired networks. This makes it easier for unauthorized
18 users to passively monitor a network and capture all transmitted frames.
19 In addition, unauthorized use of the network is much easier. In many cases,
20 this can happen even without user's explicit knowledge since the wireless
21 LAN adapter may have been configured to automatically join any available
22 network.
23 .PP
24 Link-layer encryption can be used to provide a layer of security for
25 wireless networks. The original wireless LAN standard, IEEE 802.11,
26 included a simple encryption mechanism, WEP. However, that proved to
27 be flawed in many areas and network protected with WEP cannot be consider
28 secure. IEEE 802.1X authentication and frequently changed dynamic WEP keys
29 can be used to improve the network security, but even that has inherited
30 security issues due to the use of WEP for encryption. Wi-Fi Protected
31 Access and IEEE 802.11i amendment to the wireless LAN standard introduce
32 a much improvement mechanism for securing wireless networks. IEEE 802.11i
33 enabled networks that are using CCMP (encryption mechanism based on strong
34 cryptographic algorithm AES) can finally be called secure used for
35 applications which require efficient protection against unauthorized
36 access.
37 .PP
38 \fBwpa_supplicant\fR is an implementation of
39 the WPA Supplicant component, i.e., the part that runs in the
40 client stations. It implements WPA key negotiation with a WPA
41 Authenticator and EAP authentication with Authentication
42 Server. In addition, it controls the roaming and IEEE 802.11
43 authentication/association of the wireless LAN driver.
44 .PP
45 \fBwpa_supplicant\fR is designed to be a
46 "daemon" program that runs in the background and acts as the
47 backend component controlling the wireless
48 connection. \fBwpa_supplicant\fR supports separate
49 frontend programs and an example text-based frontend,
50 \fBwpa_cli\fR, is included with
51 wpa_supplicant.
52 .PP
53 Before wpa_supplicant can do its work, the network interface
54 must be available.  That means that the physical device must be
55 present and enabled, and the driver for the device must be
56 loaded. The daemon will exit immediately if the device is not already
57 available.
58 .PP
59 After \fBwpa_supplicant\fR has configured the
60 network device, higher level configuration such as DHCP may
61 proceed.  There are a variety of ways to integrate wpa_supplicant
62 into a machine's networking scripts, a few of which are described
63 in sections below.
64 .PP
65 The following steps are used when associating with an AP
66 using WPA:
67 .TP 0.2i
68 \(bu
69 \fBwpa_supplicant\fR requests the kernel
70 driver to scan neighboring BSSes
71 .TP 0.2i
72 \(bu
73 \fBwpa_supplicant\fR selects a BSS based on
74 its configuration
75 .TP 0.2i
76 \(bu
77 \fBwpa_supplicant\fR requests the kernel
78 driver to associate with the chosen BSS
79 .TP 0.2i
80 \(bu
81 If WPA-EAP: integrated IEEE 802.1X Supplicant
82 completes EAP authentication with the
83 authentication server (proxied by the Authenticator in the
84 AP)
85 .TP 0.2i
86 \(bu
87 If WPA-EAP: master key is received from the IEEE 802.1X
88 Supplicant
89 .TP 0.2i
90 \(bu
91 If WPA-PSK: \fBwpa_supplicant\fR uses PSK
92 as the master session key
93 .TP 0.2i
94 \(bu
95 \fBwpa_supplicant\fR completes WPA 4-Way
96 Handshake and Group Key Handshake with the Authenticator
97 (AP)
98 .TP 0.2i
99 \(bu
100 \fBwpa_supplicant\fR configures encryption
101 keys for unicast and broadcast
102 .TP 0.2i
103 \(bu
104 normal data packets can be transmitted and received
105 .SH "SUPPORTED FEATURES"
106 .PP
107 Supported WPA/IEEE 802.11i features:
108 .TP 0.2i
109 \(bu
110 WPA-PSK ("WPA-Personal")
111 .TP 0.2i
112 \(bu
113 WPA with EAP (e.g., with RADIUS authentication server)
114 ("WPA-Enterprise") Following authentication methods are
115 supported with an integrate IEEE 802.1X Supplicant:
116 .RS
117 .TP 0.2i
118 \(bu
119 EAP-TLS
120 .RE
121 .RS
122 .TP 0.2i
123 \(bu
124 EAP-PEAP/MSCHAPv2 (both PEAPv0 and PEAPv1)
125 .TP 0.2i
126 \(bu
127 EAP-PEAP/TLS (both PEAPv0 and PEAPv1)
128 .TP 0.2i
129 \(bu
130 EAP-PEAP/GTC (both PEAPv0 and PEAPv1)
131 .TP 0.2i
132 \(bu
133 EAP-PEAP/OTP (both PEAPv0 and PEAPv1)
134 .TP 0.2i
135 \(bu
136 EAP-PEAP/MD5-Challenge (both PEAPv0 and PEAPv1)
137 .TP 0.2i
138 \(bu
139 EAP-TTLS/EAP-MD5-Challenge
140 .TP 0.2i
141 \(bu
142 EAP-TTLS/EAP-GTC
143 .TP 0.2i
144 \(bu
145 EAP-TTLS/EAP-OTP
146 .TP 0.2i
147 \(bu
148 EAP-TTLS/EAP-MSCHAPv2
149 .TP 0.2i
150 \(bu
151 EAP-TTLS/EAP-TLS
152 .TP 0.2i
153 \(bu
154 EAP-TTLS/MSCHAPv2
155 .TP 0.2i
156 \(bu
157 EAP-TTLS/MSCHAP
158 .TP 0.2i
159 \(bu
160 EAP-TTLS/PAP
161 .TP 0.2i
162 \(bu
163 EAP-TTLS/CHAP
164 .TP 0.2i
165 \(bu
166 EAP-SIM
167 .TP 0.2i
168 \(bu
169 EAP-AKA
170 .TP 0.2i
171 \(bu
172 EAP-PSK
173 .TP 0.2i
174 \(bu
175 EAP-PAX
176 .TP 0.2i
177 \(bu
178 LEAP (note: requires special support from
179 the driver for IEEE 802.11 authentication)
180 .TP 0.2i
181 \(bu
182 (following methods are supported, but since
183 they do not generate keying material, they cannot be used
184 with WPA or IEEE 802.1X WEP keying)
185 .TP 0.2i
186 \(bu
187 EAP-MD5-Challenge 
188 .TP 0.2i
189 \(bu
190 EAP-MSCHAPv2
191 .TP 0.2i
192 \(bu
193 EAP-GTC
194 .TP 0.2i
195 \(bu
196 EAP-OTP
197 .RE
198 .TP 0.2i
199 \(bu
200 key management for CCMP, TKIP, WEP104, WEP40
201 .TP 0.2i
202 \(bu
203 RSN/WPA2 (IEEE 802.11i)
204 .RS
205 .TP 0.2i
206 \(bu
207 pre-authentication
208 .TP 0.2i
209 \(bu
210 PMKSA caching
211 .RE
212 .SH "AVAILABLE DRIVERS"
213 .PP
214 A summary of available driver backends is below. Support for each
215 of the driver backends is chosen at wpa_supplicant compile time. For a
216 list of supported driver backends that may be used with the -D option on
217 your system, refer to the help output of wpa_supplicant
218 (\fBwpa_supplicant -h\fR).
219 .TP
220 \fBhostap\fR
221 (default) Host AP driver (Intersil Prism2/2.5/3).
222 (this can also be used with Linuxant DriverLoader).
223 .TP
224 \fBhermes\fR
225 Agere Systems Inc. driver (Hermes-I/Hermes-II).
226 .TP
227 \fBmadwifi\fR
228 MADWIFI 802.11 support (Atheros, etc.).
229 .TP
230 \fBatmel\fR
231 ATMEL AT76C5XXx (USB, PCMCIA).
232 .TP
233 \fBwext\fR
234 Linux wireless extensions (generic).
235 .TP
236 \fBndiswrapper\fR
237 Linux ndiswrapper.
238 .TP
239 \fBbroadcom\fR
240 Broadcom wl.o driver.
241 .TP
242 \fBipw\fR
243 Intel ipw2100/2200 driver.
244 .TP
245 \fBwired\fR
246 wpa_supplicant wired Ethernet driver
247 .TP
248 \fBroboswitch\fR
249 wpa_supplicant Broadcom switch driver
250 .TP
251 \fBbsd\fR
252 BSD 802.11 support (Atheros, etc.).
253 .TP
254 \fBndis\fR
255 Windows NDIS driver.
256 .SH "COMMAND LINE OPTIONS"
257 .PP
258 Most command line options have global scope. Some are given per
259 interface, and are only valid if at least one \fB-i\fR option
260 is specified, otherwise they're ignored. Option groups for different
261 interfaces must be separated by \fB-N\fR option.
262 .TP
263 \fB-b br_ifname\fR
264 Optional bridge interface name. (Per interface)
265 .TP
266 \fB-B\fR
267 Run daemon in the background.
268 .TP
269 \fB-c filename\fR
270 Path to configuration file. (Per interface)
271 .TP
272 \fB-C ctrl_interface\fR
273 Path to ctrl_interface socket (Per interface. Only used if
274 \fB-c\fR is not).
275 .TP
276 \fB-i ifname\fR
277 Interface to listen on. Multiple instances of this option can
278 be present, one per interface, separated by \fB-N\fR
279 option (see below).
280 .TP
281 \fB-d\fR
282 Increase debugging verbosity (\fB-dd\fR even
283 more).
284 .TP
285 \fB-D driver\fR
286 Driver to use (can be multiple drivers: nl80211,wext).
287 (Per interface, see the available options below.)
288 .TP
289 \fB-f output file\fR
290 Log output to specified file instead of stdout.
291 .TP
292 \fB-g global ctrl_interface\fR
293 Path to global ctrl_interface socket. If specified, interface
294 definitions may be omitted.
295 .TP
296 \fB-K\fR
297 Include keys (passwords, etc.) in debug output.
298 .TP
299 \fB-t\fR
300 Include timestamp in debug messages.
301 .TP
302 \fB-h\fR
303 Help.  Show a usage message.
304 .TP
305 \fB-L\fR
306 Show license (GPL and BSD).
307 .TP
308 \fB-p\fR
309 Driver parameters. (Per interface)
310 .TP
311 \fB-P PID_file\fR
312 Path to PID file.
313 .TP
314 \fB-q\fR
315 Decrease debugging verbosity (\fB-qq\fR even
316 less).
317 .TP
318 \fB-u\fR
319 Enabled DBus control interface. If enabled, interface
320 definitions may be omitted.
321 .TP
322 \fB-v\fR
323 Show version.
324 .TP
325 \fB-W\fR
326 Wait for a control interface monitor before starting.
327 .TP
328 \fB-N\fR
329 Start describing new interface.
330 .SH "EXAMPLES"
331 .PP
332 In most common cases, \fBwpa_supplicant\fR is
333 started with:
334 .sp
335 .RS
336
337 .nf
338 wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0
339 .fi
340 .RE
341 .PP
342 This makes the process fork into background.
343 .PP
344 The easiest way to debug problems, and to get debug log for
345 bug reports, is to start \fBwpa_supplicant\fR on
346 foreground with debugging enabled:
347 .sp
348 .RS
349
350 .nf
351 wpa_supplicant -c/etc/wpa_supplicant.conf -iwlan0 -d
352 .fi
353 .RE
354 .PP
355 If the specific driver wrapper is not known beforehand, it is
356 possible to specify multiple comma separated driver wrappers on the command
357 line. \fBwpa_supplicant\fR will use the first driver
358 wrapper that is able to initialize the interface.
359 .sp
360 .RS
361
362 .nf
363 wpa_supplicant -Dnl80211,wext -c/etc/wpa_supplicant.conf -iwlan0
364 .fi
365 .RE
366 .PP
367 \fBwpa_supplicant\fR can control multiple
368 interfaces (radios) either by running one process for each
369 interface separately or by running just one process and list of
370 options at command line. Each interface is separated with -N
371 argument. As an example, following command would start
372 wpa_supplicant for two interfaces:
373 .sp
374 .RS
375
376 .nf
377 wpa_supplicant \\
378         -c wpa1.conf -i wlan0 -D hostap -N \\
379         -c wpa2.conf -i ath0 -D madwifi
380 .fi
381 .RE
382 .SH "OS REQUIREMENTS"
383 .PP
384 Current hardware/software requirements:
385 .TP 0.2i
386 \(bu
387 Linux kernel 2.4.x or 2.6.x with Linux Wireless
388 Extensions v15 or newer
389 .TP 0.2i
390 \(bu
391 FreeBSD 6-CURRENT
392 .TP 0.2i
393 \(bu
394 Microsoft Windows with WinPcap (at least WinXP, may work
395 with other versions)
396 .SH "SUPPORTED DRIVERS"
397 .TP
398 \fBHost AP driver for Prism2/2.5/3 (development snapshot/v0.2.x)\fR
399 (http://hostap.epitest.fi/) Driver needs to be set in
400 Managed mode (\fBiwconfig wlan0 mode managed\fR).
401 Please note that station firmware version needs to be 1.7.0 or
402 newer to work in WPA mode.
403 .TP
404 \fBLinuxant DriverLoader\fR
405 (http://www.linuxant.com/driverloader/)
406 with Windows NDIS driver for your wlan card supporting WPA.
407 .TP
408 \fBAgere Systems Inc. Linux Driver\fR
409 (http://www.agere.com/support/drivers/) Please note
410 that the driver interface file (driver_hermes.c) and hardware
411 specific include files are not included in the wpa_supplicant
412 distribution. You will need to copy these from the source
413 package of the Agere driver.
414 .TP
415 \fBmadwifi driver for cards based on Atheros chip set (ar521x)\fR
416 (http://sourceforge.net/projects/madwifi/) Please
417 note that you will need to modify the wpa_supplicant .config
418 file to use the correct path for the madwifi driver root
419 directory (CFLAGS += -I../madwifi/wpa line in example
420 defconfig).
421 .TP
422 \fBATMEL AT76C5XXx driver for USB and PCMCIA cards\fR
423 (http://atmelwlandriver.sourceforge.net/).
424 .TP
425 \fBLinux ndiswrapper\fR
426 (http://ndiswrapper.sourceforge.net/) with Windows
427 NDIS driver.
428 .TP
429 \fBBroadcom wl.o driver\fR
430 This is a generic Linux driver for Broadcom IEEE
431 802.11a/g cards.  However, it is proprietary driver that is
432 not publicly available except for couple of exceptions, mainly
433 Broadcom-based APs/wireless routers that use Linux. The driver
434 binary can be downloaded, e.g., from Linksys support site
435 (http://www.linksys.com/support/gpl.asp) for Linksys
436 WRT54G. The GPL tarball includes cross-compiler and the needed
437 header file, wlioctl.h, for compiling wpa_supplicant.  This
438 driver support in wpa_supplicant is expected to work also with
439 other devices based on Broadcom driver (assuming the driver
440 includes client mode support).
441 .TP
442 \fB Intel ipw2100 driver\fR
443 (http://sourceforge.net/projects/ipw2100/)
444 .TP
445 \fBIntel ipw2200 driver\fR
446 (http://sourceforge.net/projects/ipw2200/)
447 .TP
448 \fBLinux wireless extensions\fR
449 In theory, any driver that supports Linux wireless
450 extensions can be used with IEEE 802.1X (i.e., not WPA) when
451 using ap_scan=0 option in configuration file.
452 .TP
453 \fBWired Ethernet drivers\fR
454 Use ap_scan=0.
455 .TP
456 \fBBSD net80211 layer (e.g., Atheros driver)\fR
457 At the moment, this is for FreeBSD 6-CURRENT branch.
458 .TP
459 \fBWindows NDIS\fR
460 The current Windows port requires WinPcap
461 (http://winpcap.polito.it/).  See README-Windows.txt for more
462 information.
463 .PP
464 wpa_supplicant was designed to be portable for different
465 drivers and operating systems. Hopefully, support for more wlan
466 cards and OSes will be added in the future. See developer.txt for
467 more information about the design of wpa_supplicant and porting to
468 other drivers. One main goal is to add full WPA/WPA2 support to
469 Linux wireless extensions to allow new drivers to be supported
470 without having to implement new driver-specific interface code in
471 wpa_supplicant.
472 .SH "ARCHITECTURE"
473 .PP
474 The
475 \fBwpa_supplicant\fR system consists of the following
476 components:
477 .TP
478 \fB\fIwpa_supplicant.conf\fB \fR
479 the configuration file describing all networks that the
480 user wants the computer to connect to.  
481 .TP
482 \fBwpa_supplicant\fR
483 the program that directly interacts with the
484 network interface.  
485 .TP
486 \fBwpa_cli\fR
487 the
488 client program that provides a high-level interface to the
489 functionality of the daemon.  
490 .TP
491 \fBwpa_passphrase\fR
492 a utility needed to construct
493 \fIwpa_supplicant.conf\fR files that include
494 encrypted passwords.
495 .SH "QUICK START"
496 .PP
497 First, make a configuration file, e.g.
498 \fI/etc/wpa_supplicant.conf\fR, that describes the networks
499 you are interested in.  See \fBwpa_supplicant.conf\fR(5)
500 for details.
501 .PP
502 Once the configuration is ready, you can test whether the
503 configuration works by running \fBwpa_supplicant\fR
504 with following command to start it on foreground with debugging
505 enabled:
506 .sp
507 .RS
508
509 .nf
510 wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d
511     
512 .fi
513 .RE
514 .PP
515 Assuming everything goes fine, you can start using following
516 command to start \fBwpa_supplicant\fR on background
517 without debugging:
518 .sp
519 .RS
520
521 .nf
522 wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B
523     
524 .fi
525 .RE
526 .PP
527 Please note that if you included more than one driver
528 interface in the build time configuration (.config), you may need
529 to specify which interface to use by including -D<driver
530 name> option on the command line.
531 .SH "INTERFACE TO PCMCIA-CS/CARDMRG"
532 .PP
533 For example, following small changes to pcmcia-cs scripts
534 can be used to enable WPA support:
535 .PP
536 Add MODE="Managed" and WPA="y" to the network scheme in
537 \fI/etc/pcmcia/wireless.opts\fR\&.
538 .PP
539 Add the following block to the end of \fBstart\fR
540 action handler in \fI/etc/pcmcia/wireless\fR:
541 .sp
542 .RS
543
544 .nf
545 if [ "$WPA" = "y" -a -x /usr/local/bin/wpa_supplicant ]; then
546     /usr/local/bin/wpa_supplicant -B -c/etc/wpa_supplicant.conf -i$DEVICE
547 fi
548     
549 .fi
550 .RE
551 .PP
552 Add the following block to the end of \fBstop\fR
553 action handler (may need to be separated from other actions) in
554 \fI/etc/pcmcia/wireless\fR:
555 .sp
556 .RS
557
558 .nf
559 if [ "$WPA" = "y" -a -x /usr/local/bin/wpa_supplicant ]; then
560     killall wpa_supplicant
561 fi
562     
563 .fi
564 .RE
565 .PP
566 This will make \fBcardmgr\fR start
567 \fBwpa_supplicant\fR when the card is plugged
568 in.
569 .SH "SEE ALSO"
570 .PP
571 \fBwpa_background\fR(8)
572 \fBwpa_supplicant.conf\fR(5)
573 \fBwpa_cli\fR(8)
574 \fBwpa_passphrase\fR(8)
575 .SH "LEGAL"
576 .PP
577 wpa_supplicant is copyright (c) 2003-2007,
578 Jouni Malinen <j@w1.fi> and
579 contributors.
580 All Rights Reserved.
581 .PP
582 This program is dual-licensed under both the GPL version 2
583 and BSD license. Either license may be used at your option.