1 .\" Copyright (c) 2005 Sam Leffler <sam@errno.com>
2 .\" Copyright (c) 2006 Rui Paulo
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $FreeBSD: src/usr.sbin/wpa/hostapd/hostapd.conf.5,v 1.4 2006/09/29 17:57:04 ru Exp $
27 .\" $DragonFly: src/usr.sbin/802_11/hostapd/hostapd.conf.5,v 1.3 2007/08/07 11:25:36 sephe Exp $
34 .Nd configuration file for
41 is an authenticator for IEEE 802.11 networks.
42 It provides full support for WPA/IEEE 802.11i and
43 can also act as an IEEE 802.1X Authenticator with a suitable
44 backend Authentication Server (typically
47 The configuration file consists of global parameters and domain
48 specific configuration:
49 .Bl -bullet -offset indent -compact
54 .\" Integrated EAP server
56 .\" IEEE 802.11f - Inter-Access Point Protocol (IAPP)
60 RADIUS authentication server
65 The following parameters are recognized:
66 .Bl -tag -width indent
73 Debugging mode: 0 = no, 1 = minimal, 2 = verbose, 3 = msg dumps, 4 =
76 Dump file for state information (on
79 The pathname of the directory in which
83 domain socket files for communication
84 with frontend programs such as
86 .It Va ctrl_interface_group
87 A group name or group ID to use in setting protection on the
88 control interface file.
89 This can be set to allow non-root users to access the
90 control interface files.
91 If no group is specified, the group ID of the control interface
92 is not modified and will, typically, be the
93 group ID of the directory in which the socket is created.
95 .Sh IEEE 802.1X-2004 PARAMETERS
96 The following parameters are recognized:
97 .Bl -tag -width indent
99 Require IEEE 802.1X authorization.
101 Optional displayable message sent with EAP Request-Identity.
102 .It Va wep_key_len_broadcast
103 Key lengths for broadcast keys.
104 .It Va wep_key_len_unicast
105 Key lengths for unicast keys.
106 .It Va wep_rekey_period
107 Rekeying period in seconds.
108 .It Va eapol_key_index_workaround
109 EAPOL-Key index workaround (set bit7) for WinXP Supplicant.
110 .It Va eap_reauth_period
111 EAP reauthentication period in seconds.
112 To disable reauthentication,
116 .\" .It Va use_pae_group_addr
119 .\" .Sh IEEE 802.11f - IAPP PARAMETERS
120 .\" The following parameters are recognized:
121 .\" .Bl -tag -width indent
122 .\" .It Va iapp_interface
123 .\" Interface to be used for IAPP broadcast packets
125 .Sh RADIUS CLIENT PARAMETERS
126 The following parameters are recognized:
127 .Bl -tag -width indent
129 The own IP address of the access point (used as NAS-IP-Address).
130 .It Va nas_identifier
131 Optional NAS-Identifier string for RADIUS messages.
132 .It Va auth_server_addr , auth_server_port , auth_server_shared_secret
133 RADIUS authentication server parameters.
134 Can be defined twice for secondary servers to be used if primary one
135 does not reply to RADIUS packets.
136 .It Va acct_server_addr , acct_server_port , acct_server_shared_secret
137 RADIUS accounting server parameters.
138 Can be defined twice for secondary servers to be used if primary one
139 does not reply to RADIUS packets.
140 .It Va radius_retry_primary_interval
141 Retry interval for trying to return to the primary RADIUS server (in
143 .It Va radius_acct_interim_interval
144 Interim accounting update interval.
145 If this is set (larger than 0) and acct_server is configured,
147 will send interim accounting updates every N seconds.
149 .Sh RADIUS AUTHENTICATION SERVER PARAMETERS
150 The following parameters are recognized:
151 .Bl -tag -width indent
152 .It Va radius_server_clients
153 File name of the RADIUS clients configuration for the RADIUS server.
154 If this is commented out, RADIUS server is disabled.
155 .It Va radius_server_auth_port
156 The UDP port number for the RADIUS authentication server.
157 .It Va radius_server_ipv6
158 Use IPv6 with RADIUS server.
160 .Sh WPA/IEEE 802.11i PARAMETERS
161 The following parameters are recognized:
162 .Bl -tag -width indent
165 Setting this variable configures the AP to require WPA (either
166 WPA-PSK or WPA-RADIUS/EAP based on other configuration).
167 .It Va wpa_psk , wpa_passphrase
168 WPA pre-shared keys for WPA-PSK.
169 This can be either entered as a 256-bit secret in hex format (64 hex
170 digits), wpa_psk, or as an ASCII passphrase (8..63 characters) that
171 will be converted to PSK.
172 This conversion uses SSID so the PSK changes when ASCII passphrase is
173 used and the SSID is changed.
175 Optionally, WPA PSKs can be read from a separate text file (containing a
176 list of (PSK,MAC address) pairs.
178 Set of accepted key management algorithms (WPA-PSK, WPA-EAP, or both).
180 Set of accepted cipher suites (encryption algorithms) for pairwise keys
182 See the example file for more information.
183 .It Va wpa_group_rekey
184 Time interval for rekeying GTK (broadcast/multicast encryption keys) in
186 .It Va wpa_strict_rekey
187 Rekey GTK when any STA that possesses the current GTK is leaving the
190 Time interval for rekeying GMK (master key used internally to generate GTKs),
201 functionality first appeared in
204 This manual page is derived from the
210 distribution provided by
211 .An Jouni Malinen Aq jkmaline@cc.hut.fi .