wpa_supplicant.conf 34 KB

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