wpa_supplicant.conf 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657
  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 existence 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. # Note: When using MACsec, eapol_version shall be set to 3, which is
  80. # defined in IEEE Std 802.1X-2010.
  81. eapol_version=1
  82. # AP scanning/selection
  83. # By default, wpa_supplicant requests driver to perform AP scanning and then
  84. # uses the scan results to select a suitable AP. Another alternative is to
  85. # allow the driver to take care of AP scanning and selection and use
  86. # wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association
  87. # information from the driver.
  88. # 1: wpa_supplicant initiates scanning and AP selection; if no APs matching to
  89. # the currently enabled networks are found, a new network (IBSS or AP mode
  90. # operation) may be initialized (if configured) (default)
  91. # 0: driver takes care of scanning, AP selection, and IEEE 802.11 association
  92. # parameters (e.g., WPA IE generation); this mode can also be used with
  93. # non-WPA drivers when using IEEE 802.1X mode; do not try to associate with
  94. # APs (i.e., external program needs to control association). This mode must
  95. # also be used when using wired Ethernet drivers.
  96. # Note: macsec_qca driver is one type of Ethernet driver which implements
  97. # macsec feature.
  98. # 2: like 0, but associate with APs using security policy and SSID (but not
  99. # BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to
  100. # enable operation with hidden SSIDs and optimized roaming; in this mode,
  101. # the network blocks in the configuration file are tried one by one until
  102. # the driver reports successful association; each network block should have
  103. # explicit security policy (i.e., only one option in the lists) for
  104. # key_mgmt, pairwise, group, proto variables
  105. # Note: ap_scan=2 should not be used with the nl80211 driver interface (the
  106. # current Linux interface). ap_scan=1 is optimized work working with nl80211.
  107. # For finding networks using hidden SSID, scan_ssid=1 in the network block can
  108. # be used with nl80211.
  109. # When using IBSS or AP mode, ap_scan=2 mode can force the new network to be
  110. # created immediately regardless of scan results. ap_scan=1 mode will first try
  111. # to scan for existing networks and only if no matches with the enabled
  112. # networks are found, a new IBSS or AP mode network is created.
  113. ap_scan=1
  114. # Whether to force passive scan for network connection
  115. #
  116. # By default, scans will send out Probe Request frames on channels that allow
  117. # active scanning. This advertise the local station to the world. Normally this
  118. # is fine, but users may wish to do passive scanning where the radio should only
  119. # listen quietly for Beacon frames and not send any Probe Request frames. Actual
  120. # functionality may be driver dependent.
  121. #
  122. # This parameter can be used to force only passive scanning to be used
  123. # for network connection cases. It should be noted that this will slow
  124. # down scan operations and reduce likelihood of finding the AP. In
  125. # addition, some use cases will override this due to functional
  126. # requirements, e.g., for finding an AP that uses hidden SSID
  127. # (scan_ssid=1) or P2P device discovery.
  128. #
  129. # 0: Do normal scans (allow active scans) (default)
  130. # 1: Do passive scans.
  131. #passive_scan=0
  132. # MPM residency
  133. # By default, wpa_supplicant implements the mesh peering manager (MPM) for an
  134. # open mesh. However, if the driver can implement the MPM, you may set this to
  135. # 0 to use the driver version. When AMPE is enabled, the wpa_supplicant MPM is
  136. # always used.
  137. # 0: MPM lives in the driver
  138. # 1: wpa_supplicant provides an MPM which handles peering (default)
  139. #user_mpm=1
  140. # Maximum number of peer links (0-255; default: 99)
  141. # Maximum number of mesh peering currently maintained by the STA.
  142. #max_peer_links=99
  143. # Timeout in seconds to detect STA inactivity (default: 300 seconds)
  144. #
  145. # This timeout value is used in mesh STA to clean up inactive stations.
  146. #mesh_max_inactivity=300
  147. # cert_in_cb - Whether to include a peer certificate dump in events
  148. # This controls whether peer certificates for authentication server and
  149. # its certificate chain are included in EAP peer certificate events. This is
  150. # enabled by default.
  151. #cert_in_cb=1
  152. # EAP fast re-authentication
  153. # By default, fast re-authentication is enabled for all EAP methods that
  154. # support it. This variable can be used to disable fast re-authentication.
  155. # Normally, there is no need to disable this.
  156. fast_reauth=1
  157. # OpenSSL Engine support
  158. # These options can be used to load OpenSSL engines.
  159. # The two engines that are supported currently are shown below:
  160. # They are both from the opensc project (http://www.opensc.org/)
  161. # By default no engines are loaded.
  162. # make the opensc engine available
  163. #opensc_engine_path=/usr/lib/opensc/engine_opensc.so
  164. # make the pkcs11 engine available
  165. #pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
  166. # configure the path to the pkcs11 module required by the pkcs11 engine
  167. #pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
  168. # OpenSSL cipher string
  169. #
  170. # This is an OpenSSL specific configuration option for configuring the default
  171. # ciphers. If not set, "DEFAULT:!EXP:!LOW" is used as the default.
  172. # See https://www.openssl.org/docs/apps/ciphers.html for OpenSSL documentation
  173. # on cipher suite configuration. This is applicable only if wpa_supplicant is
  174. # built to use OpenSSL.
  175. #openssl_ciphers=DEFAULT:!EXP:!LOW
  176. # Dynamic EAP methods
  177. # If EAP methods were built dynamically as shared object files, they need to be
  178. # loaded here before being used in the network blocks. By default, EAP methods
  179. # are included statically in the build, so these lines are not needed
  180. #load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
  181. #load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
  182. # Driver interface parameters
  183. # This field can be used to configure arbitrary driver interace parameters. The
  184. # format is specific to the selected driver interface. This field is not used
  185. # in most cases.
  186. #driver_param="field=value"
  187. # Country code
  188. # The ISO/IEC alpha2 country code for the country in which this device is
  189. # currently operating.
  190. #country=US
  191. # Maximum lifetime for PMKSA in seconds; default 43200
  192. #dot11RSNAConfigPMKLifetime=43200
  193. # Threshold for reauthentication (percentage of PMK lifetime); default 70
  194. #dot11RSNAConfigPMKReauthThreshold=70
  195. # Timeout for security association negotiation in seconds; default 60
  196. #dot11RSNAConfigSATimeout=60
  197. # Wi-Fi Protected Setup (WPS) parameters
  198. # Universally Unique IDentifier (UUID; see RFC 4122) of the device
  199. # If not configured, UUID will be generated based on the local MAC address.
  200. #uuid=12345678-9abc-def0-1234-56789abcdef0
  201. # Device Name
  202. # User-friendly description of device; up to 32 octets encoded in UTF-8
  203. #device_name=Wireless Client
  204. # Manufacturer
  205. # The manufacturer of the device (up to 64 ASCII characters)
  206. #manufacturer=Company
  207. # Model Name
  208. # Model of the device (up to 32 ASCII characters)
  209. #model_name=cmodel
  210. # Model Number
  211. # Additional device description (up to 32 ASCII characters)
  212. #model_number=123
  213. # Serial Number
  214. # Serial number of the device (up to 32 characters)
  215. #serial_number=12345
  216. # Primary Device Type
  217. # Used format: <categ>-<OUI>-<subcateg>
  218. # categ = Category as an integer value
  219. # OUI = OUI and type octet as a 4-octet hex-encoded value; 0050F204 for
  220. # default WPS OUI
  221. # subcateg = OUI-specific Sub Category as an integer value
  222. # Examples:
  223. # 1-0050F204-1 (Computer / PC)
  224. # 1-0050F204-2 (Computer / Server)
  225. # 5-0050F204-1 (Storage / NAS)
  226. # 6-0050F204-1 (Network Infrastructure / AP)
  227. #device_type=1-0050F204-1
  228. # OS Version
  229. # 4-octet operating system version number (hex string)
  230. #os_version=01020300
  231. # Config Methods
  232. # List of the supported configuration methods
  233. # Available methods: usba ethernet label display ext_nfc_token int_nfc_token
  234. # nfc_interface push_button keypad virtual_display physical_display
  235. # virtual_push_button physical_push_button
  236. # For WSC 1.0:
  237. #config_methods=label display push_button keypad
  238. # For WSC 2.0:
  239. #config_methods=label virtual_display virtual_push_button keypad
  240. # Credential processing
  241. # 0 = process received credentials internally (default)
  242. # 1 = do not process received credentials; just pass them over ctrl_iface to
  243. # external program(s)
  244. # 2 = process received credentials internally and pass them over ctrl_iface
  245. # to external program(s)
  246. #wps_cred_processing=0
  247. # Vendor attribute in WPS M1, e.g., Windows 7 Vertical Pairing
  248. # The vendor attribute contents to be added in M1 (hex string)
  249. #wps_vendor_ext_m1=000137100100020001
  250. # NFC password token for WPS
  251. # These parameters can be used to configure a fixed NFC password token for the
  252. # station. This can be generated, e.g., with nfc_pw_token. When these
  253. # parameters are used, the station is assumed to be deployed with a NFC tag
  254. # that includes the matching NFC password token (e.g., written based on the
  255. # NDEF record from nfc_pw_token).
  256. #
  257. #wps_nfc_dev_pw_id: Device Password ID (16..65535)
  258. #wps_nfc_dh_pubkey: Hexdump of DH Public Key
  259. #wps_nfc_dh_privkey: Hexdump of DH Private Key
  260. #wps_nfc_dev_pw: Hexdump of Device Password
  261. # Priority for the networks added through WPS
  262. # This priority value will be set to each network profile that is added
  263. # by executing the WPS protocol.
  264. #wps_priority=0
  265. # Maximum number of BSS entries to keep in memory
  266. # Default: 200
  267. # This can be used to limit memory use on the BSS entries (cached scan
  268. # results). A larger value may be needed in environments that have huge number
  269. # of APs when using ap_scan=1 mode.
  270. #bss_max_count=200
  271. # Automatic scan
  272. # This is an optional set of parameters for automatic scanning
  273. # within an interface in following format:
  274. #autoscan=<autoscan module name>:<module parameters>
  275. # autoscan is like bgscan but on disconnected or inactive state.
  276. # For instance, on exponential module parameters would be <base>:<limit>
  277. #autoscan=exponential:3:300
  278. # Which means a delay between scans on a base exponential of 3,
  279. # up to the limit of 300 seconds (3, 9, 27 ... 300)
  280. # For periodic module, parameters would be <fixed interval>
  281. #autoscan=periodic:30
  282. # So a delay of 30 seconds will be applied between each scan.
  283. # Note: If sched_scan_plans are configured and supported by the driver,
  284. # autoscan is ignored.
  285. # filter_ssids - SSID-based scan result filtering
  286. # 0 = do not filter scan results (default)
  287. # 1 = only include configured SSIDs in scan results/BSS table
  288. #filter_ssids=0
  289. # Password (and passphrase, etc.) backend for external storage
  290. # format: <backend name>[:<optional backend parameters>]
  291. #ext_password_backend=test:pw1=password|pw2=testing
  292. # Disable P2P functionality
  293. # p2p_disabled=1
  294. # Timeout in seconds to detect STA inactivity (default: 300 seconds)
  295. #
  296. # This timeout value is used in P2P GO mode to clean up
  297. # inactive stations.
  298. #p2p_go_max_inactivity=300
  299. # Passphrase length (8..63) for P2P GO
  300. #
  301. # This parameter controls the length of the random passphrase that is
  302. # generated at the GO. Default: 8.
  303. #p2p_passphrase_len=8
  304. # Extra delay between concurrent P2P search iterations
  305. #
  306. # This value adds extra delay in milliseconds between concurrent search
  307. # iterations to make p2p_find friendlier to concurrent operations by avoiding
  308. # it from taking 100% of radio resources. The default value is 500 ms.
  309. #p2p_search_delay=500
  310. # Opportunistic Key Caching (also known as Proactive Key Caching) default
  311. # This parameter can be used to set the default behavior for the
  312. # proactive_key_caching parameter. By default, OKC is disabled unless enabled
  313. # with the global okc=1 parameter or with the per-network
  314. # proactive_key_caching=1 parameter. With okc=1, OKC is enabled by default, but
  315. # can be disabled with per-network proactive_key_caching=0 parameter.
  316. #okc=0
  317. # Protected Management Frames default
  318. # This parameter can be used to set the default behavior for the ieee80211w
  319. # parameter. By default, PMF is disabled unless enabled with the global pmf=1/2
  320. # parameter or with the per-network ieee80211w=1/2 parameter. With pmf=1/2, PMF
  321. # is enabled/required by default, but can be disabled with the per-network
  322. # ieee80211w parameter.
  323. #pmf=0
  324. # Enabled SAE finite cyclic groups in preference order
  325. # By default (if this parameter is not set), the mandatory group 19 (ECC group
  326. # defined over a 256-bit prime order field) is preferred, but other groups are
  327. # also enabled. If this parameter is set, the groups will be tried in the
  328. # indicated order. The group values are listed in the IANA registry:
  329. # http://www.iana.org/assignments/ipsec-registry/ipsec-registry.xml#ipsec-registry-9
  330. #sae_groups=21 20 19 26 25
  331. # Default value for DTIM period (if not overridden in network block)
  332. #dtim_period=2
  333. # Default value for Beacon interval (if not overridden in network block)
  334. #beacon_int=100
  335. # Additional vendor specific elements for Beacon and Probe Response frames
  336. # This parameter can be used to add additional vendor specific element(s) into
  337. # the end of the Beacon and Probe Response frames. The format for these
  338. # element(s) is a hexdump of the raw information elements (id+len+payload for
  339. # one or more elements). This is used in AP and P2P GO modes.
  340. #ap_vendor_elements=dd0411223301
  341. # Ignore scan results older than request
  342. #
  343. # The driver may have a cache of scan results that makes it return
  344. # information that is older than our scan trigger. This parameter can
  345. # be used to configure such old information to be ignored instead of
  346. # allowing it to update the internal BSS table.
  347. #ignore_old_scan_res=0
  348. # scan_cur_freq: Whether to scan only the current frequency
  349. # 0: Scan all available frequencies. (Default)
  350. # 1: Scan current operating frequency if another VIF on the same radio
  351. # is already associated.
  352. # MAC address policy default
  353. # 0 = use permanent MAC address
  354. # 1 = use random MAC address for each ESS connection
  355. # 2 = like 1, but maintain OUI (with local admin bit set)
  356. #
  357. # By default, permanent MAC address is used unless policy is changed by
  358. # the per-network mac_addr parameter. Global mac_addr=1 can be used to
  359. # change this default behavior.
  360. #mac_addr=0
  361. # Lifetime of random MAC address in seconds (default: 60)
  362. #rand_addr_lifetime=60
  363. # MAC address policy for pre-association operations (scanning, ANQP)
  364. # 0 = use permanent MAC address
  365. # 1 = use random MAC address
  366. # 2 = like 1, but maintain OUI (with local admin bit set)
  367. #preassoc_mac_addr=0
  368. # Interworking (IEEE 802.11u)
  369. # Enable Interworking
  370. # interworking=1
  371. # Homogenous ESS identifier
  372. # If this is set, scans will be used to request response only from BSSes
  373. # belonging to the specified Homogeneous ESS. This is used only if interworking
  374. # is enabled.
  375. # hessid=00:11:22:33:44:55
  376. # Automatic network selection behavior
  377. # 0 = do not automatically go through Interworking network selection
  378. # (i.e., require explicit interworking_select command for this; default)
  379. # 1 = perform Interworking network selection if one or more
  380. # credentials have been configured and scan did not find a
  381. # matching network block
  382. #auto_interworking=0
  383. # credential block
  384. #
  385. # Each credential used for automatic network selection is configured as a set
  386. # of parameters that are compared to the information advertised by the APs when
  387. # interworking_select and interworking_connect commands are used.
  388. #
  389. # credential fields:
  390. #
  391. # temporary: Whether this credential is temporary and not to be saved
  392. #
  393. # priority: Priority group
  394. # By default, all networks and credentials get the same priority group
  395. # (0). This field can be used to give higher priority for credentials
  396. # (and similarly in struct wpa_ssid for network blocks) to change the
  397. # Interworking automatic networking selection behavior. The matching
  398. # network (based on either an enabled network block or a credential)
  399. # with the highest priority value will be selected.
  400. #
  401. # pcsc: Use PC/SC and SIM/USIM card
  402. #
  403. # realm: Home Realm for Interworking
  404. #
  405. # username: Username for Interworking network selection
  406. #
  407. # password: Password for Interworking network selection
  408. #
  409. # ca_cert: CA certificate for Interworking network selection
  410. #
  411. # client_cert: File path to client certificate file (PEM/DER)
  412. # This field is used with Interworking networking selection for a case
  413. # where client certificate/private key is used for authentication
  414. # (EAP-TLS). Full path to the file should be used since working
  415. # directory may change when wpa_supplicant is run in the background.
  416. #
  417. # Alternatively, a named configuration blob can be used by setting
  418. # this to blob://blob_name.
  419. #
  420. # private_key: File path to client private key file (PEM/DER/PFX)
  421. # When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be
  422. # commented out. Both the private key and certificate will be read
  423. # from the PKCS#12 file in this case. Full path to the file should be
  424. # used since working directory may change when wpa_supplicant is run
  425. # in the background.
  426. #
  427. # Windows certificate store can be used by leaving client_cert out and
  428. # configuring private_key in one of the following formats:
  429. #
  430. # cert://substring_to_match
  431. #
  432. # hash://certificate_thumbprint_in_hex
  433. #
  434. # For example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
  435. #
  436. # Note that when running wpa_supplicant as an application, the user
  437. # certificate store (My user account) is used, whereas computer store
  438. # (Computer account) is used when running wpasvc as a service.
  439. #
  440. # Alternatively, a named configuration blob can be used by setting
  441. # this to blob://blob_name.
  442. #
  443. # private_key_passwd: Password for private key file
  444. #
  445. # imsi: IMSI in <MCC> | <MNC> | '-' | <MSIN> format
  446. #
  447. # milenage: Milenage parameters for SIM/USIM simulator in <Ki>:<OPc>:<SQN>
  448. # format
  449. #
  450. # domain: Home service provider FQDN(s)
  451. # This is used to compare against the Domain Name List to figure out
  452. # whether the AP is operated by the Home SP. Multiple domain entries can
  453. # be used to configure alternative FQDNs that will be considered home
  454. # networks.
  455. #
  456. # roaming_consortium: Roaming Consortium OI
  457. # If roaming_consortium_len is non-zero, this field contains the
  458. # Roaming Consortium OI that can be used to determine which access
  459. # points support authentication with this credential. This is an
  460. # alternative to the use of the realm parameter. When using Roaming
  461. # Consortium to match the network, the EAP parameters need to be
  462. # pre-configured with the credential since the NAI Realm information
  463. # may not be available or fetched.
  464. #
  465. # eap: Pre-configured EAP method
  466. # This optional field can be used to specify which EAP method will be
  467. # used with this credential. If not set, the EAP method is selected
  468. # automatically based on ANQP information (e.g., NAI Realm).
  469. #
  470. # phase1: Pre-configure Phase 1 (outer authentication) parameters
  471. # This optional field is used with like the 'eap' parameter.
  472. #
  473. # phase2: Pre-configure Phase 2 (inner authentication) parameters
  474. # This optional field is used with like the 'eap' parameter.
  475. #
  476. # excluded_ssid: Excluded SSID
  477. # This optional field can be used to excluded specific SSID(s) from
  478. # matching with the network. Multiple entries can be used to specify more
  479. # than one SSID.
  480. #
  481. # roaming_partner: Roaming partner information
  482. # This optional field can be used to configure preferences between roaming
  483. # partners. The field is a string in following format:
  484. # <FQDN>,<0/1 exact match>,<priority>,<* or country code>
  485. # (non-exact match means any subdomain matches the entry; priority is in
  486. # 0..255 range with 0 being the highest priority)
  487. #
  488. # update_identifier: PPS MO ID
  489. # (Hotspot 2.0 PerProviderSubscription/UpdateIdentifier)
  490. #
  491. # provisioning_sp: FQDN of the SP that provisioned the credential
  492. # This optional field can be used to keep track of the SP that provisioned
  493. # the credential to find the PPS MO (./Wi-Fi/<provisioning_sp>).
  494. #
  495. # Minimum backhaul threshold (PPS/<X+>/Policy/MinBackhauldThreshold/*)
  496. # These fields can be used to specify minimum download/upload backhaul
  497. # bandwidth that is preferred for the credential. This constraint is
  498. # ignored if the AP does not advertise WAN Metrics information or if the
  499. # limit would prevent any connection. Values are in kilobits per second.
  500. # min_dl_bandwidth_home
  501. # min_ul_bandwidth_home
  502. # min_dl_bandwidth_roaming
  503. # min_ul_bandwidth_roaming
  504. #
  505. # max_bss_load: Maximum BSS Load Channel Utilization (1..255)
  506. # (PPS/<X+>/Policy/MaximumBSSLoadValue)
  507. # This value is used as the maximum channel utilization for network
  508. # selection purposes for home networks. If the AP does not advertise
  509. # BSS Load or if the limit would prevent any connection, this constraint
  510. # will be ignored.
  511. #
  512. # req_conn_capab: Required connection capability
  513. # (PPS/<X+>/Policy/RequiredProtoPortTuple)
  514. # This value is used to configure set of required protocol/port pairs that
  515. # a roaming network shall support (include explicitly in Connection
  516. # Capability ANQP element). This constraint is ignored if the AP does not
  517. # advertise Connection Capability or if this constraint would prevent any
  518. # network connection. This policy is not used in home networks.
  519. # Format: <protocol>[:<comma-separated list of ports]
  520. # Multiple entries can be used to list multiple requirements.
  521. # For example, number of common TCP protocols:
  522. # req_conn_capab=6,22,80,443
  523. # For example, IPSec/IKE:
  524. # req_conn_capab=17:500
  525. # req_conn_capab=50
  526. #
  527. # ocsp: Whether to use/require OCSP to check server certificate
  528. # 0 = do not use OCSP stapling (TLS certificate status extension)
  529. # 1 = try to use OCSP stapling, but not require response
  530. # 2 = require valid OCSP stapling response
  531. # 3 = require valid OCSP stapling response for all not-trusted
  532. # certificates in the server certificate chain
  533. #
  534. # sim_num: Identifier for which SIM to use in multi-SIM devices
  535. #
  536. # for example:
  537. #
  538. #cred={
  539. # realm="example.com"
  540. # username="user@example.com"
  541. # password="password"
  542. # ca_cert="/etc/wpa_supplicant/ca.pem"
  543. # domain="example.com"
  544. #}
  545. #
  546. #cred={
  547. # imsi="310026-000000000"
  548. # milenage="90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82"
  549. #}
  550. #
  551. #cred={
  552. # realm="example.com"
  553. # username="user"
  554. # password="password"
  555. # ca_cert="/etc/wpa_supplicant/ca.pem"
  556. # domain="example.com"
  557. # roaming_consortium=223344
  558. # eap=TTLS
  559. # phase2="auth=MSCHAPV2"
  560. #}
  561. # Hotspot 2.0
  562. # hs20=1
  563. # Scheduled scan plans
  564. #
  565. # A space delimited list of scan plans. Each scan plan specifies the scan
  566. # interval and number of iterations, delimited by a colon. The last scan plan
  567. # will run infinitely and thus must specify only the interval and not the number
  568. # of iterations.
  569. #
  570. # The driver advertises the maximum number of scan plans supported. If more scan
  571. # plans than supported are configured, only the first ones are set (up to the
  572. # maximum supported). The last scan plan that specifies only the interval is
  573. # always set as the last plan.
  574. #
  575. # If the scan interval or the number of iterations for a scan plan exceeds the
  576. # maximum supported, it will be set to the maximum supported value.
  577. #
  578. # Format:
  579. # sched_scan_plans=<interval:iterations> <interval:iterations> ... <interval>
  580. #
  581. # Example:
  582. # sched_scan_plans=10:100 20:200 30
  583. # Multi Band Operation (MBO) non-preferred channels
  584. # A space delimited list of non-preferred channels where each channel is a colon
  585. # delimited list of values. Reason detail is optional.
  586. # Format:
  587. # non_pref_chan=<oper_class>:<chan>:<preference>:<reason>[:reason_detail]
  588. # Example:
  589. # non_pref_chan="81:5:10:2:0 81:1:0:2:0 81:9:0:2"
  590. # MBO Cellular Data Capabilities
  591. # 1 = Cellular data connection available
  592. # 2 = Cellular data connection not available
  593. # 3 = Not cellular capable (default)
  594. #mbo_cell_capa=3
  595. # network block
  596. #
  597. # Each network (usually AP's sharing the same SSID) is configured as a separate
  598. # block in this configuration file. The network blocks are in preference order
  599. # (the first match is used).
  600. #
  601. # network block fields:
  602. #
  603. # disabled:
  604. # 0 = this network can be used (default)
  605. # 1 = this network block is disabled (can be enabled through ctrl_iface,
  606. # e.g., with wpa_cli or wpa_gui)
  607. #
  608. # id_str: Network identifier string for external scripts. This value is passed
  609. # to external action script through wpa_cli as WPA_ID_STR environment
  610. # variable to make it easier to do network specific configuration.
  611. #
  612. # ssid: SSID (mandatory); network name in one of the optional formats:
  613. # - an ASCII string with double quotation
  614. # - a hex string (two characters per octet of SSID)
  615. # - a printf-escaped ASCII string P"<escaped string>"
  616. #
  617. # scan_ssid:
  618. # 0 = do not scan this SSID with specific Probe Request frames (default)
  619. # 1 = scan with SSID-specific Probe Request frames (this can be used to
  620. # find APs that do not accept broadcast SSID or use multiple SSIDs;
  621. # this will add latency to scanning, so enable this only when needed)
  622. #
  623. # bssid: BSSID (optional); if set, this network block is used only when
  624. # associating with the AP using the configured BSSID
  625. #
  626. # priority: priority group (integer)
  627. # By default, all networks will get same priority group (0). If some of the
  628. # networks are more desirable, this field can be used to change the order in
  629. # which wpa_supplicant goes through the networks when selecting a BSS. The
  630. # priority groups will be iterated in decreasing priority (i.e., the larger the
  631. # priority value, the sooner the network is matched against the scan results).
  632. # Within each priority group, networks will be selected based on security
  633. # policy, signal strength, etc.
  634. # Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode are not
  635. # using this priority to select the order for scanning. Instead, they try the
  636. # networks in the order that used in the configuration file.
  637. #
  638. # mode: IEEE 802.11 operation mode
  639. # 0 = infrastructure (Managed) mode, i.e., associate with an AP (default)
  640. # 1 = IBSS (ad-hoc, peer-to-peer)
  641. # 2 = AP (access point)
  642. # Note: IBSS can only be used with key_mgmt NONE (plaintext and static WEP) and
  643. # WPA-PSK (with proto=RSN). In addition, key_mgmt=WPA-NONE (fixed group key
  644. # TKIP/CCMP) is available for backwards compatibility, but its use is
  645. # deprecated. WPA-None requires following network block options:
  646. # proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not
  647. # both), and psk must also be set.
  648. #
  649. # frequency: Channel frequency in megahertz (MHz) for IBSS, e.g.,
  650. # 2412 = IEEE 802.11b/g channel 1. This value is used to configure the initial
  651. # channel for IBSS (adhoc) networks. It is ignored in the infrastructure mode.
  652. # In addition, this value is only used by the station that creates the IBSS. If
  653. # an IBSS network with the configured SSID is already present, the frequency of
  654. # the network will be used instead of this configured value.
  655. #
  656. # pbss: Whether to use PBSS. Relevant to IEEE 802.11ad networks only.
  657. # 0 = do not use PBSS
  658. # 1 = use PBSS
  659. # 2 = don't care (not allowed in AP mode)
  660. # Used together with mode configuration. When mode is AP, it means to start a
  661. # PCP instead of a regular AP. When mode is infrastructure it means connect
  662. # to a PCP instead of AP. In this mode you can also specify 2 (don't care)
  663. # which means connect to either PCP or AP.
  664. # P2P_GO and P2P_GROUP_FORMATION modes must use PBSS in IEEE 802.11ad network.
  665. # For more details, see IEEE Std 802.11ad-2012.
  666. #
  667. # scan_freq: List of frequencies to scan
  668. # Space-separated list of frequencies in MHz to scan when searching for this
  669. # BSS. If the subset of channels used by the network is known, this option can
  670. # be used to optimize scanning to not occur on channels that the network does
  671. # not use. Example: scan_freq=2412 2437 2462
  672. #
  673. # freq_list: Array of allowed frequencies
  674. # Space-separated list of frequencies in MHz to allow for selecting the BSS. If
  675. # set, scan results that do not match any of the specified frequencies are not
  676. # considered when selecting a BSS.
  677. #
  678. # This can also be set on the outside of the network block. In this case,
  679. # it limits the frequencies that will be scanned.
  680. #
  681. # bgscan: Background scanning
  682. # wpa_supplicant behavior for background scanning can be specified by
  683. # configuring a bgscan module. These modules are responsible for requesting
  684. # background scans for the purpose of roaming within an ESS (i.e., within a
  685. # single network block with all the APs using the same SSID). The bgscan
  686. # parameter uses following format: "<bgscan module name>:<module parameters>"
  687. # Following bgscan modules are available:
  688. # simple - Periodic background scans based on signal strength
  689. # bgscan="simple:<short bgscan interval in seconds>:<signal strength threshold>:
  690. # <long interval>"
  691. # bgscan="simple:30:-45:300"
  692. # learn - Learn channels used by the network and try to avoid bgscans on other
  693. # channels (experimental)
  694. # bgscan="learn:<short bgscan interval in seconds>:<signal strength threshold>:
  695. # <long interval>[:<database file name>]"
  696. # bgscan="learn:30:-45:300:/etc/wpa_supplicant/network1.bgscan"
  697. # Explicitly disable bgscan by setting
  698. # bgscan=""
  699. #
  700. # This option can also be set outside of all network blocks for the bgscan
  701. # parameter to apply for all the networks that have no specific bgscan
  702. # parameter.
  703. #
  704. # proto: list of accepted protocols
  705. # WPA = WPA/IEEE 802.11i/D3.0
  706. # RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for RSN)
  707. # If not set, this defaults to: WPA RSN
  708. #
  709. # key_mgmt: list of accepted authenticated key management protocols
  710. # WPA-PSK = WPA pre-shared key (this requires 'psk' field)
  711. # WPA-EAP = WPA using EAP authentication
  712. # IEEE8021X = IEEE 802.1X using EAP authentication and (optionally) dynamically
  713. # generated WEP keys
  714. # NONE = WPA is not used; plaintext or static WEP could be used
  715. # WPA-NONE = WPA-None for IBSS (deprecated; use proto=RSN key_mgmt=WPA-PSK
  716. # instead)
  717. # FT-PSK = Fast BSS Transition (IEEE 802.11r) with pre-shared key
  718. # FT-EAP = Fast BSS Transition (IEEE 802.11r) with EAP authentication
  719. # WPA-PSK-SHA256 = Like WPA-PSK but using stronger SHA256-based algorithms
  720. # WPA-EAP-SHA256 = Like WPA-EAP but using stronger SHA256-based algorithms
  721. # SAE = Simultaneous authentication of equals; pre-shared key/password -based
  722. # authentication with stronger security than WPA-PSK especially when using
  723. # not that strong password
  724. # FT-SAE = SAE with FT
  725. # WPA-EAP-SUITE-B = Suite B 128-bit level
  726. # WPA-EAP-SUITE-B-192 = Suite B 192-bit level
  727. # OSEN = Hotspot 2.0 Rel 2 online signup connection
  728. # If not set, this defaults to: WPA-PSK WPA-EAP
  729. #
  730. # ieee80211w: whether management frame protection is enabled
  731. # 0 = disabled (default unless changed with the global pmf parameter)
  732. # 1 = optional
  733. # 2 = required
  734. # The most common configuration options for this based on the PMF (protected
  735. # management frames) certification program are:
  736. # PMF enabled: ieee80211w=1 and key_mgmt=WPA-EAP WPA-EAP-SHA256
  737. # PMF required: ieee80211w=2 and key_mgmt=WPA-EAP-SHA256
  738. # (and similarly for WPA-PSK and WPA-WPSK-SHA256 if WPA2-Personal is used)
  739. #
  740. # auth_alg: list of allowed IEEE 802.11 authentication algorithms
  741. # OPEN = Open System authentication (required for WPA/WPA2)
  742. # SHARED = Shared Key authentication (requires static WEP keys)
  743. # LEAP = LEAP/Network EAP (only used with LEAP)
  744. # If not set, automatic selection is used (Open System with LEAP enabled if
  745. # LEAP is allowed as one of the EAP methods).
  746. #
  747. # pairwise: list of accepted pairwise (unicast) ciphers for WPA
  748. # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
  749. # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
  750. # NONE = Use only Group Keys (deprecated, should not be included if APs support
  751. # pairwise keys)
  752. # If not set, this defaults to: CCMP TKIP
  753. #
  754. # group: list of accepted group (broadcast/multicast) ciphers for WPA
  755. # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
  756. # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
  757. # WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
  758. # WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE 802.11]
  759. # If not set, this defaults to: CCMP TKIP WEP104 WEP40
  760. #
  761. # psk: WPA preshared key; 256-bit pre-shared key
  762. # The key used in WPA-PSK mode can be entered either as 64 hex-digits, i.e.,
  763. # 32 bytes or as an ASCII passphrase (in which case, the real PSK will be
  764. # generated using the passphrase and SSID). ASCII passphrase must be between
  765. # 8 and 63 characters (inclusive). ext:<name of external PSK field> format can
  766. # be used to indicate that the PSK/passphrase is stored in external storage.
  767. # This field is not needed, if WPA-EAP is used.
  768. # Note: Separate tool, wpa_passphrase, can be used to generate 256-bit keys
  769. # from ASCII passphrase. This process uses lot of CPU and wpa_supplicant
  770. # startup and reconfiguration time can be optimized by generating the PSK only
  771. # only when the passphrase or SSID has actually changed.
  772. #
  773. # mem_only_psk: Whether to keep PSK/passphrase only in memory
  774. # 0 = allow psk/passphrase to be stored to the configuration file
  775. # 1 = do not store psk/passphrase to the configuration file
  776. #mem_only_psk=0
  777. #
  778. # eapol_flags: IEEE 802.1X/EAPOL options (bit field)
  779. # Dynamic WEP key required for non-WPA mode
  780. # bit0 (1): require dynamically generated unicast WEP key
  781. # bit1 (2): require dynamically generated broadcast WEP key
  782. # (3 = require both keys; default)
  783. # Note: When using wired authentication (including macsec_qca driver),
  784. # eapol_flags must be set to 0 for the authentication to be completed
  785. # successfully.
  786. #
  787. # macsec_policy: IEEE 802.1X/MACsec options
  788. # This determines how sessions are secured with MACsec. It is currently
  789. # applicable only when using the macsec_qca driver interface.
  790. # 0: MACsec not in use (default)
  791. # 1: MACsec enabled - Should secure, accept key server's advice to
  792. # determine whether to use a secure session or not.
  793. #
  794. # mixed_cell: This option can be used to configure whether so called mixed
  795. # cells, i.e., networks that use both plaintext and encryption in the same
  796. # SSID, are allowed when selecting a BSS from scan results.
  797. # 0 = disabled (default)
  798. # 1 = enabled
  799. #
  800. # proactive_key_caching:
  801. # Enable/disable opportunistic PMKSA caching for WPA2.
  802. # 0 = disabled (default unless changed with the global okc parameter)
  803. # 1 = enabled
  804. #
  805. # wep_key0..3: Static WEP key (ASCII in double quotation, e.g. "abcde" or
  806. # hex without quotation, e.g., 0102030405)
  807. # wep_tx_keyidx: Default WEP key index (TX) (0..3)
  808. #
  809. # peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e DLS) is
  810. # allowed. This is only used with RSN/WPA2.
  811. # 0 = disabled (default)
  812. # 1 = enabled
  813. #peerkey=1
  814. #
  815. # wpa_ptk_rekey: Maximum lifetime for PTK in seconds. This can be used to
  816. # enforce rekeying of PTK to mitigate some attacks against TKIP deficiencies.
  817. #
  818. # Following fields are only used with internal EAP implementation.
  819. # eap: space-separated list of accepted EAP methods
  820. # MD5 = EAP-MD5 (unsecure and does not generate keying material ->
  821. # cannot be used with WPA; to be used as a Phase 2 method
  822. # with EAP-PEAP or EAP-TTLS)
  823. # MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with WPA; to be used
  824. # as a Phase 2 method with EAP-PEAP or EAP-TTLS)
  825. # OTP = EAP-OTP (cannot be used separately with WPA; to be used
  826. # as a Phase 2 method with EAP-PEAP or EAP-TTLS)
  827. # GTC = EAP-GTC (cannot be used separately with WPA; to be used
  828. # as a Phase 2 method with EAP-PEAP or EAP-TTLS)
  829. # TLS = EAP-TLS (client and server certificate)
  830. # PEAP = EAP-PEAP (with tunnelled EAP authentication)
  831. # TTLS = EAP-TTLS (with tunnelled EAP or PAP/CHAP/MSCHAP/MSCHAPV2
  832. # authentication)
  833. # If not set, all compiled in methods are allowed.
  834. #
  835. # identity: Identity string for EAP
  836. # This field is also used to configure user NAI for
  837. # EAP-PSK/PAX/SAKE/GPSK.
  838. # anonymous_identity: Anonymous identity string for EAP (to be used as the
  839. # unencrypted identity with EAP types that support different tunnelled
  840. # identity, e.g., EAP-TTLS). This field can also be used with
  841. # EAP-SIM/AKA/AKA' to store the pseudonym identity.
  842. # password: Password string for EAP. This field can include either the
  843. # plaintext password (using ASCII or hex string) or a NtPasswordHash
  844. # (16-byte MD4 hash of password) in hash:<32 hex digits> format.
  845. # NtPasswordHash can only be used when the password is for MSCHAPv2 or
  846. # MSCHAP (EAP-MSCHAPv2, EAP-TTLS/MSCHAPv2, EAP-TTLS/MSCHAP, LEAP).
  847. # EAP-PSK (128-bit PSK), EAP-PAX (128-bit PSK), and EAP-SAKE (256-bit
  848. # PSK) is also configured using this field. For EAP-GPSK, this is a
  849. # variable length PSK. ext:<name of external password field> format can
  850. # be used to indicate that the password is stored in external storage.
  851. # ca_cert: File path to CA certificate file (PEM/DER). This file can have one
  852. # or more trusted CA certificates. If ca_cert and ca_path are not
  853. # included, server certificate will not be verified. This is insecure and
  854. # a trusted CA certificate should always be configured when using
  855. # EAP-TLS/TTLS/PEAP. Full path should be used since working directory may
  856. # change when wpa_supplicant is run in the background.
  857. #
  858. # Alternatively, this can be used to only perform matching of the server
  859. # certificate (SHA-256 hash of the DER encoded X.509 certificate). In
  860. # this case, the possible CA certificates in the server certificate chain
  861. # are ignored and only the server certificate is verified. This is
  862. # configured with the following format:
  863. # hash:://server/sha256/cert_hash_in_hex
  864. # For example: "hash://server/sha256/
  865. # 5a1bc1296205e6fdbe3979728efe3920798885c1c4590b5f90f43222d239ca6a"
  866. #
  867. # On Windows, trusted CA certificates can be loaded from the system
  868. # certificate store by setting this to cert_store://<name>, e.g.,
  869. # ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
  870. # Note that when running wpa_supplicant as an application, the user
  871. # certificate store (My user account) is used, whereas computer store
  872. # (Computer account) is used when running wpasvc as a service.
  873. # ca_path: Directory path for CA certificate files (PEM). This path may
  874. # contain multiple CA certificates in OpenSSL format. Common use for this
  875. # is to point to system trusted CA list which is often installed into
  876. # directory like /etc/ssl/certs. If configured, these certificates are
  877. # added to the list of trusted CAs. ca_cert may also be included in that
  878. # case, but it is not required.
  879. # client_cert: File path to client certificate file (PEM/DER)
  880. # Full path should be used since working directory may change when
  881. # wpa_supplicant is run in the background.
  882. # Alternatively, a named configuration blob can be used by setting this
  883. # to blob://<blob name>.
  884. # private_key: File path to client private key file (PEM/DER/PFX)
  885. # When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be
  886. # commented out. Both the private key and certificate will be read from
  887. # the PKCS#12 file in this case. Full path should be used since working
  888. # directory may change when wpa_supplicant is run in the background.
  889. # Windows certificate store can be used by leaving client_cert out and
  890. # configuring private_key in one of the following formats:
  891. # cert://substring_to_match
  892. # hash://certificate_thumbprint_in_hex
  893. # for example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
  894. # Note that when running wpa_supplicant as an application, the user
  895. # certificate store (My user account) is used, whereas computer store
  896. # (Computer account) is used when running wpasvc as a service.
  897. # Alternatively, a named configuration blob can be used by setting this
  898. # to blob://<blob name>.
  899. # private_key_passwd: Password for private key file (if left out, this will be
  900. # asked through control interface)
  901. # dh_file: File path to DH/DSA parameters file (in PEM format)
  902. # This is an optional configuration file for setting parameters for an
  903. # ephemeral DH key exchange. In most cases, the default RSA
  904. # authentication does not use this configuration. However, it is possible
  905. # setup RSA to use ephemeral DH key exchange. In addition, ciphers with
  906. # DSA keys always use ephemeral DH keys. This can be used to achieve
  907. # forward secrecy. If the file is in DSA parameters format, it will be
  908. # automatically converted into DH params.
  909. # subject_match: Substring to be matched against the subject of the
  910. # authentication server certificate. If this string is set, the server
  911. # sertificate is only accepted if it contains this string in the subject.
  912. # The subject string is in following format:
  913. # /C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@example.com
  914. # Note: Since this is a substring match, this cannot be used securily to
  915. # do a suffix match against a possible domain name in the CN entry. For
  916. # such a use case, domain_suffix_match or domain_match should be used
  917. # instead.
  918. # altsubject_match: Semicolon separated string of entries to be matched against
  919. # the alternative subject name of the authentication server certificate.
  920. # If this string is set, the server sertificate is only accepted if it
  921. # contains one of the entries in an alternative subject name extension.
  922. # altSubjectName string is in following format: TYPE:VALUE
  923. # Example: EMAIL:server@example.com
  924. # Example: DNS:server.example.com;DNS:server2.example.com
  925. # Following types are supported: EMAIL, DNS, URI
  926. # domain_suffix_match: Constraint for server domain name. If set, this FQDN is
  927. # used as a suffix match requirement for the AAAserver certificate in
  928. # SubjectAltName dNSName element(s). If a matching dNSName is found, this
  929. # constraint is met. If no dNSName values are present, this constraint is
  930. # matched against SubjectName CN using same suffix match comparison.
  931. #
  932. # Suffix match here means that the host/domain name is compared one label
  933. # at a time starting from the top-level domain and all the labels in
  934. # domain_suffix_match shall be included in the certificate. The
  935. # certificate may include additional sub-level labels in addition to the
  936. # required labels.
  937. #
  938. # For example, domain_suffix_match=example.com would match
  939. # test.example.com but would not match test-example.com.
  940. # domain_match: Constraint for server domain name
  941. # If set, this FQDN is used as a full match requirement for the
  942. # server certificate in SubjectAltName dNSName element(s). If a
  943. # matching dNSName is found, this constraint is met. If no dNSName
  944. # values are present, this constraint is matched against SubjectName CN
  945. # using same full match comparison. This behavior is similar to
  946. # domain_suffix_match, but has the requirement of a full match, i.e.,
  947. # no subdomains or wildcard matches are allowed. Case-insensitive
  948. # comparison is used, so "Example.com" matches "example.com", but would
  949. # not match "test.Example.com".
  950. # phase1: Phase1 (outer authentication, i.e., TLS tunnel) parameters
  951. # (string with field-value pairs, e.g., "peapver=0" or
  952. # "peapver=1 peaplabel=1")
  953. # 'peapver' can be used to force which PEAP version (0 or 1) is used.
  954. # 'peaplabel=1' can be used to force new label, "client PEAP encryption",
  955. # to be used during key derivation when PEAPv1 or newer. Most existing
  956. # PEAPv1 implementation seem to be using the old label, "client EAP
  957. # encryption", and wpa_supplicant is now using that as the default value.
  958. # Some servers, e.g., Radiator, may require peaplabel=1 configuration to
  959. # interoperate with PEAPv1; see eap_testing.txt for more details.
  960. # 'peap_outer_success=0' can be used to terminate PEAP authentication on
  961. # tunneled EAP-Success. This is required with some RADIUS servers that
  962. # implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
  963. # Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
  964. # include_tls_length=1 can be used to force wpa_supplicant to include
  965. # TLS Message Length field in all TLS messages even if they are not
  966. # fragmented.
  967. # sim_min_num_chal=3 can be used to configure EAP-SIM to require three
  968. # challenges (by default, it accepts 2 or 3)
  969. # result_ind=1 can be used to enable EAP-SIM and EAP-AKA to use
  970. # protected result indication.
  971. # 'crypto_binding' option can be used to control PEAPv0 cryptobinding
  972. # behavior:
  973. # * 0 = do not use cryptobinding (default)
  974. # * 1 = use cryptobinding if server supports it
  975. # * 2 = require cryptobinding
  976. # EAP-WSC (WPS) uses following options: pin=<Device Password> or
  977. # pbc=1.
  978. #
  979. # For wired IEEE 802.1X authentication, "allow_canned_success=1" can be
  980. # used to configure a mode that allows EAP-Success (and EAP-Failure)
  981. # without going through authentication step. Some switches use such
  982. # sequence when forcing the port to be authorized/unauthorized or as a
  983. # fallback option if the authentication server is unreachable. By default,
  984. # wpa_supplicant discards such frames to protect against potential attacks
  985. # by rogue devices, but this option can be used to disable that protection
  986. # for cases where the server/authenticator does not need to be
  987. # authenticated.
  988. # phase2: Phase2 (inner authentication with TLS tunnel) parameters
  989. # (string with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-PEAP or
  990. # "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS). "mschapv2_retry=0" can be
  991. # used to disable MSCHAPv2 password retry in authentication failure cases.
  992. #
  993. # TLS-based methods can use the following parameters to control TLS behavior
  994. # (these are normally in the phase1 parameter, but can be used also in the
  995. # phase2 parameter when EAP-TLS is used within the inner tunnel):
  996. # tls_allow_md5=1 - allow MD5-based certificate signatures (depending on the
  997. # TLS library, these may be disabled by default to enforce stronger
  998. # security)
  999. # tls_disable_time_checks=1 - ignore certificate validity time (this requests
  1000. # the TLS library to accept certificates even if they are not currently
  1001. # valid, i.e., have expired or have not yet become valid; this should be
  1002. # used only for testing purposes)
  1003. # tls_disable_session_ticket=1 - disable TLS Session Ticket extension
  1004. # tls_disable_session_ticket=0 - allow TLS Session Ticket extension to be used
  1005. # Note: If not set, this is automatically set to 1 for EAP-TLS/PEAP/TTLS
  1006. # as a workaround for broken authentication server implementations unless
  1007. # EAP workarounds are disabled with eap_workaround=0.
  1008. # For EAP-FAST, this must be set to 0 (or left unconfigured for the
  1009. # default value to be used automatically).
  1010. # tls_disable_tlsv1_0=1 - disable use of TLSv1.0
  1011. # tls_disable_tlsv1_1=1 - disable use of TLSv1.1 (a workaround for AAA servers
  1012. # that have issues interoperating with updated TLS version)
  1013. # tls_disable_tlsv1_2=1 - disable use of TLSv1.2 (a workaround for AAA servers
  1014. # that have issues interoperating with updated TLS version)
  1015. # tls_ext_cert_check=0 - No external server certificate validation (default)
  1016. # tls_ext_cert_check=1 - External server certificate validation enabled; this
  1017. # requires an external program doing validation of server certificate
  1018. # chain when receiving CTRL-RSP-EXT_CERT_CHECK event from the control
  1019. # interface and report the result of the validation with
  1020. # CTRL-RSP_EXT_CERT_CHECK.
  1021. #
  1022. # Following certificate/private key fields are used in inner Phase2
  1023. # authentication when using EAP-TTLS or EAP-PEAP.
  1024. # ca_cert2: File path to CA certificate file. This file can have one or more
  1025. # trusted CA certificates. If ca_cert2 and ca_path2 are not included,
  1026. # server certificate will not be verified. This is insecure and a trusted
  1027. # CA certificate should always be configured.
  1028. # ca_path2: Directory path for CA certificate files (PEM)
  1029. # client_cert2: File path to client certificate file
  1030. # private_key2: File path to client private key file
  1031. # private_key2_passwd: Password for private key file
  1032. # dh_file2: File path to DH/DSA parameters file (in PEM format)
  1033. # subject_match2: Substring to be matched against the subject of the
  1034. # authentication server certificate. See subject_match for more details.
  1035. # altsubject_match2: Semicolon separated string of entries to be matched
  1036. # against the alternative subject name of the authentication server
  1037. # certificate. See altsubject_match documentation for more details.
  1038. # domain_suffix_match2: Constraint for server domain name. See
  1039. # domain_suffix_match for more details.
  1040. #
  1041. # fragment_size: Maximum EAP fragment size in bytes (default 1398).
  1042. # This value limits the fragment size for EAP methods that support
  1043. # fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be set
  1044. # small enough to make the EAP messages fit in MTU of the network
  1045. # interface used for EAPOL. The default value is suitable for most
  1046. # cases.
  1047. #
  1048. # ocsp: Whether to use/require OCSP to check server certificate
  1049. # 0 = do not use OCSP stapling (TLS certificate status extension)
  1050. # 1 = try to use OCSP stapling, but not require response
  1051. # 2 = require valid OCSP stapling response
  1052. # 3 = require valid OCSP stapling response for all not-trusted
  1053. # certificates in the server certificate chain
  1054. #
  1055. # openssl_ciphers: OpenSSL specific cipher configuration
  1056. # This can be used to override the global openssl_ciphers configuration
  1057. # parameter (see above).
  1058. #
  1059. # erp: Whether EAP Re-authentication Protocol (ERP) is enabled
  1060. #
  1061. # EAP-FAST variables:
  1062. # pac_file: File path for the PAC entries. wpa_supplicant will need to be able
  1063. # to create this file and write updates to it when PAC is being
  1064. # provisioned or refreshed. Full path to the file should be used since
  1065. # working directory may change when wpa_supplicant is run in the
  1066. # background. Alternatively, a named configuration blob can be used by
  1067. # setting this to blob://<blob name>
  1068. # phase1: fast_provisioning option can be used to enable in-line provisioning
  1069. # of EAP-FAST credentials (PAC):
  1070. # 0 = disabled,
  1071. # 1 = allow unauthenticated provisioning,
  1072. # 2 = allow authenticated provisioning,
  1073. # 3 = allow both unauthenticated and authenticated provisioning
  1074. # fast_max_pac_list_len=<num> option can be used to set the maximum
  1075. # number of PAC entries to store in a PAC list (default: 10)
  1076. # fast_pac_format=binary option can be used to select binary format for
  1077. # storing PAC entries in order to save some space (the default
  1078. # text format uses about 2.5 times the size of minimal binary
  1079. # format)
  1080. #
  1081. # wpa_supplicant supports number of "EAP workarounds" to work around
  1082. # interoperability issues with incorrectly behaving authentication servers.
  1083. # These are enabled by default because some of the issues are present in large
  1084. # number of authentication servers. Strict EAP conformance mode can be
  1085. # configured by disabling workarounds with eap_workaround=0.
  1086. # update_identifier: PPS MO ID
  1087. # (Hotspot 2.0 PerProviderSubscription/UpdateIdentifier)
  1088. # Station inactivity limit
  1089. #
  1090. # If a station does not send anything in ap_max_inactivity seconds, an
  1091. # empty data frame is sent to it in order to verify whether it is
  1092. # still in range. If this frame is not ACKed, the station will be
  1093. # disassociated and then deauthenticated. This feature is used to
  1094. # clear station table of old entries when the STAs move out of the
  1095. # range.
  1096. #
  1097. # The station can associate again with the AP if it is still in range;
  1098. # this inactivity poll is just used as a nicer way of verifying
  1099. # inactivity; i.e., client will not report broken connection because
  1100. # disassociation frame is not sent immediately without first polling
  1101. # the STA with a data frame.
  1102. # default: 300 (i.e., 5 minutes)
  1103. #ap_max_inactivity=300
  1104. # DTIM period in Beacon intervals for AP mode (default: 2)
  1105. #dtim_period=2
  1106. # Beacon interval (default: 100 TU)
  1107. #beacon_int=100
  1108. # MAC address policy
  1109. # 0 = use permanent MAC address
  1110. # 1 = use random MAC address for each ESS connection
  1111. # 2 = like 1, but maintain OUI (with local admin bit set)
  1112. #mac_addr=0
  1113. # disable_ht: Whether HT (802.11n) should be disabled.
  1114. # 0 = HT enabled (if AP supports it)
  1115. # 1 = HT disabled
  1116. #
  1117. # disable_ht40: Whether HT-40 (802.11n) should be disabled.
  1118. # 0 = HT-40 enabled (if AP supports it)
  1119. # 1 = HT-40 disabled
  1120. #
  1121. # disable_sgi: Whether SGI (short guard interval) should be disabled.
  1122. # 0 = SGI enabled (if AP supports it)
  1123. # 1 = SGI disabled
  1124. #
  1125. # disable_ldpc: Whether LDPC should be disabled.
  1126. # 0 = LDPC enabled (if AP supports it)
  1127. # 1 = LDPC disabled
  1128. #
  1129. # ht40_intolerant: Whether 40 MHz intolerant should be indicated.
  1130. # 0 = 40 MHz tolerant (default)
  1131. # 1 = 40 MHz intolerant
  1132. #
  1133. # ht_mcs: Configure allowed MCS rates.
  1134. # Parsed as an array of bytes, in base-16 (ascii-hex)
  1135. # ht_mcs="" // Use all available (default)
  1136. # ht_mcs="0xff 00 00 00 00 00 00 00 00 00 " // Use MCS 0-7 only
  1137. # ht_mcs="0xff ff 00 00 00 00 00 00 00 00 " // Use MCS 0-15 only
  1138. #
  1139. # disable_max_amsdu: Whether MAX_AMSDU should be disabled.
  1140. # -1 = Do not make any changes.
  1141. # 0 = Enable MAX-AMSDU if hardware supports it.
  1142. # 1 = Disable AMSDU
  1143. #
  1144. # ampdu_factor: Maximum A-MPDU Length Exponent
  1145. # Value: 0-3, see 7.3.2.56.3 in IEEE Std 802.11n-2009.
  1146. #
  1147. # ampdu_density: Allow overriding AMPDU density configuration.
  1148. # Treated as hint by the kernel.
  1149. # -1 = Do not make any changes.
  1150. # 0-3 = Set AMPDU density (aka factor) to specified value.
  1151. # disable_vht: Whether VHT should be disabled.
  1152. # 0 = VHT enabled (if AP supports it)
  1153. # 1 = VHT disabled
  1154. #
  1155. # vht_capa: VHT capabilities to set in the override
  1156. # vht_capa_mask: mask of VHT capabilities
  1157. #
  1158. # vht_rx_mcs_nss_1/2/3/4/5/6/7/8: override the MCS set for RX NSS 1-8
  1159. # vht_tx_mcs_nss_1/2/3/4/5/6/7/8: override the MCS set for TX NSS 1-8
  1160. # 0: MCS 0-7
  1161. # 1: MCS 0-8
  1162. # 2: MCS 0-9
  1163. # 3: not supported
  1164. ##### Fast Session Transfer (FST) support #####################################
  1165. #
  1166. # The options in this section are only available when the build configuration
  1167. # option CONFIG_FST is set while compiling hostapd. They allow this interface
  1168. # to be a part of FST setup.
  1169. #
  1170. # FST is the transfer of a session from a channel to another channel, in the
  1171. # same or different frequency bands.
  1172. #
  1173. # For detals, see IEEE Std 802.11ad-2012.
  1174. # Identifier of an FST Group the interface belongs to.
  1175. #fst_group_id=bond0
  1176. # Interface priority within the FST Group.
  1177. # Announcing a higher priority for an interface means declaring it more
  1178. # preferable for FST switch.
  1179. # fst_priority is in 1..255 range with 1 being the lowest priority.
  1180. #fst_priority=100
  1181. # Default LLT value for this interface in milliseconds. The value used in case
  1182. # no value provided during session setup. Default is 50 msec.
  1183. # fst_llt is in 1..4294967 range (due to spec limitation, see 10.32.2.2
  1184. # Transitioning between states).
  1185. #fst_llt=100
  1186. # Example blocks:
  1187. # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
  1188. network={
  1189. ssid="simple"
  1190. psk="very secret passphrase"
  1191. priority=5
  1192. }
  1193. # Same as previous, but request SSID-specific scanning (for APs that reject
  1194. # broadcast SSID)
  1195. network={
  1196. ssid="second ssid"
  1197. scan_ssid=1
  1198. psk="very secret passphrase"
  1199. priority=2
  1200. }
  1201. # Only WPA-PSK is used. Any valid cipher combination is accepted.
  1202. network={
  1203. ssid="example"
  1204. proto=WPA
  1205. key_mgmt=WPA-PSK
  1206. pairwise=CCMP TKIP
  1207. group=CCMP TKIP WEP104 WEP40
  1208. psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
  1209. priority=2
  1210. }
  1211. # WPA-Personal(PSK) with TKIP and enforcement for frequent PTK rekeying
  1212. network={
  1213. ssid="example"
  1214. proto=WPA
  1215. key_mgmt=WPA-PSK
  1216. pairwise=TKIP
  1217. group=TKIP
  1218. psk="not so secure passphrase"
  1219. wpa_ptk_rekey=600
  1220. }
  1221. # Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that used WEP104
  1222. # or WEP40 as the group cipher will not be accepted.
  1223. network={
  1224. ssid="example"
  1225. proto=RSN
  1226. key_mgmt=WPA-EAP
  1227. pairwise=CCMP TKIP
  1228. group=CCMP TKIP
  1229. eap=TLS
  1230. identity="user@example.com"
  1231. ca_cert="/etc/cert/ca.pem"
  1232. client_cert="/etc/cert/user.pem"
  1233. private_key="/etc/cert/user.prv"
  1234. private_key_passwd="password"
  1235. priority=1
  1236. }
  1237. # EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the new peaplabel
  1238. # (e.g., Radiator)
  1239. network={
  1240. ssid="example"
  1241. key_mgmt=WPA-EAP
  1242. eap=PEAP
  1243. identity="user@example.com"
  1244. password="foobar"
  1245. ca_cert="/etc/cert/ca.pem"
  1246. phase1="peaplabel=1"
  1247. phase2="auth=MSCHAPV2"
  1248. priority=10
  1249. }
  1250. # EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity for the
  1251. # unencrypted use. Real identity is sent only within an encrypted TLS tunnel.
  1252. network={
  1253. ssid="example"
  1254. key_mgmt=WPA-EAP
  1255. eap=TTLS
  1256. identity="user@example.com"
  1257. anonymous_identity="anonymous@example.com"
  1258. password="foobar"
  1259. ca_cert="/etc/cert/ca.pem"
  1260. priority=2
  1261. }
  1262. # EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the unencrypted
  1263. # use. Real identity is sent only within an encrypted TLS tunnel.
  1264. network={
  1265. ssid="example"
  1266. key_mgmt=WPA-EAP
  1267. eap=TTLS
  1268. identity="user@example.com"
  1269. anonymous_identity="anonymous@example.com"
  1270. password="foobar"
  1271. ca_cert="/etc/cert/ca.pem"
  1272. phase2="auth=MSCHAPV2"
  1273. }
  1274. # WPA-EAP, EAP-TTLS with different CA certificate used for outer and inner
  1275. # authentication.
  1276. network={
  1277. ssid="example"
  1278. key_mgmt=WPA-EAP
  1279. eap=TTLS
  1280. # Phase1 / outer authentication
  1281. anonymous_identity="anonymous@example.com"
  1282. ca_cert="/etc/cert/ca.pem"
  1283. # Phase 2 / inner authentication
  1284. phase2="autheap=TLS"
  1285. ca_cert2="/etc/cert/ca2.pem"
  1286. client_cert2="/etc/cer/user.pem"
  1287. private_key2="/etc/cer/user.prv"
  1288. private_key2_passwd="password"
  1289. priority=2
  1290. }
  1291. # Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as pairwise and
  1292. # group cipher.
  1293. network={
  1294. ssid="example"
  1295. bssid=00:11:22:33:44:55
  1296. proto=WPA RSN
  1297. key_mgmt=WPA-PSK WPA-EAP
  1298. pairwise=CCMP
  1299. group=CCMP
  1300. psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
  1301. }
  1302. # Special characters in SSID, so use hex string. Default to WPA-PSK, WPA-EAP
  1303. # and all valid ciphers.
  1304. network={
  1305. ssid=00010203
  1306. psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
  1307. }
  1308. # EAP-SIM with a GSM SIM or USIM
  1309. network={
  1310. ssid="eap-sim-test"
  1311. key_mgmt=WPA-EAP
  1312. eap=SIM
  1313. pin="1234"
  1314. pcsc=""
  1315. }
  1316. # EAP-PSK
  1317. network={
  1318. ssid="eap-psk-test"
  1319. key_mgmt=WPA-EAP
  1320. eap=PSK
  1321. anonymous_identity="eap_psk_user"
  1322. password=06b4be19da289f475aa46a33cb793029
  1323. identity="eap_psk_user@example.com"
  1324. }
  1325. # IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no WPA) using
  1326. # EAP-TLS for authentication and key generation; require both unicast and
  1327. # broadcast WEP keys.
  1328. network={
  1329. ssid="1x-test"
  1330. key_mgmt=IEEE8021X
  1331. eap=TLS
  1332. identity="user@example.com"
  1333. ca_cert="/etc/cert/ca.pem"
  1334. client_cert="/etc/cert/user.pem"
  1335. private_key="/etc/cert/user.prv"
  1336. private_key_passwd="password"
  1337. eapol_flags=3
  1338. }
  1339. # LEAP with dynamic WEP keys
  1340. network={
  1341. ssid="leap-example"
  1342. key_mgmt=IEEE8021X
  1343. eap=LEAP
  1344. identity="user"
  1345. password="foobar"
  1346. }
  1347. # EAP-IKEv2 using shared secrets for both server and peer authentication
  1348. network={
  1349. ssid="ikev2-example"
  1350. key_mgmt=WPA-EAP
  1351. eap=IKEV2
  1352. identity="user"
  1353. password="foobar"
  1354. }
  1355. # EAP-FAST with WPA (WPA or WPA2)
  1356. network={
  1357. ssid="eap-fast-test"
  1358. key_mgmt=WPA-EAP
  1359. eap=FAST
  1360. anonymous_identity="FAST-000102030405"
  1361. identity="username"
  1362. password="password"
  1363. phase1="fast_provisioning=1"
  1364. pac_file="/etc/wpa_supplicant.eap-fast-pac"
  1365. }
  1366. network={
  1367. ssid="eap-fast-test"
  1368. key_mgmt=WPA-EAP
  1369. eap=FAST
  1370. anonymous_identity="FAST-000102030405"
  1371. identity="username"
  1372. password="password"
  1373. phase1="fast_provisioning=1"
  1374. pac_file="blob://eap-fast-pac"
  1375. }
  1376. # Plaintext connection (no WPA, no IEEE 802.1X)
  1377. network={
  1378. ssid="plaintext-test"
  1379. key_mgmt=NONE
  1380. }
  1381. # Shared WEP key connection (no WPA, no IEEE 802.1X)
  1382. network={
  1383. ssid="static-wep-test"
  1384. key_mgmt=NONE
  1385. wep_key0="abcde"
  1386. wep_key1=0102030405
  1387. wep_key2="1234567890123"
  1388. wep_tx_keyidx=0
  1389. priority=5
  1390. }
  1391. # Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared Key
  1392. # IEEE 802.11 authentication
  1393. network={
  1394. ssid="static-wep-test2"
  1395. key_mgmt=NONE
  1396. wep_key0="abcde"
  1397. wep_key1=0102030405
  1398. wep_key2="1234567890123"
  1399. wep_tx_keyidx=0
  1400. priority=5
  1401. auth_alg=SHARED
  1402. }
  1403. # IBSS/ad-hoc network with RSN
  1404. network={
  1405. ssid="ibss-rsn"
  1406. key_mgmt=WPA-PSK
  1407. proto=RSN
  1408. psk="12345678"
  1409. mode=1
  1410. frequency=2412
  1411. pairwise=CCMP
  1412. group=CCMP
  1413. }
  1414. # IBSS/ad-hoc network with WPA-None/TKIP (deprecated)
  1415. network={
  1416. ssid="test adhoc"
  1417. mode=1
  1418. frequency=2412
  1419. proto=WPA
  1420. key_mgmt=WPA-NONE
  1421. pairwise=NONE
  1422. group=TKIP
  1423. psk="secret passphrase"
  1424. }
  1425. # open mesh network
  1426. network={
  1427. ssid="test mesh"
  1428. mode=5
  1429. frequency=2437
  1430. key_mgmt=NONE
  1431. }
  1432. # secure (SAE + AMPE) network
  1433. network={
  1434. ssid="secure mesh"
  1435. mode=5
  1436. frequency=2437
  1437. key_mgmt=SAE
  1438. psk="very secret passphrase"
  1439. }
  1440. # Catch all example that allows more or less all configuration modes
  1441. network={
  1442. ssid="example"
  1443. scan_ssid=1
  1444. key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
  1445. pairwise=CCMP TKIP
  1446. group=CCMP TKIP WEP104 WEP40
  1447. psk="very secret passphrase"
  1448. eap=TTLS PEAP TLS
  1449. identity="user@example.com"
  1450. password="foobar"
  1451. ca_cert="/etc/cert/ca.pem"
  1452. client_cert="/etc/cert/user.pem"
  1453. private_key="/etc/cert/user.prv"
  1454. private_key_passwd="password"
  1455. phase1="peaplabel=0"
  1456. }
  1457. # Example of EAP-TLS with smartcard (openssl engine)
  1458. network={
  1459. ssid="example"
  1460. key_mgmt=WPA-EAP
  1461. eap=TLS
  1462. proto=RSN
  1463. pairwise=CCMP TKIP
  1464. group=CCMP TKIP
  1465. identity="user@example.com"
  1466. ca_cert="/etc/cert/ca.pem"
  1467. client_cert="/etc/cert/user.pem"
  1468. engine=1
  1469. # The engine configured here must be available. Look at
  1470. # OpenSSL engine support in the global section.
  1471. # The key available through the engine must be the private key
  1472. # matching the client certificate configured above.
  1473. # use the opensc engine
  1474. #engine_id="opensc"
  1475. #key_id="45"
  1476. # use the pkcs11 engine
  1477. engine_id="pkcs11"
  1478. key_id="id_45"
  1479. # Optional PIN configuration; this can be left out and PIN will be
  1480. # asked through the control interface
  1481. pin="1234"
  1482. }
  1483. # Example configuration showing how to use an inlined blob as a CA certificate
  1484. # data instead of using external file
  1485. network={
  1486. ssid="example"
  1487. key_mgmt=WPA-EAP
  1488. eap=TTLS
  1489. identity="user@example.com"
  1490. anonymous_identity="anonymous@example.com"
  1491. password="foobar"
  1492. ca_cert="blob://exampleblob"
  1493. priority=20
  1494. }
  1495. blob-base64-exampleblob={
  1496. SGVsbG8gV29ybGQhCg==
  1497. }
  1498. # Wildcard match for SSID (plaintext APs only). This example select any
  1499. # open AP regardless of its SSID.
  1500. network={
  1501. key_mgmt=NONE
  1502. }
  1503. # Example configuration blacklisting two APs - these will be ignored
  1504. # for this network.
  1505. network={
  1506. ssid="example"
  1507. psk="very secret passphrase"
  1508. bssid_blacklist=02:11:22:33:44:55 02:22:aa:44:55:66
  1509. }
  1510. # Example configuration limiting AP selection to a specific set of APs;
  1511. # any other AP not matching the masked address will be ignored.
  1512. network={
  1513. ssid="example"
  1514. psk="very secret passphrase"
  1515. bssid_whitelist=02:55:ae:bc:00:00/ff:ff:ff:ff:00:00 00:00:77:66:55:44/00:00:ff:ff:ff:ff
  1516. }
  1517. # Example config file that will only scan on channel 36.
  1518. freq_list=5180
  1519. network={
  1520. key_mgmt=NONE
  1521. }
  1522. # Example MACsec configuration
  1523. #network={
  1524. # key_mgmt=IEEE8021X
  1525. # eap=TTLS
  1526. # phase2="auth=PAP"
  1527. # anonymous_identity="anonymous@example.com"
  1528. # identity="user@example.com"
  1529. # password="secretr"
  1530. # ca_cert="/etc/cert/ca.pem"
  1531. # eapol_flags=0
  1532. # macsec_policy=1
  1533. #}