mrechte

hostapd.conf

Sep 26th, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.31 KB | None | 0 0
  1. ##### hostapd configuration file ##############################################
  2. # Empty lines and lines starting with # are ignored
  3.  
  4. # AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
  5. # management frames); ath0 for madwifi
  6. interface=wlan0
  7.  
  8. # In case of madwifi, atheros, and nl80211 driver interfaces, an additional
  9. # configuration parameter, bridge, may be used to notify hostapd if the
  10. # interface is included in a bridge. This parameter is not used with Host AP
  11. # driver. If the bridge parameter is not set, the drivers will automatically
  12. # figure out the bridge interface (assuming sysfs is enabled and mounted to
  13. # /sys) and this parameter may not be needed.
  14. #
  15. # For nl80211, this parameter can be used to request the AP interface to be
  16. # added to the bridge automatically (brctl may refuse to do this before hostapd
  17. # has been started to change the interface mode). If needed, the bridge
  18. # interface is also created.
  19. # by MR
  20. bridge=br1
  21.  
  22. # Driver interface type (hostap/wired/madwifi/test/none/nl80211/bsd);
  23. # default: hostap). nl80211 is used with all Linux mac80211 drivers.
  24. # Use driver=none if building hostapd as a standalone RADIUS server that does
  25. # not control any wireless/wired driver.
  26. # driver=hostap
  27. # by MR
  28. driver=nl80211
  29.  
  30. # hostapd event logger configuration
  31. #
  32. # Two output method: syslog and stdout (only usable if not forking to
  33. # background).
  34. #
  35. # Module bitfield (ORed bitfield of modules that will be logged; -1 = all
  36. # modules):
  37. # bit 0 (1) = IEEE 802.11
  38. # bit 1 (2) = IEEE 802.1X
  39. # bit 2 (4) = RADIUS
  40. # bit 3 (8) = WPA
  41. # bit 4 (16) = driver interface
  42. # bit 5 (32) = IAPP
  43. # bit 6 (64) = MLME
  44. #
  45. # Levels (minimum value for logged events):
  46. # 0 = verbose debugging
  47. # 1 = debugging
  48. # 2 = informational messages
  49. # 3 = notification
  50. # 4 = warning
  51. #
  52. logger_syslog=-1
  53. logger_syslog_level=2
  54. logger_stdout=-1
  55. logger_stdout_level=2
  56.  
  57. # Dump file for state information (on SIGUSR1)
  58. dump_file=/tmp/hostapd.dump
  59.  
  60. # Interface for separate control program. If this is specified, hostapd
  61. # will create this directory and a UNIX domain socket for listening to requests
  62. # from external programs (CLI/GUI, etc.) for status information and
  63. # configuration. The socket file will be named based on the interface name, so
  64. # multiple hostapd processes/interfaces can be run at the same time if more
  65. # than one interface is used.
  66. # /var/run/hostapd is the recommended directory for sockets and by default,
  67. # hostapd_cli will use it when trying to connect with hostapd.
  68. ctrl_interface=/var/run/hostapd
  69.  
  70. # Access control for the control interface can be configured by setting the
  71. # directory to allow only members of a group to use sockets. This way, it is
  72. # possible to run hostapd as root (since it needs to change network
  73. # configuration and open raw sockets) and still allow GUI/CLI components to be
  74. # run as non-root users. However, since the control interface can be used to
  75. # change the network configuration, this access needs to be protected in many
  76. # cases. By default, hostapd is configured to use gid 0 (root). If you
  77. # want to allow non-root users to use the contron interface, add a new group
  78. # and change this value to match with that group. Add users that should have
  79. # control interface access to this group.
  80. #
  81. # This variable can be a group name or gid.
  82. #ctrl_interface_group=wheel
  83. ctrl_interface_group=0
  84.  
  85.  
  86. ##### IEEE 802.11 related configuration #######################################
  87.  
  88. # SSID to be used in IEEE 802.11 management frames
  89. # by MR
  90. ssid=RECHTE
  91.  
  92. # Country code (ISO/IEC 3166-1). Used to set regulatory domain.
  93. # Set as needed to indicate country in which device is operating.
  94. # This can limit available channels and transmit power.
  95. # by MR
  96. country_code=FR
  97.  
  98. # Enable IEEE 802.11d. This advertises the country_code and the set of allowed
  99. # channels and transmit power levels based on the regulatory limits. The
  100. # country_code setting must be configured with the correct country for
  101. # IEEE 802.11d functions.
  102. # (default: 0 = disabled)
  103. #ieee80211d=1
  104.  
  105. # Operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g,
  106. # Default: IEEE 802.11b
  107. # by MR
  108. hw_mode=g
  109.  
  110. # Channel number (IEEE 802.11)
  111. # (default: 0, i.e., not set)
  112. # Please note that some drivers (e.g., madwifi) do not use this value from
  113. # hostapd and the channel will need to be configuration separately with
  114. # iwconfig.
  115. # by MR
  116. channel=3
  117.  
  118. # Beacon interval in kus (1.024 ms) (default: 100; range 15..65535)
  119. beacon_int=100
  120.  
  121. # DTIM (delivery trafic information message) period (range 1..255):
  122. # number of beacons between DTIMs (1 = every beacon includes DTIM element)
  123. # (default: 2)
  124. dtim_period=2
  125.  
  126. # Maximum number of stations allowed in station table. New stations will be
  127. # rejected after the station table is full. IEEE 802.11 has a limit of 2007
  128. # different association IDs, so this number should not be larger than that.
  129. # (default: 2007)
  130. # by MR
  131. max_num_sta=5
  132.  
  133. # RTS/CTS threshold; 2347 = disabled (default); range 0..2347
  134. # If this field is not included in hostapd.conf, hostapd will not control
  135. # RTS threshold and 'iwconfig wlan# rts <val>' can be used to set it.
  136. rts_threshold=2347
  137.  
  138. # Fragmentation threshold; 2346 = disabled (default); range 256..2346
  139. # If this field is not included in hostapd.conf, hostapd will not control
  140. # fragmentation threshold and 'iwconfig wlan# frag <val>' can be used to set
  141. # it.
  142. fragm_threshold=2346
  143.  
  144. # Rate configuration
  145. # Default is to enable all rates supported by the hardware. This configuration
  146. # item allows this list be filtered so that only the listed rates will be left
  147. # in the list. If the list is empty, all rates are used. This list can have
  148. # entries that are not in the list of rates the hardware supports (such entries
  149. # are ignored). The entries in this list are in 100 kbps, i.e., 11 Mbps = 110.
  150. # If this item is present, at least one rate have to be matching with the rates
  151. # hardware supports.
  152. # default: use the most common supported rate setting for the selected
  153. # hw_mode (i.e., this line can be removed from configuration file in most
  154. # cases)
  155. #supported_rates=10 20 55 110 60 90 120 180 240 360 480 540
  156.  
  157. # Basic rate set configuration
  158. # List of rates (in 100 kbps) that are included in the basic rate set.
  159. # If this item is not included, usually reasonable default set is used.
  160. #basic_rates=10 20
  161. #basic_rates=10 20 55 110
  162. #basic_rates=60 120 240
  163.  
  164. # Short Preamble
  165. # This parameter can be used to enable optional use of short preamble for
  166. # frames sent at 2 Mbps, 5.5 Mbps, and 11 Mbps to improve network performance.
  167. # This applies only to IEEE 802.11b-compatible networks and this should only be
  168. # enabled if the local hardware supports use of short preamble. If any of the
  169. # associated STAs do not support short preamble, use of short preamble will be
  170. # disabled (and enabled when such STAs disassociate) dynamically.
  171. # 0 = do not allow use of short preamble (default)
  172. # 1 = allow use of short preamble
  173. #preamble=1
  174.  
  175. # Station MAC address -based authentication
  176. # Please note that this kind of access control requires a driver that uses
  177. # hostapd to take care of management frame processing and as such, this can be
  178. # used with driver=hostap or driver=nl80211, but not with driver=madwifi.
  179. # 0 = accept unless in deny list
  180. # 1 = deny unless in accept list
  181. # 2 = use external RADIUS server (accept/deny lists are searched first)
  182. macaddr_acl=0
  183.  
  184. # Accept/deny lists are read from separate files (containing list of
  185. # MAC addresses, one per line). Use absolute path name to make sure that the
  186. # files can be read on SIGHUP configuration reloads.
  187. #accept_mac_file=/etc/hostapd/hostapd.accept
  188. #deny_mac_file=/etc/hostapd/hostapd.deny
  189.  
  190. # IEEE 802.11 specifies two authentication algorithms. hostapd can be
  191. # configured to allow both of these or only one. Open system authentication
  192. # should be used with IEEE 802.1X.
  193. # Bit fields of allowed authentication algorithms:
  194. # bit 0 = Open System Authentication
  195. # bit 1 = Shared Key Authentication (requires WEP)
  196. auth_algs=3
  197.  
  198. # Send empty SSID in beacons and ignore probe request frames that do not
  199. # specify full SSID, i.e., require stations to know SSID.
  200. # default: disabled (0)
  201. # 1 = send empty (length=0) SSID in beacon and ignore probe request for
  202. # broadcast SSID
  203. # 2 = clear SSID (ASCII 0), but keep the original length (this may be required
  204. # with some clients that do not support empty SSID) and ignore probe
  205. # requests for broadcast SSID
  206. ignore_broadcast_ssid=0
  207.  
  208. # TX queue parameters (EDCF / bursting)
  209. # default for all these fields: not set, use hardware defaults
  210. # tx_queue_<queue name>_<param>
  211. # queues: data0, data1, data2, data3, after_beacon, beacon
  212. # (data0 is the highest priority queue)
  213. # parameters:
  214. # aifs: AIFS (default 2)
  215. # cwmin: cwMin (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023)
  216. # cwmax: cwMax (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023); cwMax >= cwMin
  217. # burst: maximum length (in milliseconds with precision of up to 0.1 ms) for
  218. # bursting
  219. #
  220. # Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e):
  221. # These parameters are used by the access point when transmitting frames
  222. # to the clients.
  223. #
  224. # Low priority / AC_BK = background
  225. #tx_queue_data3_aifs=7
  226. #tx_queue_data3_cwmin=15
  227. #tx_queue_data3_cwmax=1023
  228. #tx_queue_data3_burst=0
  229. # Note: for IEEE 802.11b mode: cWmin=31 cWmax=1023 burst=0
  230. #
  231. # Normal priority / AC_BE = best effort
  232. #tx_queue_data2_aifs=3
  233. #tx_queue_data2_cwmin=15
  234. #tx_queue_data2_cwmax=63
  235. #tx_queue_data2_burst=0
  236. # Note: for IEEE 802.11b mode: cWmin=31 cWmax=127 burst=0
  237. #
  238. # High priority / AC_VI = video
  239. #tx_queue_data1_aifs=1
  240. #tx_queue_data1_cwmin=7
  241. #tx_queue_data1_cwmax=15
  242. #tx_queue_data1_burst=3.0
  243. # Note: for IEEE 802.11b mode: cWmin=15 cWmax=31 burst=6.0
  244. #
  245. # Highest priority / AC_VO = voice
  246. #tx_queue_data0_aifs=1
  247. #tx_queue_data0_cwmin=3
  248. #tx_queue_data0_cwmax=7
  249. #tx_queue_data0_burst=1.5
  250. # Note: for IEEE 802.11b mode: cWmin=7 cWmax=15 burst=3.3
  251. #
  252. # Special queues; normally not user configurable
  253. #
  254. #tx_queue_after_beacon_aifs=2
  255. #tx_queue_after_beacon_cwmin=15
  256. #tx_queue_after_beacon_cwmax=1023
  257. #tx_queue_after_beacon_burst=0
  258. #
  259. #tx_queue_beacon_aifs=2
  260. #tx_queue_beacon_cwmin=3
  261. #tx_queue_beacon_cwmax=7
  262. #tx_queue_beacon_burst=1.5
  263.  
  264. # 802.1D Tag (= UP) to AC mappings
  265. # WMM specifies following mapping of data frames to different ACs. This mapping
  266. # can be configured using Linux QoS/tc and sch_pktpri.o module.
  267. # 802.1D Tag 802.1D Designation Access Category WMM Designation
  268. # 1 BK AC_BK Background
  269. # 2 - AC_BK Background
  270. # 0 BE AC_BE Best Effort
  271. # 3 EE AC_BE Best Effort
  272. # 4 CL AC_VI Video
  273. # 5 VI AC_VI Video
  274. # 6 VO AC_VO Voice
  275. # 7 NC AC_VO Voice
  276. # Data frames with no priority information: AC_BE
  277. # Management frames: AC_VO
  278. # PS-Poll frames: AC_BE
  279.  
  280. # Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e):
  281. # for 802.11a or 802.11g networks
  282. # These parameters are sent to WMM clients when they associate.
  283. # The parameters will be used by WMM clients for frames transmitted to the
  284. # access point.
  285. #
  286. # note - txop_limit is in units of 32microseconds
  287. # note - acm is admission control mandatory flag. 0 = admission control not
  288. # required, 1 = mandatory
  289. # note - here cwMin and cmMax are in exponent form. the actual cw value used
  290. # will be (2^n)-1 where n is the value given here
  291. #
  292. wmm_enabled=1
  293. #
  294. # WMM-PS Unscheduled Automatic Power Save Delivery [U-APSD]
  295. # Enable this flag if U-APSD supported outside hostapd (eg., Firmware/driver)
  296. #uapsd_advertisement_enabled=1
  297. #
  298. # Low priority / AC_BK = background
  299. wmm_ac_bk_cwmin=4
  300. wmm_ac_bk_cwmax=10
  301. wmm_ac_bk_aifs=7
  302. wmm_ac_bk_txop_limit=0
  303. wmm_ac_bk_acm=0
  304. # Note: for IEEE 802.11b mode: cWmin=5 cWmax=10
  305. #
  306. # Normal priority / AC_BE = best effort
  307. wmm_ac_be_aifs=3
  308. wmm_ac_be_cwmin=4
  309. wmm_ac_be_cwmax=10
  310. wmm_ac_be_txop_limit=0
  311. wmm_ac_be_acm=0
  312. # Note: for IEEE 802.11b mode: cWmin=5 cWmax=7
  313. #
  314. # High priority / AC_VI = video
  315. wmm_ac_vi_aifs=2
  316. wmm_ac_vi_cwmin=3
  317. wmm_ac_vi_cwmax=4
  318. wmm_ac_vi_txop_limit=94
  319. wmm_ac_vi_acm=0
  320. # Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188
  321. #
  322. # Highest priority / AC_VO = voice
  323. wmm_ac_vo_aifs=2
  324. wmm_ac_vo_cwmin=2
  325. wmm_ac_vo_cwmax=3
  326. wmm_ac_vo_txop_limit=47
  327. wmm_ac_vo_acm=0
  328. # Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102
  329.  
  330. # Static WEP key configuration
  331. #
  332. # The key number to use when transmitting.
  333. # It must be between 0 and 3, and the corresponding key must be set.
  334. # default: not set
  335. #wep_default_key=0
  336. # The WEP keys to use.
  337. # A key may be a quoted string or unquoted hexadecimal digits.
  338. # The key length should be 5, 13, or 16 characters, or 10, 26, or 32
  339. # digits, depending on whether 40-bit (64-bit), 104-bit (128-bit), or
  340. # 128-bit (152-bit) WEP is used.
  341. # Only the default key must be supplied; the others are optional.
  342. # default: not set
  343. #wep_key0=123456789a
  344. #wep_key1="vwxyz"
  345. #wep_key2=0102030405060708090a0b0c0d
  346. #wep_key3=".2.4.6.8.0.23"
  347.  
  348. # Station inactivity limit
  349. #
  350. # If a station does not send anything in ap_max_inactivity seconds, an
  351. # empty data frame is sent to it in order to verify whether it is
  352. # still in range. If this frame is not ACKed, the station will be
  353. # disassociated and then deauthenticated. This feature is used to
  354. # clear station table of old entries when the STAs move out of the
  355. # range.
  356. #
  357. # The station can associate again with the AP if it is still in range;
  358. # this inactivity poll is just used as a nicer way of verifying
  359. # inactivity; i.e., client will not report broken connection because
  360. # disassociation frame is not sent immediately without first polling
  361. # the STA with a data frame.
  362. # default: 300 (i.e., 5 minutes)
  363. #ap_max_inactivity=300
  364.  
  365. # Maximum allowed Listen Interval (how many Beacon periods STAs are allowed to
  366. # remain asleep). Default: 65535 (no limit apart from field size)
  367. #max_listen_interval=100
  368.  
  369. # WDS (4-address frame) mode with per-station virtual interfaces
  370. # (only supported with driver=nl80211)
  371. # This mode allows associated stations to use 4-address frames to allow layer 2
  372. # bridging to be used.
  373. #wds_sta=1
  374.  
  375. ##### IEEE 802.11n related configuration ######################################
  376.  
  377. # ieee80211n: Whether IEEE 802.11n (HT) is enabled
  378. # 0 = disabled (default)
  379. # 1 = enabled
  380. # Note: You will also need to enable WMM for full HT functionality.
  381. #ieee80211n=1
  382.  
  383. # ht_capab: HT capabilities (list of flags)
  384. # LDPC coding capability: [LDPC] = supported
  385. # Supported channel width set: [HT40-] = both 20 MHz and 40 MHz with secondary
  386. # channel below the primary channel; [HT40+] = both 20 MHz and 40 MHz
  387. # with secondary channel below the primary channel
  388. # (20 MHz only if neither is set)
  389. # Note: There are limits on which channels can be used with HT40- and
  390. # HT40+. Following table shows the channels that may be available for
  391. # HT40- and HT40+ use per IEEE 802.11n Annex J:
  392. # freq HT40- HT40+
  393. # 2.4 GHz 5-13 1-7 (1-9 in Europe/Japan)
  394. # 5 GHz 40,48,56,64 36,44,52,60
  395. # (depending on the location, not all of these channels may be available
  396. # for use)
  397. # Please note that 40 MHz channels may switch their primary and secondary
  398. # channels if needed or creation of 40 MHz channel maybe rejected based
  399. # on overlapping BSSes. These changes are done automatically when hostapd
  400. # is setting up the 40 MHz channel.
  401. # Spatial Multiplexing (SM) Power Save: [SMPS-STATIC] or [SMPS-DYNAMIC]
  402. # (SMPS disabled if neither is set)
  403. # HT-greenfield: [GF] (disabled if not set)
  404. # Short GI for 20 MHz: [SHORT-GI-20] (disabled if not set)
  405. # Short GI for 40 MHz: [SHORT-GI-40] (disabled if not set)
  406. # Tx STBC: [TX-STBC] (disabled if not set)
  407. # Rx STBC: [RX-STBC1] (one spatial stream), [RX-STBC12] (one or two spatial
  408. # streams), or [RX-STBC123] (one, two, or three spatial streams); Rx STBC
  409. # disabled if none of these set
  410. # HT-delayed Block Ack: [DELAYED-BA] (disabled if not set)
  411. # Maximum A-MSDU length: [MAX-AMSDU-7935] for 7935 octets (3839 octets if not
  412. # set)
  413. # DSSS/CCK Mode in 40 MHz: [DSSS_CCK-40] = allowed (not allowed if not set)
  414. # PSMP support: [PSMP] (disabled if not set)
  415. # L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set)
  416. #ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40]
  417.  
  418. ##### IEEE 802.1X-2004 related configuration ##################################
  419.  
  420. # Require IEEE 802.1X authorization
  421. #ieee8021x=1
  422.  
  423. # IEEE 802.1X/EAPOL version
  424. # hostapd is implemented based on IEEE Std 802.1X-2004 which defines EAPOL
  425. # version 2. However, there are many client implementations that do not handle
  426. # the new version number correctly (they seem to drop the frames completely).
  427. # In order to make hostapd interoperate with these clients, the version number
  428. # can be set to the older version (1) with this configuration value.
  429. #eapol_version=2
  430. # by MR
  431. eapol_version=1
  432.  
  433. # Optional displayable message sent with EAP Request-Identity. The first \0
  434. # in this string will be converted to ASCII-0 (nul). This can be used to
  435. # separate network info (comma separated list of attribute=value pairs); see,
  436. # e.g., RFC 4284.
  437. #eap_message=hello
  438. #eap_message=hello\0networkid=netw,nasid=foo,portid=0,NAIRealms=example.com
  439.  
  440. # WEP rekeying (disabled if key lengths are not set or are set to 0)
  441. # Key lengths for default/broadcast and individual/unicast keys:
  442. # 5 = 40-bit WEP (also known as 64-bit WEP with 40 secret bits)
  443. # 13 = 104-bit WEP (also known as 128-bit WEP with 104 secret bits)
  444. #wep_key_len_broadcast=5
  445. #wep_key_len_unicast=5
  446. # Rekeying period in seconds. 0 = do not rekey (i.e., set keys only once)
  447. #wep_rekey_period=300
  448.  
  449. # EAPOL-Key index workaround (set bit7) for WinXP Supplicant (needed only if
  450. # only broadcast keys are used)
  451. eapol_key_index_workaround=0
  452.  
  453. # EAP reauthentication period in seconds (default: 3600 seconds; 0 = disable
  454. # reauthentication).
  455. #eap_reauth_period=3600
  456.  
  457. # Use PAE group address (01:80:c2:00:00:03) instead of individual target
  458. # address when sending EAPOL frames with driver=wired. This is the most common
  459. # mechanism used in wired authentication, but it also requires that the port
  460. # is only used by one station.
  461. #use_pae_group_addr=1
  462.  
  463. ##### Integrated EAP server ###################################################
  464.  
  465. # Optionally, hostapd can be configured to use an integrated EAP server
  466. # to process EAP authentication locally without need for an external RADIUS
  467. # server. This functionality can be used both as a local authentication server
  468. # for IEEE 802.1X/EAPOL and as a RADIUS server for other devices.
  469.  
  470. # Use integrated EAP server instead of external RADIUS authentication
  471. # server. This is also needed if hostapd is configured to act as a RADIUS
  472. # authentication server.
  473. eap_server=0
  474.  
  475. # Path for EAP server user database
  476. #eap_user_file=/etc/hostapd/hostapd.eap_user
  477.  
  478. # CA certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS
  479. #ca_cert=/etc/hostapd/hostapd.ca.pem
  480.  
  481. # Server certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS
  482. #server_cert=/etc/hostapd/hostapd.server.pem
  483.  
  484. # Private key matching with the server certificate for EAP-TLS/PEAP/TTLS
  485. # This may point to the same file as server_cert if both certificate and key
  486. # are included in a single file. PKCS#12 (PFX) file (.p12/.pfx) can also be
  487. # used by commenting out server_cert and specifying the PFX file as the
  488. # private_key.
  489. #private_key=/etc/hostapd/hostapd.server.prv
  490.  
  491. # Passphrase for private key
  492. #private_key_passwd=secret passphrase
  493.  
  494. # Enable CRL verification.
  495. # Note: hostapd does not yet support CRL downloading based on CDP. Thus, a
  496. # valid CRL signed by the CA is required to be included in the ca_cert file.
  497. # This can be done by using PEM format for CA certificate and CRL and
  498. # concatenating these into one file. Whenever CRL changes, hostapd needs to be
  499. # restarted to take the new CRL into use.
  500. # 0 = do not verify CRLs (default)
  501. # 1 = check the CRL of the user certificate
  502. # 2 = check all CRLs in the certificate path
  503. #check_crl=1
  504.  
  505. # dh_file: File path to DH/DSA parameters file (in PEM format)
  506. # This is an optional configuration file for setting parameters for an
  507. # ephemeral DH key exchange. In most cases, the default RSA authentication does
  508. # not use this configuration. However, it is possible setup RSA to use
  509. # ephemeral DH key exchange. In addition, ciphers with DSA keys always use
  510. # ephemeral DH keys. This can be used to achieve forward secrecy. If the file
  511. # is in DSA parameters format, it will be automatically converted into DH
  512. # params. This parameter is required if anonymous EAP-FAST is used.
  513. # You can generate DH parameters file with OpenSSL, e.g.,
  514. # "openssl dhparam -out /etc/hostapd/hostapd.dh.pem 1024"
  515. #dh_file=/etc/hostapd/hostapd.dh.pem
  516.  
  517. # Configuration data for EAP-SIM database/authentication gateway interface.
  518. # This is a text string in implementation specific format. The example
  519. # implementation in eap_sim_db.c uses this as the UNIX domain socket name for
  520. # the HLR/AuC gateway (e.g., hlr_auc_gw). In this case, the path uses "unix:"
  521. # prefix.
  522. #eap_sim_db=unix:/tmp/hlr_auc_gw.sock
  523.  
  524. # Encryption key for EAP-FAST PAC-Opaque values. This key must be a secret,
  525. # random value. It is configured as a 16-octet value in hex format. It can be
  526. # generated, e.g., with the following command:
  527. # od -tx1 -v -N16 /dev/random | colrm 1 8 | tr -d ' '
  528. #pac_opaque_encr_key=000102030405060708090a0b0c0d0e0f
  529.  
  530. # EAP-FAST authority identity (A-ID)
  531. # A-ID indicates the identity of the authority that issues PACs. The A-ID
  532. # should be unique across all issuing servers. In theory, this is a variable
  533. # length field, but due to some existing implementations requiring A-ID to be
  534. # 16 octets in length, it is strongly recommended to use that length for the
  535. # field to provid interoperability with deployed peer implementations. This
  536. # field is configured in hex format.
  537. #eap_fast_a_id=101112131415161718191a1b1c1d1e1f
  538.  
  539. # EAP-FAST authority identifier information (A-ID-Info)
  540. # This is a user-friendly name for the A-ID. For example, the enterprise name
  541. # and server name in a human-readable format. This field is encoded as UTF-8.
  542. #eap_fast_a_id_info=test server
  543.  
  544. # Enable/disable different EAP-FAST provisioning modes:
  545. #0 = provisioning disabled
  546. #1 = only anonymous provisioning allowed
  547. #2 = only authenticated provisioning allowed
  548. #3 = both provisioning modes allowed (default)
  549. #eap_fast_prov=3
  550.  
  551. # EAP-FAST PAC-Key lifetime in seconds (hard limit)
  552. #pac_key_lifetime=604800
  553.  
  554. # EAP-FAST PAC-Key refresh time in seconds (soft limit on remaining hard
  555. # limit). The server will generate a new PAC-Key when this number of seconds
  556. # (or fewer) of the lifetime remains.
  557. #pac_key_refresh_time=86400
  558.  
  559. # EAP-SIM and EAP-AKA protected success/failure indication using AT_RESULT_IND
  560. # (default: 0 = disabled).
  561. #eap_sim_aka_result_ind=1
  562.  
  563. # Trusted Network Connect (TNC)
  564. # If enabled, TNC validation will be required before the peer is allowed to
  565. # connect. Note: This is only used with EAP-TTLS and EAP-FAST. If any other
  566. # EAP method is enabled, the peer will be allowed to connect without TNC.
  567. #tnc=1
  568.  
  569.  
  570. ##### IEEE 802.11f - Inter-Access Point Protocol (IAPP) #######################
  571.  
  572. # Interface to be used for IAPP broadcast packets
  573. #iapp_interface=eth0
  574.  
  575.  
  576. ##### RADIUS client configuration #############################################
  577. # for IEEE 802.1X with external Authentication Server, IEEE 802.11
  578. # authentication with external ACL for MAC addresses, and accounting
  579.  
  580. # The own IP address of the access point (used as NAS-IP-Address)
  581. own_ip_addr=127.0.0.1
  582.  
  583. # Optional NAS-Identifier string for RADIUS messages. When used, this should be
  584. # a unique to the NAS within the scope of the RADIUS server. For example, a
  585. # fully qualified domain name can be used here.
  586. # When using IEEE 802.11r, nas_identifier must be set and must be between 1 and
  587. # 48 octets long.
  588. #nas_identifier=ap.example.com
  589.  
  590. # RADIUS authentication server
  591. #auth_server_addr=127.0.0.1
  592. #auth_server_port=1812
  593. #auth_server_shared_secret=secret
  594.  
  595. # RADIUS accounting server
  596. #acct_server_addr=127.0.0.1
  597. #acct_server_port=1813
  598. #acct_server_shared_secret=secret
  599.  
  600. # Secondary RADIUS servers; to be used if primary one does not reply to
  601. # RADIUS packets. These are optional and there can be more than one secondary
  602. # server listed.
  603. #auth_server_addr=127.0.0.2
  604. #auth_server_port=1812
  605. #auth_server_shared_secret=secret2
  606. #
  607. #acct_server_addr=127.0.0.2
  608. #acct_server_port=1813
  609. #acct_server_shared_secret=secret2
  610.  
  611. # Retry interval for trying to return to the primary RADIUS server (in
  612. # seconds). RADIUS client code will automatically try to use the next server
  613. # when the current server is not replying to requests. If this interval is set,
  614. # primary server will be retried after configured amount of time even if the
  615. # currently used secondary server is still working.
  616. #radius_retry_primary_interval=600
  617.  
  618.  
  619. # Interim accounting update interval
  620. # If this is set (larger than 0) and acct_server is configured, hostapd will
  621. # send interim accounting updates every N seconds. Note: if set, this overrides
  622. # possible Acct-Interim-Interval attribute in Access-Accept message. Thus, this
  623. # value should not be configured in hostapd.conf, if RADIUS server is used to
  624. # control the interim interval.
  625. # This value should not be less 600 (10 minutes) and must not be less than
  626. # 60 (1 minute).
  627. #radius_acct_interim_interval=600
  628.  
  629. # Dynamic VLAN mode; allow RADIUS authentication server to decide which VLAN
  630. # is used for the stations. This information is parsed from following RADIUS
  631. # attributes based on RFC 3580 and RFC 2868: Tunnel-Type (value 13 = VLAN),
  632. # Tunnel-Medium-Type (value 6 = IEEE 802), Tunnel-Private-Group-ID (value
  633. # VLANID as a string). vlan_file option below must be configured if dynamic
  634. # VLANs are used. Optionally, the local MAC ACL list (accept_mac_file) can be
  635. # used to set static client MAC address to VLAN ID mapping.
  636. # 0 = disabled (default)
  637. # 1 = option; use default interface if RADIUS server does not include VLAN ID
  638. # 2 = required; reject authentication if RADIUS server does not include VLAN ID
  639. #dynamic_vlan=0
  640.  
  641. # VLAN interface list for dynamic VLAN mode is read from a separate text file.
  642. # This list is used to map VLAN ID from the RADIUS server to a network
  643. # interface. Each station is bound to one interface in the same way as with
  644. # multiple BSSIDs or SSIDs. Each line in this text file is defining a new
  645. # interface and the line must include VLAN ID and interface name separated by
  646. # white space (space or tab).
  647. #vlan_file=/etc/hostapd/hostapd.vlan
  648.  
  649. # Interface where 802.1q tagged packets should appear when a RADIUS server is
  650. # used to determine which VLAN a station is on. hostapd creates a bridge for
  651. # each VLAN. Then hostapd adds a VLAN interface (associated with the interface
  652. # indicated by 'vlan_tagged_interface') and the appropriate wireless interface
  653. # to the bridge.
  654. #vlan_tagged_interface=eth0
  655.  
  656.  
  657. ##### RADIUS authentication server configuration ##############################
  658.  
  659. # hostapd can be used as a RADIUS authentication server for other hosts. This
  660. # requires that the integrated EAP server is also enabled and both
  661. # authentication services are sharing the same configuration.
  662.  
  663. # File name of the RADIUS clients configuration for the RADIUS server. If this
  664. # commented out, RADIUS server is disabled.
  665. #radius_server_clients=/etc/hostapd/hostapd.radius_clients
  666.  
  667. # The UDP port number for the RADIUS authentication server
  668. #radius_server_auth_port=1812
  669.  
  670. # Use IPv6 with RADIUS server (IPv4 will also be supported using IPv6 API)
  671. #radius_server_ipv6=1
  672.  
  673.  
  674. ##### WPA/IEEE 802.11i configuration ##########################################
  675.  
  676. # Enable WPA. Setting this variable configures the AP to require WPA (either
  677. # WPA-PSK or WPA-RADIUS/EAP based on other configuration). For WPA-PSK, either
  678. # wpa_psk or wpa_passphrase must be set and wpa_key_mgmt must include WPA-PSK.
  679. # For WPA-RADIUS/EAP, ieee8021x must be set (but without dynamic WEP keys),
  680. # RADIUS authentication server must be configured, and WPA-EAP must be included
  681. # in wpa_key_mgmt.
  682. # This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0)
  683. # and/or WPA2 (full IEEE 802.11i/RSN):
  684. # bit0 = WPA
  685. # bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
  686. # by MR (WPA2 non supporté par PSP)
  687. wpa=3
  688.  
  689. # WPA pre-shared keys for WPA-PSK. This can be either entered as a 256-bit
  690. # secret in hex format (64 hex digits), wpa_psk, or as an ASCII passphrase
  691. # (8..63 characters) that will be converted to PSK. This conversion uses SSID
  692. # so the PSK changes when ASCII passphrase is used and the SSID is changed.
  693. # wpa_psk (dot11RSNAConfigPSKValue)
  694. # wpa_passphrase (dot11RSNAConfigPSKPassPhrase)
  695. #wpa_psk=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
  696. #wpa_passphrase=secret passphrase
  697. # by MR
  698. wpa_passphrase=**************
  699.  
  700. # Optionally, WPA PSKs can be read from a separate text file (containing list
  701. # of (PSK,MAC address) pairs. This allows more than one PSK to be configured.
  702. # Use absolute path name to make sure that the files can be read on SIGHUP
  703. # configuration reloads.
  704. #wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
  705.  
  706. # Set of accepted key management algorithms (WPA-PSK, WPA-EAP, or both). The
  707. # entries are separated with a space. WPA-PSK-SHA256 and WPA-EAP-SHA256 can be
  708. # added to enable SHA256-based stronger algorithms.
  709. # (dot11RSNAConfigAuthenticationSuitesTable)
  710. #wpa_key_mgmt=WPA-PSK WPA-EAP
  711. # by MR
  712. wpa_key_mgmt=WPA-PSK
  713.  
  714. # Set of accepted cipher suites (encryption algorithms) for pairwise keys
  715. # (unicast packets). This is a space separated list of algorithms:
  716. # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
  717. # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
  718. # Group cipher suite (encryption algorithm for broadcast and multicast frames)
  719. # is automatically selected based on this configuration. If only CCMP is
  720. # allowed as the pairwise cipher, group cipher will also be CCMP. Otherwise,
  721. # TKIP will be used as the group cipher.
  722. # (dot11RSNAConfigPairwiseCiphersTable)
  723. # Pairwise cipher for WPA (v1) (default: TKIP)
  724. # by MR
  725. wpa_pairwise=TKIP
  726. # Pairwise cipher for RSN/WPA2 (default: use wpa_pairwise value)
  727. # by MR
  728. #rsn_pairwise=CCMP
  729. rsn_pairwise=TKIP
  730.  
  731. # Time interval for rekeying GTK (broadcast/multicast encryption keys) in
  732. # seconds. (dot11RSNAConfigGroupRekeyTime)
  733. #wpa_group_rekey=600
  734.  
  735. # Rekey GTK when any STA that possesses the current GTK is leaving the BSS.
  736. # (dot11RSNAConfigGroupRekeyStrict)
  737. #wpa_strict_rekey=1
  738.  
  739. # Time interval for rekeying GMK (master key used internally to generate GTKs
  740. # (in seconds).
  741. #wpa_gmk_rekey=86400
  742.  
  743. # Maximum lifetime for PTK in seconds. This can be used to enforce rekeying of
  744. # PTK to mitigate some attacks against TKIP deficiencies.
  745. #wpa_ptk_rekey=600
  746.  
  747. # Enable IEEE 802.11i/RSN/WPA2 pre-authentication. This is used to speed up
  748. # roaming be pre-authenticating IEEE 802.1X/EAP part of the full RSN
  749. # authentication and key handshake before actually associating with a new AP.
  750. # (dot11RSNAPreauthenticationEnabled)
  751. #rsn_preauth=1
  752. #
  753. # Space separated list of interfaces from which pre-authentication frames are
  754. # accepted (e.g., 'eth0' or 'eth0 wlan0wds0'. This list should include all
  755. # interface that are used for connections to other APs. This could include
  756. # wired interfaces and WDS links. The normal wireless data interface towards
  757. # associated stations (e.g., wlan0) should not be added, since
  758. # pre-authentication is only used with APs other than the currently associated
  759. # one.
  760. #rsn_preauth_interfaces=eth0
  761.  
  762. # peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e) is
  763. # allowed. This is only used with RSN/WPA2.
  764. # 0 = disabled (default)
  765. # 1 = enabled
  766. #peerkey=1
  767.  
  768. # ieee80211w: Whether management frame protection (MFP) is enabled
  769. # 0 = disabled (default)
  770. # 1 = optional
  771. # 2 = required
  772. #ieee80211w=0
  773.  
  774. # Association SA Query maximum timeout (in TU = 1.024 ms; for MFP)
  775. # (maximum time to wait for a SA Query response)
  776. # dot11AssociationSAQueryMaximumTimeout, 1...4294967295
  777. #assoc_sa_query_max_timeout=1000
  778.  
  779. # Association SA Query retry timeout (in TU = 1.024 ms; for MFP)
  780. # (time between two subsequent SA Query requests)
  781. # dot11AssociationSAQueryRetryTimeout, 1...4294967295
  782. #assoc_sa_query_retry_timeout=201
  783.  
  784.  
  785. # okc: Opportunistic Key Caching (aka Proactive Key Caching)
  786. # Allow PMK cache to be shared opportunistically among configured interfaces
  787. # and BSSes (i.e., all configurations within a single hostapd process).
  788. # 0 = disabled (default)
  789. # 1 = enabled
  790. #okc=1
  791.  
  792.  
  793. ##### IEEE 802.11r configuration ##############################################
  794.  
  795. # Mobility Domain identifier (dot11FTMobilityDomainID, MDID)
  796. # MDID is used to indicate a group of APs (within an ESS, i.e., sharing the
  797. # same SSID) between which a STA can use Fast BSS Transition.
  798. # 2-octet identifier as a hex string.
  799. #mobility_domain=a1b2
  800.  
  801. # PMK-R0 Key Holder identifier (dot11FTR0KeyHolderID)
  802. # 1 to 48 octet identifier.
  803. # This is configured with nas_identifier (see RADIUS client section above).
  804.  
  805. # Default lifetime of the PMK-RO in minutes; range 1..65535
  806. # (dot11FTR0KeyLifetime)
  807. #r0_key_lifetime=10000
  808.  
  809. # PMK-R1 Key Holder identifier (dot11FTR1KeyHolderID)
  810. # 6-octet identifier as a hex string.
  811. #r1_key_holder=000102030405
  812.  
  813. # Reassociation deadline in time units (TUs / 1.024 ms; range 1000..65535)
  814. # (dot11FTReassociationDeadline)
  815. #reassociation_deadline=1000
  816.  
  817. # List of R0KHs in the same Mobility Domain
  818. # format: <MAC address> <NAS Identifier> <128-bit key as hex string>
  819. # This list is used to map R0KH-ID (NAS Identifier) to a destination MAC
  820. # address when requesting PMK-R1 key from the R0KH that the STA used during the
  821. # Initial Mobility Domain Association.
  822. #r0kh=02:01:02:03:04:05 r0kh-1.example.com 000102030405060708090a0b0c0d0e0f
  823. #r0kh=02:01:02:03:04:06 r0kh-2.example.com 00112233445566778899aabbccddeeff
  824. # And so on.. One line per R0KH.
  825.  
  826. # List of R1KHs in the same Mobility Domain
  827. # format: <MAC address> <R1KH-ID> <128-bit key as hex string>
  828. # This list is used to map R1KH-ID to a destination MAC address when sending
  829. # PMK-R1 key from the R0KH. This is also the list of authorized R1KHs in the MD
  830. # that can request PMK-R1 keys.
  831. #r1kh=02:01:02:03:04:05 02:11:22:33:44:55 000102030405060708090a0b0c0d0e0f
  832. #r1kh=02:01:02:03:04:06 02:11:22:33:44:66 00112233445566778899aabbccddeeff
  833. # And so on.. One line per R1KH.
  834.  
  835. # Whether PMK-R1 push is enabled at R0KH
  836. # 0 = do not push PMK-R1 to all configured R1KHs (default)
  837. # 1 = push PMK-R1 to all configured R1KHs whenever a new PMK-R0 is derived
  838. #pmk_r1_push=1
  839.  
  840. ##### Neighbor table ##########################################################
  841. # Maximum number of entries kept in AP table (either for neigbor table or for
  842. # detecting Overlapping Legacy BSS Condition). The oldest entry will be
  843. # removed when adding a new entry that would make the list grow over this
  844. # limit. Note! WFA certification for IEEE 802.11g requires that OLBC is
  845. # enabled, so this field should not be set to 0 when using IEEE 802.11g.
  846. # default: 255
  847. #ap_table_max_size=255
  848.  
  849. # Number of seconds of no frames received after which entries may be deleted
  850. # from the AP table. Since passive scanning is not usually performed frequently
  851. # this should not be set to very small value. In addition, there is no
  852. # guarantee that every scan cycle will receive beacon frames from the
  853. # neighboring APs.
  854. # default: 60
  855. #ap_table_expiration_time=3600
  856.  
  857.  
  858. ##### Wi-Fi Protected Setup (WPS) #############################################
  859.  
  860. # WPS state
  861. # 0 = WPS disabled (default)
  862. # 1 = WPS enabled, not configured
  863. # 2 = WPS enabled, configured
  864. #wps_state=2
  865.  
  866. # AP can be configured into a locked state where new WPS Registrar are not
  867. # accepted, but previously authorized Registrars (including the internal one)
  868. # can continue to add new Enrollees.
  869. #ap_setup_locked=1
  870.  
  871. # Universally Unique IDentifier (UUID; see RFC 4122) of the device
  872. # This value is used as the UUID for the internal WPS Registrar. If the AP
  873. # is also using UPnP, this value should be set to the device's UPnP UUID.
  874. # If not configured, UUID will be generated based on the local MAC address.
  875. #uuid=12345678-9abc-def0-1234-56789abcdef0
  876.  
  877. # Note: If wpa_psk_file is set, WPS is used to generate random, per-device PSKs
  878. # that will be appended to the wpa_psk_file. If wpa_psk_file is not set, the
  879. # default PSK (wpa_psk/wpa_passphrase) will be delivered to Enrollees. Use of
  880. # per-device PSKs is recommended as the more secure option (i.e., make sure to
  881. # set wpa_psk_file when using WPS with WPA-PSK).
  882.  
  883. # When an Enrollee requests access to the network with PIN method, the Enrollee
  884. # PIN will need to be entered for the Registrar. PIN request notifications are
  885. # sent to hostapd ctrl_iface monitor. In addition, they can be written to a
  886. # text file that could be used, e.g., to populate the AP administration UI with
  887. # pending PIN requests. If the following variable is set, the PIN requests will
  888. # be written to the configured file.
  889. #wps_pin_requests=/var/run/hostapd_wps_pin_requests
  890.  
  891. # Device Name
  892. # User-friendly description of device; up to 32 octets encoded in UTF-8
  893. #device_name=Wireless AP
  894.  
  895. # Manufacturer
  896. # The manufacturer of the device (up to 64 ASCII characters)
  897. #manufacturer=Company
  898.  
  899. # Model Name
  900. # Model of the device (up to 32 ASCII characters)
  901. #model_name=WAP
  902.  
  903. # Model Number
  904. # Additional device description (up to 32 ASCII characters)
  905. #model_number=123
  906.  
  907. # Serial Number
  908. # Serial number of the device (up to 32 characters)
  909. #serial_number=12345
  910.  
  911. # Primary Device Type
  912. # Used format: <categ>-<OUI>-<subcateg>
  913. # categ = Category as an integer value
  914. # OUI = OUI and type octet as a 4-octet hex-encoded value; 0050F204 for
  915. # default WPS OUI
  916. # subcateg = OUI-specific Sub Category as an integer value
  917. # Examples:
  918. # 1-0050F204-1 (Computer / PC)
  919. # 1-0050F204-2 (Computer / Server)
  920. # 5-0050F204-1 (Storage / NAS)
  921. # 6-0050F204-1 (Network Infrastructure / AP)
  922. #device_type=6-0050F204-1
  923.  
  924. # OS Version
  925. # 4-octet operating system version number (hex string)
  926. #os_version=01020300
  927.  
  928. # Config Methods
  929. # List of the supported configuration methods
  930. # Available methods: usba ethernet label display ext_nfc_token int_nfc_token
  931. # nfc_interface push_button keypad
  932. #config_methods=label display push_button keypad
  933.  
  934. # Static access point PIN for initial configuration and adding Registrars
  935. # If not set, hostapd will not allow external WPS Registrars to control the
  936. # access point. The AP PIN can also be set at runtime with hostapd_cli
  937. # wps_ap_pin command. Use of temporary (enabled by user action) and random
  938. # AP PIN is much more secure than configuring a static AP PIN here. As such,
  939. # use of the ap_pin parameter is not recommended if the AP device has means for
  940. # displaying a random PIN.
  941. #ap_pin=12345670
  942.  
  943. # Skip building of automatic WPS credential
  944. # This can be used to allow the automatically generated Credential attribute to
  945. # be replaced with pre-configured Credential(s).
  946. #skip_cred_build=1
  947.  
  948. # Additional Credential attribute(s)
  949. # This option can be used to add pre-configured Credential attributes into M8
  950. # message when acting as a Registrar. If skip_cred_build=1, this data will also
  951. # be able to override the Credential attribute that would have otherwise been
  952. # automatically generated based on network configuration. This configuration
  953. # option points to an external file that much contain the WPS Credential
  954. # attribute(s) as binary data.
  955. #extra_cred=hostapd.cred
  956.  
  957. # Credential processing
  958. # 0 = process received credentials internally (default)
  959. # 1 = do not process received credentials; just pass them over ctrl_iface to
  960. # external program(s)
  961. # 2 = process received credentials internally and pass them over ctrl_iface
  962. # to external program(s)
  963. # Note: With wps_cred_processing=1, skip_cred_build should be set to 1 and
  964. # extra_cred be used to provide the Credential data for Enrollees.
  965. #
  966. # wps_cred_processing=1 will disabled automatic updates of hostapd.conf file
  967. # both for Credential processing and for marking AP Setup Locked based on
  968. # validation failures of AP PIN. An external program is responsible on updating
  969. # the configuration appropriately in this case.
  970. #wps_cred_processing=0
  971.  
  972. # AP Settings Attributes for M7
  973. # By default, hostapd generates the AP Settings Attributes for M7 based on the
  974. # current configuration. It is possible to override this by providing a file
  975. # with pre-configured attributes. This is similar to extra_cred file format,
  976. # but the AP Settings attributes are not encapsulated in a Credential
  977. # attribute.
  978. #ap_settings=hostapd.ap_settings
  979.  
  980. # WPS UPnP interface
  981. # If set, support for external Registrars is enabled.
  982. #upnp_iface=br0
  983.  
  984. # Friendly Name (required for UPnP)
  985. # Short description for end use. Should be less than 64 characters.
  986. #friendly_name=WPS Access Point
  987.  
  988. # Manufacturer URL (optional for UPnP)
  989. #manufacturer_url=http://www.example.com/
  990.  
  991. # Model Description (recommended for UPnP)
  992. # Long description for end user. Should be less than 128 characters.
  993. #model_description=Wireless Access Point
  994.  
  995. # Model URL (optional for UPnP)
  996. #model_url=http://www.example.com/model/
  997.  
  998. # Universal Product Code (optional for UPnP)
  999. # 12-digit, all-numeric code that identifies the consumer package.
  1000. #upc=123456789012
  1001.  
  1002. ##### Multiple BSSID support ##################################################
  1003. #
  1004. # Above configuration is using the default interface (wlan#, or multi-SSID VLAN
  1005. # interfaces). Other BSSIDs can be added by using separator 'bss' with
  1006. # default interface name to be allocated for the data packets of the new BSS.
  1007. #
  1008. # hostapd will generate BSSID mask based on the BSSIDs that are
  1009. # configured. hostapd will verify that dev_addr & MASK == dev_addr. If this is
  1010. # not the case, the MAC address of the radio must be changed before starting
  1011. # hostapd (ifconfig wlan0 hw ether <MAC addr>). If a BSSID is configured for
  1012. # every secondary BSS, this limitation is not applied at hostapd and other
  1013. # masks may be used if the driver supports them (e.g., swap the locally
  1014. # administered bit)
  1015. #
  1016. # BSSIDs are assigned in order to each BSS, unless an explicit BSSID is
  1017. # specified using the 'bssid' parameter.
  1018. # If an explicit BSSID is specified, it must be chosen such that it:
  1019. # - results in a valid MASK that covers it and the dev_addr
  1020. # - is not the same as the MAC address of the radio
  1021. # - is not the same as any other explicitly specified BSSID
  1022. #
  1023. # Please note that hostapd uses some of the values configured for the first BSS
  1024. # as the defaults for the following BSSes. However, it is recommended that all
  1025. # BSSes include explicit configuration of all relevant configuration items.
  1026. #
  1027. #bss=wlan0_0
  1028. #ssid=test2
  1029. # most of the above items can be used here (apart from radio interface specific
  1030. # items, like channel)
  1031.  
  1032. #bss=wlan0_1
  1033. #bssid=00:13:10:95:fe:0b
  1034. # ...
Advertisement
Add Comment
Please, Sign In to add comment