~ubuntu-branches/ubuntu/vivid/wpasupplicant/vivid

« back to all changes in this revision

Viewing changes to wpa_supplicant/doc/docbook/wpa_supplicant.8

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2008-03-12 20:03:04 UTC
  • mfrom: (1.1.10 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080312200304-4331y9wj46pdd34z
Tags: 0.6.3-1
* New upstream release.
* Drop patches applied upstream:
  - debian/patches/30_wpa_gui_qt4_eventhistoryui_rework.patch
  - debian/patches/31_wpa_gui_qt4_eventhistory_always_scrollbar.patch
  - debian/patches/32_wpa_gui_qt4_eventhistory_scroll_with_events.patch
  - debian/patches/40_dbus_ssid_data.patch
* Tidy up the clean target of debian/rules. Now that the madwifi headers are
  handled differently we no longer need to do any cleanup.
* Fix formatting error in debian/ifupdown/wpa_action.8 to make lintian
  quieter.
* Add patch to fix formatting errors in manpages build from sgml source. Use
  <emphasis> tags to hightlight keywords instead of surrounding them in
  strong quotes.
  - debian/patches/41_manpage_format_fixes.patch
* wpasupplicant binary package no longer suggests pcscd, guessnet, iproute
  or wireless-tools, nor does it recommend dhcp3-client. These are not
  needed.
* Add debian/patches/10_silence_siocsiwauth_icotl_failure.patch to disable
  ioctl failure messages that occur under normal conditions.
* Cherry pick two upstream git commits concerning the dbus interface:
  - debian/patches/11_avoid_dbus_version_namespace.patch
  - debian/patches/12_fix_potential_use_after_free.patch
* Add debian/patches/42_manpage_explain_available_drivers.patch to explain
  that not all of the driver backends are available in the provided
  wpa_supplicant binary, and that the canonical list of supported driver
  backends can be retrieved from the wpa_supplicant -h (help) output.
  (Closes: #466910)
* Add debian/patches/20_wpa_gui_qt4_disable_link_prl.patch to remove
  link_prl CONFIG compile flag added by qmake-qt4 >= 4.3.4-2 to avoid excess
  linking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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" "22 February 2008" "" ""
 
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 have 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
The available drivers to specify with the -D option are:
 
215
.TP
 
216
\fBhostap\fR
 
217
(default) Host AP driver (Intersil Prism2/2.5/3).
 
218
(this can also be used with Linuxant DriverLoader).
 
219
.TP
 
220
\fBhermes\fR
 
221
Agere Systems Inc. driver (Hermes-I/Hermes-II).
 
222
.TP
 
223
\fBmadwifi\fR
 
224
MADWIFI 802.11 support (Atheros, etc.).
 
225
.TP
 
226
\fBatmel\fR
 
227
ATMEL AT76C5XXx (USB, PCMCIA).
 
228
.TP
 
229
\fBwext\fR
 
230
Linux wireless extensions (generic).
 
231
.TP
 
232
\fBndiswrapper\fR
 
233
Linux ndiswrapper.
 
234
.TP
 
235
\fBbroadcom\fR
 
236
Broadcom wl.o driver.
 
237
.TP
 
238
\fBipw\fR
 
239
Intel ipw2100/2200 driver.
 
240
.TP
 
241
\fBwired\fR
 
242
wpa_supplicant wired Ethernet driver
 
243
.TP
 
244
\fBbsd\fR
 
245
BSD 802.11 support (Atheros, etc.).
 
246
.TP
 
247
\fBndis\fR
 
248
Windows NDIS driver.
 
249
.SH "COMMAND LINE OPTIONS"
 
250
.TP
 
251
\fB-b br_ifname\fR
 
252
Optional bridge interface name.
 
253
.TP
 
254
\fB-B\fR
 
255
Run daemon in the background.
 
256
.TP
 
257
\fB-c filename\fR
 
258
Path to configuration file.
 
259
.TP
 
260
\fB-C ctrl_interface\fR
 
261
Path to ctrl_interface socket (only used if -c is not).
 
262
.TP
 
263
\fB-i ifname\fR
 
264
Interface to listen on.
 
265
.TP
 
266
\fB-d\fR
 
267
Increase debugging verbosity (-dd even more).
 
268
.TP
 
269
\fB-D driver\fR
 
270
Driver to use.  See the available options below.
 
271
.TP
 
272
\fB-f output file\fR
 
273
Log output to specified file instead of stdout.
 
274
.TP
 
275
\fB-g global ctrl_interface\fR
 
276
Path to global ctrl_interface socket.
 
277
.TP
 
278
\fB-K\fR
 
279
Include keys (passwords, etc.) in debug output.
 
280
.TP
 
281
\fB-t\fR
 
282
Include timestamp in debug messages.
 
283
.TP
 
284
\fB-h\fR
 
285
Help.  Show a usage message.
 
286
.TP
 
287
\fB-L\fR
 
288
Show license (GPL and BSD).
 
289
.TP
 
290
\fB-p\fR
 
291
Driver parameters.
 
292
.TP
 
293
\fB-P PID_file\fR
 
294
Path to PID file.
 
295
.TP
 
296
\fB-q\fR
 
297
Decrease debugging verbosity (-qq even less).
 
298
.TP
 
299
\fB-u\fR
 
300
Enabled DBus control interface.
 
301
.TP
 
302
\fB-v\fR
 
303
Show version.
 
304
.TP
 
305
\fB-W\fR
 
306
Wait for a control interface monitor before starting.
 
307
.TP
 
308
\fB-N\fR
 
309
Start describing new interface.
 
310
.SH "EXAMPLES"
 
311
.PP
 
312
In most common cases, \fBwpa_supplicant\fR is
 
313
started with:
 
314
.sp
 
315
.RS
 
316
 
 
317
.nf
 
318
wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0
 
319
.fi
 
320
.RE
 
321
.PP
 
322
This makes the process fork into background.
 
323
.PP
 
324
The easiest way to debug problems, and to get debug log for
 
325
bug reports, is to start \fBwpa_supplicant\fR on
 
326
foreground with debugging enabled:
 
327
.sp
 
328
.RS
 
329
 
 
330
.nf
 
331
wpa_supplicant -c/etc/wpa_supplicant.conf -iwlan0 -d
 
332
.fi
 
333
.RE
 
334
.PP
 
335
\fBwpa_supplicant\fR can control multiple
 
336
interfaces (radios) either by running one process for each
 
337
interface separately or by running just one process and list of
 
338
options at command line. Each interface is separated with -N
 
339
argument. As an example, following command would start
 
340
wpa_supplicant for two interfaces:
 
341
.sp
 
342
.RS
 
343
 
 
344
.nf
 
345
wpa_supplicant \\
 
346
        -c wpa1.conf -i wlan0 -D hostap -N \\
 
347
        -c wpa2.conf -i ath0 -D madwifi
 
348
.fi
 
349
.RE
 
350
.SH "OS REQUIREMENTS"
 
351
.PP
 
352
Current hardware/software requirements:
 
353
.TP 0.2i
 
354
\(bu
 
355
Linux kernel 2.4.x or 2.6.x with Linux Wireless
 
356
Extensions v15 or newer
 
357
.TP 0.2i
 
358
\(bu
 
359
FreeBSD 6-CURRENT
 
360
.TP 0.2i
 
361
\(bu
 
362
Microsoft Windows with WinPcap (at least WinXP, may work
 
363
with other versions)
 
364
.SH "SUPPORTED DRIVERS"
 
365
.TP
 
366
\fBHost AP driver for Prism2/2.5/3 (development snapshot/v0.2.x)\fR
 
367
(http://hostap.epitest.fi/) Driver needs to be set in
 
368
Managed mode ('iwconfig wlan0 mode managed').  Please note
 
369
that station firmware version needs to be 1.7.0 or newer to
 
370
work in WPA mode.
 
371
.TP
 
372
\fBLinuxant DriverLoader\fR
 
373
(http://www.linuxant.com/driverloader/)
 
374
with Windows NDIS driver for your wlan card supporting WPA.
 
375
.TP
 
376
\fBAgere Systems Inc. Linux Driver\fR
 
377
(http://www.agere.com/support/drivers/) Please note
 
378
that the driver interface file (driver_hermes.c) and hardware
 
379
specific include files are not included in the wpa_supplicant
 
380
distribution. You will need to copy these from the source
 
381
package of the Agere driver.
 
382
.TP
 
383
\fBmadwifi driver for cards based on Atheros chip set (ar521x)\fR
 
384
(http://sourceforge.net/projects/madwifi/) Please
 
385
note that you will need to modify the wpa_supplicant .config
 
386
file to use the correct path for the madwifi driver root
 
387
directory (CFLAGS += -I../madwifi/wpa line in example
 
388
defconfig).
 
389
.TP
 
390
\fBATMEL AT76C5XXx driver for USB and PCMCIA cards\fR
 
391
(http://atmelwlandriver.sourceforge.net/).
 
392
.TP
 
393
\fBLinux ndiswrapper\fR
 
394
(http://ndiswrapper.sourceforge.net/) with Windows
 
395
NDIS driver.
 
396
.TP
 
397
\fBBroadcom wl.o driver\fR
 
398
This is a generic Linux driver for Broadcom IEEE
 
399
802.11a/g cards.  However, it is proprietary driver that is
 
400
not publicly available except for couple of exceptions, mainly
 
401
Broadcom-based APs/wireless routers that use Linux. The driver
 
402
binary can be downloaded, e.g., from Linksys support site
 
403
(http://www.linksys.com/support/gpl.asp) for Linksys
 
404
WRT54G. The GPL tarball includes cross-compiler and the needed
 
405
header file, wlioctl.h, for compiling wpa_supplicant.  This
 
406
driver support in wpa_supplicant is expected to work also with
 
407
other devices based on Broadcom driver (assuming the driver
 
408
includes client mode support).
 
409
.TP
 
410
\fB Intel ipw2100 driver\fR
 
411
(http://sourceforge.net/projects/ipw2100/)
 
412
.TP
 
413
\fBIntel ipw2200 driver\fR
 
414
(http://sourceforge.net/projects/ipw2200/)
 
415
.TP
 
416
\fBLinux wireless extensions\fR
 
417
In theory, any driver that supports Linux wireless
 
418
extensions can be used with IEEE 802.1X (i.e., not WPA) when
 
419
using ap_scan=0 option in configuration file.
 
420
.TP
 
421
\fBWired Ethernet drivers\fR
 
422
Use ap_scan=0.
 
423
.TP
 
424
\fBBSD net80211 layer (e.g., Atheros driver)\fR
 
425
At the moment, this is for FreeBSD 6-CURRENT branch.
 
426
.TP
 
427
\fBWindows NDIS\fR
 
428
The current Windows port requires WinPcap
 
429
(http://winpcap.polito.it/).  See README-Windows.txt for more
 
430
information.
 
431
.PP
 
432
wpa_supplicant was designed to be portable for different
 
433
drivers and operating systems. Hopefully, support for more wlan
 
434
cards and OSes will be added in the future. See developer.txt for
 
435
more information about the design of wpa_supplicant and porting to
 
436
other drivers. One main goal is to add full WPA/WPA2 support to
 
437
Linux wireless extensions to allow new drivers to be supported
 
438
without having to implement new driver-specific interface code in
 
439
wpa_supplicant.
 
440
.SH "ARCHITECTURE"
 
441
.PP
 
442
The
 
443
\fBwpa_supplicant\fR system consists of the following
 
444
components:
 
445
.TP
 
446
\fB\fIwpa_supplicant.conf\fB \fR
 
447
the configuration file describing all networks that the
 
448
user wants the computer to connect to.  
 
449
.TP
 
450
\fBwpa_supplicant\fR
 
451
the program that directly interacts with the
 
452
network interface.  
 
453
.TP
 
454
\fBwpa_cli\fR
 
455
the
 
456
client program that provides a high-level interface to the
 
457
functionality of the daemon.  
 
458
.TP
 
459
\fBwpa_passphrase\fR
 
460
a utility needed to construct
 
461
\fIwpa_supplicant.conf\fR files that include
 
462
encrypted passwords.
 
463
.SH "QUICK START"
 
464
.PP
 
465
First, make a configuration file, e.g.
 
466
\fI/etc/wpa_supplicant.conf\fR, that describes the networks
 
467
you are interested in.  See \fBwpa_supplicant.conf\fR(5)
 
468
for details.
 
469
.PP
 
470
Once the configuration is ready, you can test whether the
 
471
configuration works by running \fBwpa_supplicant\fR
 
472
with following command to start it on foreground with debugging
 
473
enabled:
 
474
.sp
 
475
.RS
 
476
 
 
477
.nf
 
478
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d
 
479
    
 
480
.fi
 
481
.RE
 
482
.PP
 
483
Assuming everything goes fine, you can start using following
 
484
command to start \fBwpa_supplicant\fR on background
 
485
without debugging:
 
486
.sp
 
487
.RS
 
488
 
 
489
.nf
 
490
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B
 
491
    
 
492
.fi
 
493
.RE
 
494
.PP
 
495
Please note that if you included more than one driver
 
496
interface in the build time configuration (.config), you may need
 
497
to specify which interface to use by including -D<driver
 
498
name> option on the command line.
 
499
.SH "INTERFACE TO PCMCIA-CS/CARDMRG"
 
500
.PP
 
501
For example, following small changes to pcmcia-cs scripts
 
502
can be used to enable WPA support:
 
503
.PP
 
504
Add MODE="Managed" and WPA="y" to the network scheme in
 
505
\fI/etc/pcmcia/wireless.opts\fR\&.
 
506
.PP
 
507
Add the following block to the end of 'start' action handler
 
508
in \fI/etc/pcmcia/wireless\fR:
 
509
.sp
 
510
.RS
 
511
 
 
512
.nf
 
513
if [ "$WPA" = "y" -a -x /usr/local/bin/wpa_supplicant ]; then
 
514
    /usr/local/bin/wpa_supplicant -B -c/etc/wpa_supplicant.conf -i$DEVICE
 
515
fi
 
516
    
 
517
.fi
 
518
.RE
 
519
.PP
 
520
Add the following block to the end of 'stop' action handler
 
521
(may need to be separated from other actions) in
 
522
\fI/etc/pcmcia/wireless\fR:
 
523
.sp
 
524
.RS
 
525
 
 
526
.nf
 
527
if [ "$WPA" = "y" -a -x /usr/local/bin/wpa_supplicant ]; then
 
528
    killall wpa_supplicant
 
529
fi
 
530
    
 
531
.fi
 
532
.RE
 
533
.PP
 
534
This will make \fBcardmgr\fR start
 
535
\fBwpa_supplicant\fR when the card is plugged
 
536
in.
 
537
.SH "SEE ALSO"
 
538
.PP
 
539
\fBwpa_background\fR(8)
 
540
\fBwpa_supplicant.conf\fR(5)
 
541
\fBwpa_cli\fR(8)
 
542
\fBwpa_passphrase\fR(8)
 
543
.SH "LEGAL"
 
544
.PP
 
545
wpa_supplicant is copyright (c) 2003-2007,
 
546
Jouni Malinen <j@w1.fi> and
 
547
contributors.
 
548
All Rights Reserved.
 
549
.PP
 
550
This program is dual-licensed under both the GPL version 2
 
551
and BSD license. Either license may be used at your option.