index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>Linux WPA Supplicant (IEEE 802.1X, WPA, WPA2, RSN, IEEE 802.11i)</title>
  5. <meta name="description" content="WPA Supplicant for Linux, BSD, and Windows (IEEE 802.1X, WPA, WPA2, RSN, IEEE 802.11i)">
  6. <meta name="keywords" content="WPA, WPA2, IEEE 802.11i, IEEE 802.1X, WPA Supplicant, wpa_supplicant, TKIP, CCMP, EAP-PEAP, EAP-TLS, EAP-TTLS, EAP-SIM, EAP-AKA, EAP-PSK, EAP-GTC, EAP-MSCHAPv2, EAP-MD5, EAP-FAST, EAP-PAX, EAP-IKEv2IEEE 802.1X Supplicant, IEEE 802.1aa, EAPOL, RSN, pre-authentication, PMKSA caching, BSD WPA Supplicant, FreeBSD WPA Supplicant, wireless, WinXP WPA Supplicant, EAP-TNC, TNCC, IF-IMC, IF-TNCCS, WPS">
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  8. </head>
  9. <body>
  10. <h2>Linux WPA/WPA2/IEEE 802.1X Supplicant</h2>
  11. <p>wpa_supplicant is a WPA Supplicant for Linux, BSD, Mac OS X, and
  12. Windows with
  13. support for WPA and WPA2 (IEEE 802.11i / RSN). It is suitable for both
  14. desktop/laptop computers and embedded systems. Supplicant is the IEEE
  15. 802.1X/WPA component that is used in the client stations. It
  16. implements key negotiation with a WPA Authenticator and it controls
  17. the roaming and IEEE 802.11 authentication/association of the wlan
  18. driver.</p>
  19. <p>wpa_supplicant is designed to be a "daemon" program that runs in the
  20. background and acts as the backend component controlling the wireless
  21. connection. wpa_supplicant supports separate frontend programs and a
  22. text-based frontend (wpa_cli) and a GUI (wpa_gui) are included with
  23. wpa_supplicant.</p>
  24. <p>wpa_supplicant uses a flexible build configuration that can be used
  25. to select which features are included. This allows minimal code size
  26. (from ca. 50 kB binary for WPA/WPA2-Personal and 130 kB binary for
  27. WPA/WPA2-Enterprise without debugging code to 450 kB with most
  28. features and full debugging support; these example sizes are from a
  29. build for x86 target).</p>
  30. <h4>Supported WPA/IEEE 802.11i features</h4>
  31. <ul>
  32. <li>WPA-PSK ("WPA-Personal")</li>
  33. <li>WPA with EAP (e.g., with RADIUS authentication server) ("WPA-Enterprise")</li>
  34. <li>key management for CCMP, TKIP, WEP104, WEP40</li>
  35. <li>WPA and full IEEE 802.11i/RSN/WPA2</li>
  36. <li>RSN: PMKSA caching, pre-authentication</li>
  37. <li>IEEE 802.11r</li>
  38. <li>IEEE 802.11w</li>
  39. <li>Wi-Fi Protected Setup (WPS)</li>
  40. </ul>
  41. <h4>Supported EAP methods (IEEE 802.1X Supplicant)</h4>
  42. <ul>
  43. <li>EAP-TLS</li>
  44. <li>EAP-PEAP/MSCHAPv2 (both PEAPv0 and PEAPv1)</li>
  45. <li>EAP-PEAP/TLS (both PEAPv0 and PEAPv1)</li>
  46. <li>EAP-PEAP/GTC (both PEAPv0 and PEAPv1)</li>
  47. <li>EAP-PEAP/OTP (both PEAPv0 and PEAPv1)</li>
  48. <li>EAP-PEAP/MD5-Challenge (both PEAPv0 and PEAPv1)</li>
  49. <li>EAP-TTLS/EAP-MD5-Challenge</li>
  50. <li>EAP-TTLS/EAP-GTC</li>
  51. <li>EAP-TTLS/EAP-OTP</li>
  52. <li>EAP-TTLS/EAP-MSCHAPv2</li>
  53. <li>EAP-TTLS/EAP-TLS</li>
  54. <li>EAP-TTLS/MSCHAPv2</li>
  55. <li>EAP-TTLS/MSCHAP</li>
  56. <li>EAP-TTLS/PAP</li>
  57. <li>EAP-TTLS/CHAP</li>
  58. <li>EAP-SIM</li>
  59. <li>EAP-AKA</li>
  60. <li>EAP-AKA'</li>
  61. <li>EAP-PSK</li>
  62. <li>EAP-FAST</li>
  63. <li>EAP-PAX</li>
  64. <li>EAP-SAKE</li>
  65. <li>EAP-IKEv2</li>
  66. <li>EAP-GPSK</li>
  67. <li>LEAP (note: requires special support from the driver)</li>
  68. </ul>
  69. <p>Following methods are also supported, but since they do not generate keying
  70. material, they cannot be used with WPA or IEEE 802.1X WEP keying.</p>
  71. <ul>
  72. <li>EAP-MD5-Challenge</li>
  73. <li>EAP-MSCHAPv2</li>
  74. <li>EAP-GTC</li>
  75. <li>EAP-OTP</li>
  76. <li>EAP-TNC (Trusted Network Connect; TNCC, IF-IMC, IF-T, IF-TNCCS)</li>
  77. </ul>
  78. <p>More information about EAP methods and interoperability testing is
  79. available in <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/eap_testing.txt">eap_testing.txt</a>.</p>
  80. <h4>Supported TLS/crypto libraries</h4>
  81. <ul>
  82. <li>OpenSSL (default)</li>
  83. <li>GnuTLS</li>
  84. </ul>
  85. <h4>Internal TLS/crypto implementation (optional)</h4>
  86. <ul>
  87. <li>can be used in place of an external TLS/crypto library</li>
  88. <li>TLSv1</li>
  89. <li>X.509 certificate processing</li>
  90. <li>PKCS #1</li>
  91. <li>ASN.1</li>
  92. <li>RSA</li>
  93. <li>bignum</li>
  94. <li>minimal size (ca. 50 kB binary, parts of which are already needed for WPA;
  95. TLSv1/X.509/ASN.1/RSA/bignum parts are about 25 kB on x86)</li>
  96. </ul>
  97. <h4>Supported wireless cards/drivers</h4>
  98. <ul>
  99. <li>Linux drivers that support Linux Wireless Extensions v19 or newer with
  100. WPA/WPA2 extensions</li>
  101. <li><a href="http://hostap.epitest.fi/">Host AP driver for Prism2/2.5/3</a> (WPA and WPA2)</li>
  102. <li><a href="http://www.linuxant.com/driverloader/">Linuxant DriverLoader</a> with Windows NDIS driver supporting WPA/WPA2</li>
  103. <li><a href="http://www.agere.com/support/drivers/">Agere Systems Inc. Linux Driver</a> (Hermes-I/Hermes-II chipset) (WPA, but not WPA2)</li>
  104. <li><a href="http://sourceforge.net/projects/madwifi/">madwifi (Atheros ar521x)</a></li>
  105. <li><a href="http://atmelwlandriver.sourceforge.net/">ATMEL AT76C5XXx</a></li>
  106. <li><a href="http://ndiswrapper.sourceforge.net/">Linux ndiswrapper</a></li>
  107. <li>Broadcom wl.o driver</li>
  108. <li><a href="http://sourceforge.net/projects/ipw2100/">Intel ipw2100</a></li>
  109. <li><a href="http://sourceforge.net/projects/ipw2200/">Intel ipw2200</a></li>
  110. <li>Wired Ethernet drivers</li>
  111. <li>BSD net80211 layer (e.g., Atheros driver) (FreeBSD 6-CURRENT and NetBSD current)</li>
  112. <li>Windows NDIS drivers (Windows; at least XP and 2000, others not tested)</li>
  113. </ul>
  114. <p>wpa_supplicant was designed to be portable for different drivers and
  115. operating systems. Hopefully, support for more wlan cards and OSes will be
  116. added in the future. See <a href="devel/">developers' documentation</a>
  117. for more information about the design of wpa_supplicant and porting to
  118. other drivers.</p>
  119. <h3><a name="download">Download</a></h3>
  120. <p>
  121. <b>wpa_supplicant</b><br>
  122. Copyright (c) 2003-2009, Jouni Malinen &lt;j@w1.fi&gt;
  123. and contributors.
  124. </p>
  125. <p>
  126. This program is free software; you can redistribute it and/or modify
  127. it under the terms of the GNU General Public License version 2 as
  128. published by the Free Software Foundation. See
  129. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=COPYING">COPYING</a>
  130. for more details.
  131. </p>
  132. <p>Alternatively, this software may be distributed, used, and modified
  133. under the terms of BSD license. See <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/README">README</a>
  134. for more details.</p>
  135. <p>
  136. <b>Please see
  137. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/README">README</a>
  138. for the current documentation.</b><br>
  139. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/README-Windows.txt">README-Windows.txt</a>
  140. has some more information about the Windows port of wpa_supplicant.</p>
  141. <ul>
  142. <li><a href="../releases.html">Release graph</a></li>
  143. <li>Latest stable release:
  144. <ul>
  145. <li><a href="../releases/wpa_supplicant-0.6.9.tar.gz">wpa_supplicant-0.6.9.tar.gz</a> (source code for all versions)</li>
  146. <li><a href="../releases/wpa_supplicant-0.6.9.exe">wpa_supplicant-0.6.9.exe</a> (binary installer for Windows)</li>
  147. <li><a href="../releases/wpa_supplicant-windows-bin-0.6.9.zip">wpa_supplicant-windows-bin-0.6.9.zip</a> (binaries for Windows)</li>
  148. <li><a href="qt4/wpa_gui-qt433-windows-dll.zip">wpa_gui-qt433-windows-dll.zip</a> (Qt4 libraries from wpa_gui/Windows)</li>
  149. </ul>
  150. <li>Older stable release:
  151. <ul>
  152. <li><a href="../releases/wpa_supplicant-0.5.11.tar.gz">wpa_supplicant-0.5.11.tar.gz</a></li>
  153. <li><a href="../releases/wpa_supplicant-windows-bin-0.5.11.zip">wpa_supplicant-windows-bin-0.5.11.zip</a> (binaries for Windows)</li>
  154. </ul>
  155. <!--
  156. <li>Latest development release:
  157. <ul>
  158. <li><a href="../releases/wpa_supplicant-0.7.0.tar.gz">wpa_supplicant-0.7.0.tar.gz</a> (source code for all versions)</li>
  159. <li><a href="../releases/wpa_supplicant-0.7.0.exe">wpa_supplicant-0.7.0.exe</a> (binary installer for Windows)</li>
  160. <li><a href="../releases/wpa_supplicant-windows-bin-0.7.0.zip">wpa_supplicant-windows-bin-0.7.0.zip</a> (binaries for Windows)</li>
  161. </ul>
  162. -->
  163. <li>ChangeLog:
  164. <ul>
  165. <li><a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/ChangeLog">development branch</a></li>
  166. <li><a href="/gitweb/gitweb.cgi?p=hostap-06.git;a=blob_plain;f=wpa_supplicant/ChangeLog">stable branch</a></li>
  167. </ul>
  168. <li><a href="../releases/">Old releases</a></li>
  169. <li><a href="http://lists.shmoo.com/mailman/listinfo/hostap">Mailing list</a></li>
  170. <li><a href="http://lists.shmoo.com/pipermail/hostap/">New mailing list archives</a></li>
  171. <li><a href="/gitweb/gitweb.cgi">Web interface to GIT repository (0.6.x and newer)</a></li>
  172. <li><a href="/cgi-bin/viewcvs.cgi/hostap/">Web interface to CVS repository (0.5.x and older)</a></li>
  173. <li><a href="../releases/snapshots/">Snapshot releases from all active branches</a>
  174. <li><a href="../cvs.html">GIT and read-only anonymous CVS access (pserver)</a></li>
  175. <li><a href="../bugz/">Bug and feature request tracking</a></li>
  176. <li><a href="devel/">Developers' documentation for wpa_supplicant 0.6.x</a></li>
  177. <li><a href="wpa_gui.html">wpa_gui screenshots</a></li>
  178. </ul>
  179. <h3>WPA</h3>
  180. <p>The original security mechanism of IEEE 802.11 standard was not
  181. designed to be strong and has proven to be insufficient for most
  182. networks that require some kind of security. Task group I (Security)
  183. of <a href="http://www.ieee802.org/11/">IEEE 802.11 working group</a>
  184. has worked to address the flaws of the base standard and in
  185. practice completed its work in May 2004. The IEEE 802.11i amendment to
  186. the IEEE 802.11 standard was approved in June 2004 and published in
  187. July 2004.</p>
  188. <p><a href="http://www.wi-fi.org/">Wi-Fi Alliance</a> used a draft
  189. version of the IEEE 802.11i work (draft 3.0) to define a subset of the
  190. security enhancements that can be implemented with existing wlan
  191. hardware. This is called Wi-Fi Protected Access (WPA). This has
  192. now become a mandatory component of interoperability testing and
  193. certification done by Wi-Fi Alliance. Wi-Fi has
  194. <a href="http://www.wi-fi.org/OpenSection/protected_access.asp">information
  195. about WPA</a> at its web site.</p>
  196. <p>IEEE 802.11 standard defined wired equivalent privacy (WEP) algorithm
  197. for protecting wireless networks. WEP uses RC4 with 40-bit keys,
  198. 24-bit initialization vector (IV), and CRC32 to protect against packet
  199. forgery. All these choices have proven to be insufficient: key space is
  200. too small against current attacks, RC4 key scheduling is insufficient
  201. (beginning of the pseudorandom stream should be skipped), IV space is
  202. too small and IV reuse makes attacks easier, there is no replay
  203. protection, and non-keyed authentication does not protect against bit
  204. flipping packet data.</p>
  205. <p>WPA is an intermediate solution for the security issues. It uses
  206. Temporal Key Integrity Protocol (TKIP) to replace WEP. TKIP is a
  207. compromise on strong security and possibility to use existing
  208. hardware. It still uses RC4 for the encryption like WEP, but with
  209. per-packet RC4 keys. In addition, it implements replay protection,
  210. keyed packet authentication mechanism (Michael MIC).</p>
  211. <p>Keys can be managed using two different mechanisms. WPA can either use
  212. an external authentication server (e.g., RADIUS) and EAP just like
  213. IEEE 802.1X is using or pre-shared keys without need for additional
  214. servers. Wi-Fi calls these "WPA-Enterprise" and "WPA-Personal",
  215. respectively. Both mechanisms will generate a master session key for
  216. the Authenticator (AP) and Supplicant (client station).</p>
  217. <p>WPA implements a new key handshake (4-Way Handshake and Group Key
  218. Handshake) for generating and exchanging data encryption keys between
  219. the Authenticator and Supplicant. This handshake is also used to
  220. verify that both Authenticator and Supplicant know the master session
  221. key. These handshakes are identical regardless of the selected key
  222. management mechanism (only the method for generating master session
  223. key changes).</p>
  224. <h3>IEEE 802.11i / RSN / WPA2</h3>
  225. <p>The design for parts of IEEE 802.11i that were not included in WPA
  226. has finished (May 2004) and this amendment to IEEE 802.11 was approved
  227. in June 2004. Wi-Fi Alliance is using the final IEEE 802.11i as a new
  228. version of WPA called WPA2. This included, e.g., support for more
  229. robust encryption algorithm (CCMP: AES in Counter mode with CBC-MAC)
  230. to replace TKIP, optimizations for handoff (reduced number of messages
  231. in initial key handshake, pre-authentication, and PMKSA caching).</p>
  232. <h3>Using wpa_supplicant</h3>
  233. <p>Following steps are used when associating with an AP using WPA:<p>
  234. <ul>
  235. <li>wpa_supplicant requests the kernel driver to scan neighboring BSSes</li>
  236. <li>wpa_supplicant selects a BSS based on its configuration</li>
  237. <li>wpa_supplicant requests the kernel driver to associate with the chosen
  238. BSS</li>
  239. <li>if WPA-EAP: integrated IEEE 802.1X Supplicant completes EAP
  240. authentication with the authentication server (proxied by the
  241. Authenticator in the AP)</li>
  242. <li>If WPA-EAP: master key is received from the IEEE 802.1X Supplicant</li>
  243. <li>If WPA-PSK: wpa_supplicant uses PSK as the master session key</li>
  244. <li>wpa_supplicant completes WPA 4-Way Handshake and Group Key Handshake
  245. with the Authenticator (AP). WPA2 has integrated the initial Group Key
  246. Handshake into the 4-Way Handshake.</li>
  247. <li>wpa_supplicant configures encryption keys for unicast and broadcast</li>
  248. <li>normal data packets can be transmitted and received</li>
  249. </ul>
  250. <h4>Configuration file</h4>
  251. <p>wpa_supplicant is configured using a text file that lists all accepted
  252. networks and security policies, including pre-shared keys. See
  253. example configuration file,
  254. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/wpa_supplicant.conf">wpa_supplicant.conf</a>,
  255. for detailed information about the configuration format and supported
  256. fields. In addition, simpler example configurations are available for
  257. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/plaintext.conf">plaintext</a>,
  258. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/wep.conf">static WEP</a>,
  259. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/ieee8021x.conf">IEEE 802.1X with dynamic WEP (EAP-PEAP/MSCHAPv2)</a>,
  260. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/wpa-psk-tkip.conf">WPA-PSK/TKIP</a>, and
  261. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/wpa2-eap-ccmp.conf">WPA2-EAP/CCMP (EAP-TLS)</a>.
  262. In addition, wpa_supplicant can use OpenSSL engine to avoid need for
  263. exposing private keys in the file system. This can be used for EAP-TLS
  264. authentication with smartcards and TPM tokens.
  265. <a href="/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/openCryptoki.conf">Example configuration for using openCryptoki</a>
  266. shows an example network block and related parameters for EAP-TLS
  267. authentication using PKCS#11 TPM token.
  268. </p>
  269. <h3>Feedback, comments, mailing list</h3>
  270. <p>
  271. Any comments, reports on success/failure, ideas for further
  272. improvement, feature requests, etc. are welcome at j@w1.fi.
  273. Please note, that I often receive more email than I have time to answer.
  274. Unfortunately, some messages may not get a reply, but I'll try to go
  275. through my mail whenever time permits.
  276. </p>
  277. <p>Host AP mailing list can also be used for topics related to
  278. wpa_supplicant. Since this list has a broader audience, your likelyhood
  279. of getting responses is higher. This list is recommended for general
  280. questions about wpa_supplicant and its development. In addition, I
  281. will send release notes to it whenever a new version is available.
  282. </p>
  283. <p>
  284. The mailing list information and web archive is at <a
  285. href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a>.
  286. Messages to hostap@shmoo.com will be delivered to the
  287. subscribers. Please note, that due to large number of spam and virus
  288. messages sent to the list address, the list is configured to accept
  289. messages only from subscribed addresses. Messages from unsubscribed addresses
  290. may be accepted manually, but their delivery will be delayed.
  291. </p>
  292. <p>
  293. If you want to make sure your bug report of feature request does not
  294. get lost, please report it through the bug tracking system as
  295. <a href="../bugz/enter_bug.cgi">a new
  296. bug/feature request</a>.
  297. </p>
  298. <hr>
  299. <div>
  300. <address><a href="mailto:j@w1.fi">Jouni Malinen</a></address>
  301. <!-- Created: Sat May 22 21:41:58 PDT 2004 -->
  302. <!-- hhmts start -->
  303. Last modified: Mon Mar 23 16:39:34 EET 2009
  304. <!-- hhmts end -->
  305. </div>
  306. </body>
  307. </html>