wpa_supplicant.conf 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  1. ##### Example wpa_supplicant configuration file ###############################
  2. #
  3. # This file describes configuration file format and lists all available option.
  4. # Please also take a look at simpler configuration examples in 'examples'
  5. # subdirectory.
  6. #
  7. # Empty lines and lines starting with # are ignored
  8. # NOTE! This file may contain password information and should probably be made
  9. # readable only by root user on multiuser systems.
  10. # Note: All file paths in this configuration file should use full (absolute,
  11. # not relative to working directory) path in order to allow working directory
  12. # to be changed. This can happen if wpa_supplicant is run in the background.
  13. # Whether to allow wpa_supplicant to update (overwrite) configuration
  14. #
  15. # This option can be used to allow wpa_supplicant to overwrite configuration
  16. # file whenever configuration is changed (e.g., new network block is added with
  17. # wpa_cli or wpa_gui, or a password is changed). This is required for
  18. # wpa_cli/wpa_gui to be able to store the configuration changes permanently.
  19. # Please note that overwriting configuration file will remove the comments from
  20. # it.
  21. #update_config=1
  22. # global configuration (shared by all network blocks)
  23. #
  24. # Parameters for the control interface. If this is specified, wpa_supplicant
  25. # will open a control interface that is available for external programs to
  26. # manage wpa_supplicant. The meaning of this string depends on which control
  27. # interface mechanism is used. For all cases, the existance of this parameter
  28. # in configuration is used to determine whether the control interface is
  29. # enabled.
  30. #
  31. # For UNIX domain sockets (default on Linux and BSD): This is a directory that
  32. # will be created for UNIX domain sockets for listening to requests from
  33. # external programs (CLI/GUI, etc.) for status information and configuration.
  34. # The socket file will be named based on the interface name, so multiple
  35. # wpa_supplicant processes can be run at the same time if more than one
  36. # interface is used.
  37. # /var/run/wpa_supplicant is the recommended directory for sockets and by
  38. # default, wpa_cli will use it when trying to connect with wpa_supplicant.
  39. #
  40. # Access control for the control interface can be configured by setting the
  41. # directory to allow only members of a group to use sockets. This way, it is
  42. # possible to run wpa_supplicant as root (since it needs to change network
  43. # configuration and open raw sockets) and still allow GUI/CLI components to be
  44. # run as non-root users. However, since the control interface can be used to
  45. # change the network configuration, this access needs to be protected in many
  46. # cases. By default, wpa_supplicant is configured to use gid 0 (root). If you
  47. # want to allow non-root users to use the control interface, add a new group
  48. # and change this value to match with that group. Add users that should have
  49. # control interface access to this group. If this variable is commented out or
  50. # not included in the configuration file, group will not be changed from the
  51. # value it got by default when the directory or socket was created.
  52. #
  53. # When configuring both the directory and group, use following format:
  54. # DIR=/var/run/wpa_supplicant GROUP=wheel
  55. # DIR=/var/run/wpa_supplicant GROUP=0
  56. # (group can be either group name or gid)
  57. #
  58. # For UDP connections (default on Windows): The value will be ignored. This
  59. # variable is just used to select that the control interface is to be created.
  60. # The value can be set to, e.g., udp (ctrl_interface=udp)
  61. #
  62. # For Windows Named Pipe: This value can be used to set the security descriptor
  63. # for controlling access to the control interface. Security descriptor can be
  64. # set using Security Descriptor String Format (see http://msdn.microsoft.com/
  65. # library/default.asp?url=/library/en-us/secauthz/security/
  66. # security_descriptor_string_format.asp). The descriptor string needs to be
  67. # prefixed with SDDL=. For example, ctrl_interface=SDDL=D: would set an empty
  68. # DACL (which will reject all connections). See README-Windows.txt for more
  69. # information about SDDL string format.
  70. #
  71. ctrl_interface=/var/run/wpa_supplicant
  72. # IEEE 802.1X/EAPOL version
  73. # wpa_supplicant is implemented based on IEEE Std 802.1X-2004 which defines
  74. # EAPOL version 2. However, there are many APs that do not handle the new
  75. # version number correctly (they seem to drop the frames completely). In order
  76. # to make wpa_supplicant interoperate with these APs, the version number is set
  77. # to 1 by default. This configuration value can be used to set it to the new
  78. # version (2).
  79. eapol_version=1
  80. # AP scanning/selection
  81. # By default, wpa_supplicant requests driver to perform AP scanning and then
  82. # uses the scan results to select a suitable AP. Another alternative is to
  83. # allow the driver to take care of AP scanning and selection and use
  84. # wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association
  85. # information from the driver.
  86. # 1: wpa_supplicant initiates scanning and AP selection
  87. # 0: driver takes care of scanning, AP selection, and IEEE 802.11 association
  88. # parameters (e.g., WPA IE generation); this mode can also be used with
  89. # non-WPA drivers when using IEEE 802.1X mode; do not try to associate with
  90. # APs (i.e., external program needs to control association). This mode must
  91. # also be used when using wired Ethernet drivers.
  92. # 2: like 0, but associate with APs using security policy and SSID (but not
  93. # BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to
  94. # enable operation with hidden SSIDs and optimized roaming; in this mode,
  95. # the network blocks in the configuration file are tried one by one until
  96. # the driver reports successful association; each network block should have
  97. # explicit security policy (i.e., only one option in the lists) for
  98. # key_mgmt, pairwise, group, proto variables
  99. ap_scan=1
  100. # EAP fast re-authentication
  101. # By default, fast re-authentication is enabled for all EAP methods that
  102. # support it. This variable can be used to disable fast re-authentication.
  103. # Normally, there is no need to disable this.
  104. fast_reauth=1
  105. # OpenSSL Engine support
  106. # These options can be used to load OpenSSL engines.
  107. # The two engines that are supported currently are shown below:
  108. # They are both from the opensc project (http://www.opensc.org/)
  109. # By default no engines are loaded.
  110. # make the opensc engine available
  111. #opensc_engine_path=/usr/lib/opensc/engine_opensc.so
  112. # make the pkcs11 engine available
  113. #pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
  114. # configure the path to the pkcs11 module required by the pkcs11 engine
  115. #pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
  116. # Dynamic EAP methods
  117. # If EAP methods were built dynamically as shared object files, they need to be
  118. # loaded here before being used in the network blocks. By default, EAP methods
  119. # are included statically in the build, so these lines are not needed
  120. #load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
  121. #load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
  122. # Driver interface parameters
  123. # This field can be used to configure arbitrary driver interace parameters. The
  124. # format is specific to the selected driver interface. This field is not used
  125. # in most cases.
  126. #driver_param="field=value"
  127. # Country code
  128. # The ISO/IEC alpha2 country code for the country in which this device is
  129. # currently operating.
  130. #country=US
  131. # Maximum lifetime for PMKSA in seconds; default 43200
  132. #dot11RSNAConfigPMKLifetime=43200
  133. # Threshold for reauthentication (percentage of PMK lifetime); default 70
  134. #dot11RSNAConfigPMKReauthThreshold=70
  135. # Timeout for security association negotiation in seconds; default 60
  136. #dot11RSNAConfigSATimeout=60
  137. # Wi-Fi Protected Setup (WPS) parameters
  138. # Universally Unique IDentifier (UUID; see RFC 4122) of the device
  139. # If not configured, UUID will be generated based on the local MAC address.
  140. #uuid=12345678-9abc-def0-1234-56789abcdef0
  141. # Device Name
  142. # User-friendly description of device; up to 32 octets encoded in UTF-8
  143. #device_name=Wireless Client
  144. # Manufacturer
  145. # The manufacturer of the device (up to 64 ASCII characters)
  146. #manufacturer=Company
  147. # Model Name
  148. # Model of the device (up to 32 ASCII characters)
  149. #model_name=cmodel
  150. # Model Number
  151. # Additional device description (up to 32 ASCII characters)
  152. #model_number=123
  153. # Serial Number
  154. # Serial number of the device (up to 32 characters)
  155. #serial_number=12345
  156. # Primary Device Type
  157. # Used format: <categ>-<OUI>-<subcateg>
  158. # categ = Category as an integer value
  159. # OUI = OUI and type octet as a 4-octet hex-encoded value; 0050F204 for
  160. # default WPS OUI
  161. # subcateg = OUI-specific Sub Category as an integer value
  162. # Examples:
  163. # 1-0050F204-1 (Computer / PC)
  164. # 1-0050F204-2 (Computer / Server)
  165. # 5-0050F204-1 (Storage / NAS)
  166. # 6-0050F204-1 (Network Infrastructure / AP)
  167. #device_type=1-0050F204-1
  168. # OS Version
  169. # 4-octet operating system version number (hex string)
  170. #os_version=01020300
  171. # Credential processing
  172. # 0 = process received credentials internally (default)
  173. # 1 = do not process received credentials; just pass them over ctrl_iface to
  174. # external program(s)
  175. # 2 = process received credentials internally and pass them over ctrl_iface
  176. # to external program(s)
  177. #wps_cred_processing=0
  178. # network block
  179. #
  180. # Each network (usually AP's sharing the same SSID) is configured as a separate
  181. # block in this configuration file. The network blocks are in preference order
  182. # (the first match is used).
  183. #
  184. # network block fields:
  185. #
  186. # disabled:
  187. # 0 = this network can be used (default)
  188. # 1 = this network block is disabled (can be enabled through ctrl_iface,
  189. # e.g., with wpa_cli or wpa_gui)
  190. #
  191. # id_str: Network identifier string for external scripts. This value is passed
  192. # to external action script through wpa_cli as WPA_ID_STR environment
  193. # variable to make it easier to do network specific configuration.
  194. #
  195. # ssid: SSID (mandatory); either as an ASCII string with double quotation or
  196. # as hex string; network name
  197. #
  198. # scan_ssid:
  199. # 0 = do not scan this SSID with specific Probe Request frames (default)
  200. # 1 = scan with SSID-specific Probe Request frames (this can be used to
  201. # find APs that do not accept broadcast SSID or use multiple SSIDs;
  202. # this will add latency to scanning, so enable this only when needed)
  203. #
  204. # bssid: BSSID (optional); if set, this network block is used only when
  205. # associating with the AP using the configured BSSID
  206. #
  207. # priority: priority group (integer)
  208. # By default, all networks will get same priority group (0). If some of the
  209. # networks are more desirable, this field can be used to change the order in
  210. # which wpa_supplicant goes through the networks when selecting a BSS. The
  211. # priority groups will be iterated in decreasing priority (i.e., the larger the
  212. # priority value, the sooner the network is matched against the scan results).
  213. # Within each priority group, networks will be selected based on security
  214. # policy, signal strength, etc.
  215. # Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode are not
  216. # using this priority to select the order for scanning. Instead, they try the
  217. # networks in the order that used in the configuration file.
  218. #
  219. # mode: IEEE 802.11 operation mode
  220. # 0 = infrastructure (Managed) mode, i.e., associate with an AP (default)
  221. # 1 = IBSS (ad-hoc, peer-to-peer)
  222. # Note: IBSS can only be used with key_mgmt NONE (plaintext and static WEP)
  223. # and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition, ap_scan has
  224. # to be set to 2 for IBSS. WPA-None requires following network block options:
  225. # proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not
  226. # both), and psk must also be set.
  227. #
  228. # frequency: Channel frequency in megahertz (MHz) for IBSS, e.g.,
  229. # 2412 = IEEE 802.11b/g channel 1. This value is used to configure the initial
  230. # channel for IBSS (adhoc) networks. It is ignored in the infrastructure mode.
  231. # In addition, this value is only used by the station that creates the IBSS. If
  232. # an IBSS network with the configured SSID is already present, the frequency of
  233. # the network will be used instead of this configured value.
  234. #
  235. # proto: list of accepted protocols
  236. # WPA = WPA/IEEE 802.11i/D3.0
  237. # RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for RSN)
  238. # If not set, this defaults to: WPA RSN
  239. #
  240. # key_mgmt: list of accepted authenticated key management protocols
  241. # WPA-PSK = WPA pre-shared key (this requires 'psk' field)
  242. # WPA-EAP = WPA using EAP authentication (this can use an external
  243. # program, e.g., Xsupplicant, for IEEE 802.1X EAP Authentication
  244. # IEEE8021X = IEEE 802.1X using EAP authentication and (optionally) dynamically
  245. # generated WEP keys
  246. # NONE = WPA is not used; plaintext or static WEP could be used
  247. # WPA-PSK-SHA256 = Like WPA-PSK but using stronger SHA256-based algorithms
  248. # WPA-EAP-SHA256 = Like WPA-EAP but using stronger SHA256-based algorithms
  249. # If not set, this defaults to: WPA-PSK WPA-EAP
  250. #
  251. # auth_alg: list of allowed IEEE 802.11 authentication algorithms
  252. # OPEN = Open System authentication (required for WPA/WPA2)
  253. # SHARED = Shared Key authentication (requires static WEP keys)
  254. # LEAP = LEAP/Network EAP (only used with LEAP)
  255. # If not set, automatic selection is used (Open System with LEAP enabled if
  256. # LEAP is allowed as one of the EAP methods).
  257. #
  258. # pairwise: list of accepted pairwise (unicast) ciphers for WPA
  259. # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
  260. # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
  261. # NONE = Use only Group Keys (deprecated, should not be included if APs support
  262. # pairwise keys)
  263. # If not set, this defaults to: CCMP TKIP
  264. #
  265. # group: list of accepted group (broadcast/multicast) ciphers for WPA
  266. # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
  267. # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
  268. # WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
  269. # WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE 802.11]
  270. # If not set, this defaults to: CCMP TKIP WEP104 WEP40
  271. #
  272. # psk: WPA preshared key; 256-bit pre-shared key
  273. # The key used in WPA-PSK mode can be entered either as 64 hex-digits, i.e.,
  274. # 32 bytes or as an ASCII passphrase (in which case, the real PSK will be
  275. # generated using the passphrase and SSID). ASCII passphrase must be between
  276. # 8 and 63 characters (inclusive).
  277. # This field is not needed, if WPA-EAP is used.
  278. # Note: Separate tool, wpa_passphrase, can be used to generate 256-bit keys
  279. # from ASCII passphrase. This process uses lot of CPU and wpa_supplicant
  280. # startup and reconfiguration time can be optimized by generating the PSK only
  281. # only when the passphrase or SSID has actually changed.
  282. #
  283. # eapol_flags: IEEE 802.1X/EAPOL options (bit field)
  284. # Dynamic WEP key required for non-WPA mode
  285. # bit0 (1): require dynamically generated unicast WEP key
  286. # bit1 (2): require dynamically generated broadcast WEP key
  287. # (3 = require both keys; default)
  288. # Note: When using wired authentication, eapol_flags must be set to 0 for the
  289. # authentication to be completed successfully.
  290. #
  291. # mixed_cell: This option can be used to configure whether so called mixed
  292. # cells, i.e., networks that use both plaintext and encryption in the same
  293. # SSID, are allowed when selecting a BSS form scan results.
  294. # 0 = disabled (default)
  295. # 1 = enabled
  296. #
  297. # proactive_key_caching:
  298. # Enable/disable opportunistic PMKSA caching for WPA2.
  299. # 0 = disabled (default)
  300. # 1 = enabled
  301. #
  302. # wep_key0..3: Static WEP key (ASCII in double quotation, e.g. "abcde" or
  303. # hex without quotation, e.g., 0102030405)
  304. # wep_tx_keyidx: Default WEP key index (TX) (0..3)
  305. #
  306. # peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e DLS) is
  307. # allowed. This is only used with RSN/WPA2.
  308. # 0 = disabled (default)
  309. # 1 = enabled
  310. #peerkey=1
  311. #
  312. # wpa_ptk_rekey: Maximum lifetime for PTK in seconds. This can be used to
  313. # enforce rekeying of PTK to mitigate some attacks against TKIP deficiencies.
  314. #
  315. # Following fields are only used with internal EAP implementation.
  316. # eap: space-separated list of accepted EAP methods
  317. # MD5 = EAP-MD5 (unsecure and does not generate keying material ->
  318. # cannot be used with WPA; to be used as a Phase 2 method
  319. # with EAP-PEAP or EAP-TTLS)
  320. # MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with WPA; to be used
  321. # as a Phase 2 method with EAP-PEAP or EAP-TTLS)
  322. # OTP = EAP-OTP (cannot be used separately with WPA; to be used
  323. # as a Phase 2 method with EAP-PEAP or EAP-TTLS)
  324. # GTC = EAP-GTC (cannot be used separately with WPA; to be used
  325. # as a Phase 2 method with EAP-PEAP or EAP-TTLS)
  326. # TLS = EAP-TLS (client and server certificate)
  327. # PEAP = EAP-PEAP (with tunnelled EAP authentication)
  328. # TTLS = EAP-TTLS (with tunnelled EAP or PAP/CHAP/MSCHAP/MSCHAPV2
  329. # authentication)
  330. # If not set, all compiled in methods are allowed.
  331. #
  332. # identity: Identity string for EAP
  333. # This field is also used to configure user NAI for
  334. # EAP-PSK/PAX/SAKE/GPSK.
  335. # anonymous_identity: Anonymous identity string for EAP (to be used as the
  336. # unencrypted identity with EAP types that support different tunnelled
  337. # identity, e.g., EAP-TTLS)
  338. # password: Password string for EAP. This field can include either the
  339. # plaintext password (using ASCII or hex string) or a NtPasswordHash
  340. # (16-byte MD4 hash of password) in hash:<32 hex digits> format.
  341. # NtPasswordHash can only be used when the password is for MSCHAPv2 or
  342. # MSCHAP (EAP-MSCHAPv2, EAP-TTLS/MSCHAPv2, EAP-TTLS/MSCHAP, LEAP).
  343. # EAP-PSK (128-bit PSK), EAP-PAX (128-bit PSK), and EAP-SAKE (256-bit
  344. # PSK) is also configured using this field. For EAP-GPSK, this is a
  345. # variable length PSK.
  346. # ca_cert: File path to CA certificate file (PEM/DER). This file can have one
  347. # or more trusted CA certificates. If ca_cert and ca_path are not
  348. # included, server certificate will not be verified. This is insecure and
  349. # a trusted CA certificate should always be configured when using
  350. # EAP-TLS/TTLS/PEAP. Full path should be used since working directory may
  351. # change when wpa_supplicant is run in the background.
  352. # On Windows, trusted CA certificates can be loaded from the system
  353. # certificate store by setting this to cert_store://<name>, e.g.,
  354. # ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
  355. # Note that when running wpa_supplicant as an application, the user
  356. # certificate store (My user account) is used, whereas computer store
  357. # (Computer account) is used when running wpasvc as a service.
  358. # ca_path: Directory path for CA certificate files (PEM). This path may
  359. # contain multiple CA certificates in OpenSSL format. Common use for this
  360. # is to point to system trusted CA list which is often installed into
  361. # directory like /etc/ssl/certs. If configured, these certificates are
  362. # added to the list of trusted CAs. ca_cert may also be included in that
  363. # case, but it is not required.
  364. # client_cert: File path to client certificate file (PEM/DER)
  365. # Full path should be used since working directory may change when
  366. # wpa_supplicant is run in the background.
  367. # Alternatively, a named configuration blob can be used by setting this
  368. # to blob://<blob name>.
  369. # private_key: File path to client private key file (PEM/DER/PFX)
  370. # When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be
  371. # commented out. Both the private key and certificate will be read from
  372. # the PKCS#12 file in this case. Full path should be used since working
  373. # directory may change when wpa_supplicant is run in the background.
  374. # Windows certificate store can be used by leaving client_cert out and
  375. # configuring private_key in one of the following formats:
  376. # cert://substring_to_match
  377. # hash://certificate_thumbprint_in_hex
  378. # for example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
  379. # Note that when running wpa_supplicant as an application, the user
  380. # certificate store (My user account) is used, whereas computer store
  381. # (Computer account) is used when running wpasvc as a service.
  382. # Alternatively, a named configuration blob can be used by setting this
  383. # to blob://<blob name>.
  384. # private_key_passwd: Password for private key file (if left out, this will be
  385. # asked through control interface)
  386. # dh_file: File path to DH/DSA parameters file (in PEM format)
  387. # This is an optional configuration file for setting parameters for an
  388. # ephemeral DH key exchange. In most cases, the default RSA
  389. # authentication does not use this configuration. However, it is possible
  390. # setup RSA to use ephemeral DH key exchange. In addition, ciphers with
  391. # DSA keys always use ephemeral DH keys. This can be used to achieve
  392. # forward secrecy. If the file is in DSA parameters format, it will be
  393. # automatically converted into DH params.
  394. # subject_match: Substring to be matched against the subject of the
  395. # authentication server certificate. If this string is set, the server
  396. # sertificate is only accepted if it contains this string in the subject.
  397. # The subject string is in following format:
  398. # /C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@example.com
  399. # altsubject_match: Semicolon separated string of entries to be matched against
  400. # the alternative subject name of the authentication server certificate.
  401. # If this string is set, the server sertificate is only accepted if it
  402. # contains one of the entries in an alternative subject name extension.
  403. # altSubjectName string is in following format: TYPE:VALUE
  404. # Example: EMAIL:server@example.com
  405. # Example: DNS:server.example.com;DNS:server2.example.com
  406. # Following types are supported: EMAIL, DNS, URI
  407. # phase1: Phase1 (outer authentication, i.e., TLS tunnel) parameters
  408. # (string with field-value pairs, e.g., "peapver=0" or
  409. # "peapver=1 peaplabel=1")
  410. # 'peapver' can be used to force which PEAP version (0 or 1) is used.
  411. # 'peaplabel=1' can be used to force new label, "client PEAP encryption",
  412. # to be used during key derivation when PEAPv1 or newer. Most existing
  413. # PEAPv1 implementation seem to be using the old label, "client EAP
  414. # encryption", and wpa_supplicant is now using that as the default value.
  415. # Some servers, e.g., Radiator, may require peaplabel=1 configuration to
  416. # interoperate with PEAPv1; see eap_testing.txt for more details.
  417. # 'peap_outer_success=0' can be used to terminate PEAP authentication on
  418. # tunneled EAP-Success. This is required with some RADIUS servers that
  419. # implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
  420. # Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
  421. # include_tls_length=1 can be used to force wpa_supplicant to include
  422. # TLS Message Length field in all TLS messages even if they are not
  423. # fragmented.
  424. # sim_min_num_chal=3 can be used to configure EAP-SIM to require three
  425. # challenges (by default, it accepts 2 or 3)
  426. # result_ind=1 can be used to enable EAP-SIM and EAP-AKA to use
  427. # protected result indication.
  428. # 'crypto_binding' option can be used to control PEAPv0 cryptobinding
  429. # behavior:
  430. # * 0 = do not use cryptobinding (default)
  431. # * 1 = use cryptobinding if server supports it
  432. # * 2 = require cryptobinding
  433. # EAP-WSC (WPS) uses following options: pin=<Device Password> or
  434. # pbc=1.
  435. # phase2: Phase2 (inner authentication with TLS tunnel) parameters
  436. # (string with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-PEAP or
  437. # "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
  438. # Following certificate/private key fields are used in inner Phase2
  439. # authentication when using EAP-TTLS or EAP-PEAP.
  440. # ca_cert2: File path to CA certificate file. This file can have one or more
  441. # trusted CA certificates. If ca_cert2 and ca_path2 are not included,
  442. # server certificate will not be verified. This is insecure and a trusted
  443. # CA certificate should always be configured.
  444. # ca_path2: Directory path for CA certificate files (PEM)
  445. # client_cert2: File path to client certificate file
  446. # private_key2: File path to client private key file
  447. # private_key2_passwd: Password for private key file
  448. # dh_file2: File path to DH/DSA parameters file (in PEM format)
  449. # subject_match2: Substring to be matched against the subject of the
  450. # authentication server certificate.
  451. # altsubject_match2: Substring to be matched against the alternative subject
  452. # name of the authentication server certificate.
  453. #
  454. # fragment_size: Maximum EAP fragment size in bytes (default 1398).
  455. # This value limits the fragment size for EAP methods that support
  456. # fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be set
  457. # small enough to make the EAP messages fit in MTU of the network
  458. # interface used for EAPOL. The default value is suitable for most
  459. # cases.
  460. #
  461. # EAP-FAST variables:
  462. # pac_file: File path for the PAC entries. wpa_supplicant will need to be able
  463. # to create this file and write updates to it when PAC is being
  464. # provisioned or refreshed. Full path to the file should be used since
  465. # working directory may change when wpa_supplicant is run in the
  466. # background. Alternatively, a named configuration blob can be used by
  467. # setting this to blob://<blob name>
  468. # phase1: fast_provisioning option can be used to enable in-line provisioning
  469. # of EAP-FAST credentials (PAC):
  470. # 0 = disabled,
  471. # 1 = allow unauthenticated provisioning,
  472. # 2 = allow authenticated provisioning,
  473. # 3 = allow both unauthenticated and authenticated provisioning
  474. # fast_max_pac_list_len=<num> option can be used to set the maximum
  475. # number of PAC entries to store in a PAC list (default: 10)
  476. # fast_pac_format=binary option can be used to select binary format for
  477. # storing PAC entries in order to save some space (the default
  478. # text format uses about 2.5 times the size of minimal binary
  479. # format)
  480. #
  481. # wpa_supplicant supports number of "EAP workarounds" to work around
  482. # interoperability issues with incorrectly behaving authentication servers.
  483. # These are enabled by default because some of the issues are present in large
  484. # number of authentication servers. Strict EAP conformance mode can be
  485. # configured by disabling workarounds with eap_workaround=0.
  486. # Example blocks:
  487. # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
  488. network={
  489. ssid="simple"
  490. psk="very secret passphrase"
  491. priority=5
  492. }
  493. # Same as previous, but request SSID-specific scanning (for APs that reject
  494. # broadcast SSID)
  495. network={
  496. ssid="second ssid"
  497. scan_ssid=1
  498. psk="very secret passphrase"
  499. priority=2
  500. }
  501. # Only WPA-PSK is used. Any valid cipher combination is accepted.
  502. network={
  503. ssid="example"
  504. proto=WPA
  505. key_mgmt=WPA-PSK
  506. pairwise=CCMP TKIP
  507. group=CCMP TKIP WEP104 WEP40
  508. psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
  509. priority=2
  510. }
  511. # WPA-Personal(PSK) with TKIP and enforcement for frequent PTK rekeying
  512. network={
  513. ssid="example"
  514. proto=WPA
  515. key_mgmt=WPA-PSK
  516. pairwise=TKIP
  517. group=TKIP
  518. psk="not so secure passphrase"
  519. wpa_ptk_rekey=600
  520. }
  521. # Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that used WEP104
  522. # or WEP40 as the group cipher will not be accepted.
  523. network={
  524. ssid="example"
  525. proto=RSN
  526. key_mgmt=WPA-EAP
  527. pairwise=CCMP TKIP
  528. group=CCMP TKIP
  529. eap=TLS
  530. identity="user@example.com"
  531. ca_cert="/etc/cert/ca.pem"
  532. client_cert="/etc/cert/user.pem"
  533. private_key="/etc/cert/user.prv"
  534. private_key_passwd="password"
  535. priority=1
  536. }
  537. # EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the new peaplabel
  538. # (e.g., Radiator)
  539. network={
  540. ssid="example"
  541. key_mgmt=WPA-EAP
  542. eap=PEAP
  543. identity="user@example.com"
  544. password="foobar"
  545. ca_cert="/etc/cert/ca.pem"
  546. phase1="peaplabel=1"
  547. phase2="auth=MSCHAPV2"
  548. priority=10
  549. }
  550. # EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity for the
  551. # unencrypted use. Real identity is sent only within an encrypted TLS tunnel.
  552. network={
  553. ssid="example"
  554. key_mgmt=WPA-EAP
  555. eap=TTLS
  556. identity="user@example.com"
  557. anonymous_identity="anonymous@example.com"
  558. password="foobar"
  559. ca_cert="/etc/cert/ca.pem"
  560. priority=2
  561. }
  562. # EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the unencrypted
  563. # use. Real identity is sent only within an encrypted TLS tunnel.
  564. network={
  565. ssid="example"
  566. key_mgmt=WPA-EAP
  567. eap=TTLS
  568. identity="user@example.com"
  569. anonymous_identity="anonymous@example.com"
  570. password="foobar"
  571. ca_cert="/etc/cert/ca.pem"
  572. phase2="auth=MSCHAPV2"
  573. }
  574. # WPA-EAP, EAP-TTLS with different CA certificate used for outer and inner
  575. # authentication.
  576. network={
  577. ssid="example"
  578. key_mgmt=WPA-EAP
  579. eap=TTLS
  580. # Phase1 / outer authentication
  581. anonymous_identity="anonymous@example.com"
  582. ca_cert="/etc/cert/ca.pem"
  583. # Phase 2 / inner authentication
  584. phase2="autheap=TLS"
  585. ca_cert2="/etc/cert/ca2.pem"
  586. client_cert2="/etc/cer/user.pem"
  587. private_key2="/etc/cer/user.prv"
  588. private_key2_passwd="password"
  589. priority=2
  590. }
  591. # Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as pairwise and
  592. # group cipher.
  593. network={
  594. ssid="example"
  595. bssid=00:11:22:33:44:55
  596. proto=WPA RSN
  597. key_mgmt=WPA-PSK WPA-EAP
  598. pairwise=CCMP
  599. group=CCMP
  600. psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
  601. }
  602. # Special characters in SSID, so use hex string. Default to WPA-PSK, WPA-EAP
  603. # and all valid ciphers.
  604. network={
  605. ssid=00010203
  606. psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
  607. }
  608. # EAP-SIM with a GSM SIM or USIM
  609. network={
  610. ssid="eap-sim-test"
  611. key_mgmt=WPA-EAP
  612. eap=SIM
  613. pin="1234"
  614. pcsc=""
  615. }
  616. # EAP-PSK
  617. network={
  618. ssid="eap-psk-test"
  619. key_mgmt=WPA-EAP
  620. eap=PSK
  621. anonymous_identity="eap_psk_user"
  622. password=06b4be19da289f475aa46a33cb793029
  623. identity="eap_psk_user@example.com"
  624. }
  625. # IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no WPA) using
  626. # EAP-TLS for authentication and key generation; require both unicast and
  627. # broadcast WEP keys.
  628. network={
  629. ssid="1x-test"
  630. key_mgmt=IEEE8021X
  631. eap=TLS
  632. identity="user@example.com"
  633. ca_cert="/etc/cert/ca.pem"
  634. client_cert="/etc/cert/user.pem"
  635. private_key="/etc/cert/user.prv"
  636. private_key_passwd="password"
  637. eapol_flags=3
  638. }
  639. # LEAP with dynamic WEP keys
  640. network={
  641. ssid="leap-example"
  642. key_mgmt=IEEE8021X
  643. eap=LEAP
  644. identity="user"
  645. password="foobar"
  646. }
  647. # EAP-IKEv2 using shared secrets for both server and peer authentication
  648. network={
  649. ssid="ikev2-example"
  650. key_mgmt=WPA-EAP
  651. eap=IKEV2
  652. identity="user"
  653. password="foobar"
  654. }
  655. # EAP-FAST with WPA (WPA or WPA2)
  656. network={
  657. ssid="eap-fast-test"
  658. key_mgmt=WPA-EAP
  659. eap=FAST
  660. anonymous_identity="FAST-000102030405"
  661. identity="username"
  662. password="password"
  663. phase1="fast_provisioning=1"
  664. pac_file="/etc/wpa_supplicant.eap-fast-pac"
  665. }
  666. network={
  667. ssid="eap-fast-test"
  668. key_mgmt=WPA-EAP
  669. eap=FAST
  670. anonymous_identity="FAST-000102030405"
  671. identity="username"
  672. password="password"
  673. phase1="fast_provisioning=1"
  674. pac_file="blob://eap-fast-pac"
  675. }
  676. # Plaintext connection (no WPA, no IEEE 802.1X)
  677. network={
  678. ssid="plaintext-test"
  679. key_mgmt=NONE
  680. }
  681. # Shared WEP key connection (no WPA, no IEEE 802.1X)
  682. network={
  683. ssid="static-wep-test"
  684. key_mgmt=NONE
  685. wep_key0="abcde"
  686. wep_key1=0102030405
  687. wep_key2="1234567890123"
  688. wep_tx_keyidx=0
  689. priority=5
  690. }
  691. # Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared Key
  692. # IEEE 802.11 authentication
  693. network={
  694. ssid="static-wep-test2"
  695. key_mgmt=NONE
  696. wep_key0="abcde"
  697. wep_key1=0102030405
  698. wep_key2="1234567890123"
  699. wep_tx_keyidx=0
  700. priority=5
  701. auth_alg=SHARED
  702. }
  703. # IBSS/ad-hoc network with WPA-None/TKIP.
  704. network={
  705. ssid="test adhoc"
  706. mode=1
  707. frequency=2412
  708. proto=WPA
  709. key_mgmt=WPA-NONE
  710. pairwise=NONE
  711. group=TKIP
  712. psk="secret passphrase"
  713. }
  714. # Catch all example that allows more or less all configuration modes
  715. network={
  716. ssid="example"
  717. scan_ssid=1
  718. key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
  719. pairwise=CCMP TKIP
  720. group=CCMP TKIP WEP104 WEP40
  721. psk="very secret passphrase"
  722. eap=TTLS PEAP TLS
  723. identity="user@example.com"
  724. password="foobar"
  725. ca_cert="/etc/cert/ca.pem"
  726. client_cert="/etc/cert/user.pem"
  727. private_key="/etc/cert/user.prv"
  728. private_key_passwd="password"
  729. phase1="peaplabel=0"
  730. }
  731. # Example of EAP-TLS with smartcard (openssl engine)
  732. network={
  733. ssid="example"
  734. key_mgmt=WPA-EAP
  735. eap=TLS
  736. proto=RSN
  737. pairwise=CCMP TKIP
  738. group=CCMP TKIP
  739. identity="user@example.com"
  740. ca_cert="/etc/cert/ca.pem"
  741. client_cert="/etc/cert/user.pem"
  742. engine=1
  743. # The engine configured here must be available. Look at
  744. # OpenSSL engine support in the global section.
  745. # The key available through the engine must be the private key
  746. # matching the client certificate configured above.
  747. # use the opensc engine
  748. #engine_id="opensc"
  749. #key_id="45"
  750. # use the pkcs11 engine
  751. engine_id="pkcs11"
  752. key_id="id_45"
  753. # Optional PIN configuration; this can be left out and PIN will be
  754. # asked through the control interface
  755. pin="1234"
  756. }
  757. # Example configuration showing how to use an inlined blob as a CA certificate
  758. # data instead of using external file
  759. network={
  760. ssid="example"
  761. key_mgmt=WPA-EAP
  762. eap=TTLS
  763. identity="user@example.com"
  764. anonymous_identity="anonymous@example.com"
  765. password="foobar"
  766. ca_cert="blob://exampleblob"
  767. priority=20
  768. }
  769. blob-base64-exampleblob={
  770. SGVsbG8gV29ybGQhCg==
  771. }
  772. # Wildcard match for SSID (plaintext APs only). This example select any
  773. # open AP regardless of its SSID.
  774. network={
  775. key_mgmt=NONE
  776. }