xref: /freebsd/usr.sbin/wpa/hostapd/hostapd.conf.5 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1b9b8a416SSam Leffler.\" Copyright (c) 2005 Sam Leffler <sam@errno.com>
2b3f627acSSam Leffler.\" Copyright (c) 2006 Rui Paulo
3b9b8a416SSam Leffler.\" All rights reserved.
4b9b8a416SSam Leffler.\"
5b9b8a416SSam Leffler.\" Redistribution and use in source and binary forms, with or without
6b9b8a416SSam Leffler.\" modification, are permitted provided that the following conditions
7b9b8a416SSam Leffler.\" are met:
8b9b8a416SSam Leffler.\" 1. Redistributions of source code must retain the above copyright
9b9b8a416SSam Leffler.\"    notice, this list of conditions and the following disclaimer.
10b9b8a416SSam Leffler.\" 2. Redistributions in binary form must reproduce the above copyright
11b9b8a416SSam Leffler.\"    notice, this list of conditions and the following disclaimer in the
12b9b8a416SSam Leffler.\"    documentation and/or other materials provided with the distribution.
13b9b8a416SSam Leffler.\"
14b9b8a416SSam Leffler.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15b9b8a416SSam Leffler.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16b9b8a416SSam Leffler.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17b9b8a416SSam Leffler.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18b9b8a416SSam Leffler.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19b9b8a416SSam Leffler.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20b9b8a416SSam Leffler.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21b9b8a416SSam Leffler.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22b9b8a416SSam Leffler.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23b9b8a416SSam Leffler.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24b9b8a416SSam Leffler.\" SUCH DAMAGE.
25b9b8a416SSam Leffler.\"
26b3f627acSSam Leffler.Dd September 2, 2006
27b9b8a416SSam Leffler.Dt HOSTAPD.CONF 5
28b9b8a416SSam Leffler.Os
29b9b8a416SSam Leffler.Sh NAME
30b9b8a416SSam Leffler.Nm hostapd.conf
31e516c0d9SRuslan Ermilov.Nd configuration file for
32e516c0d9SRuslan Ermilov.Xr hostapd 8
33e516c0d9SRuslan Ermilovutility
34b9b8a416SSam Leffler.Sh DESCRIPTION
35b3f627acSSam LefflerThe
36b3f627acSSam Leffler.Xr hostapd 8
37b3f627acSSam Lefflerutility
38b3f627acSSam Leffleris an authenticator for IEEE 802.11 networks.
39b3f627acSSam LefflerIt provides full support for WPA/IEEE 802.11i and
40b3f627acSSam Lefflercan also act as an IEEE 802.1X Authenticator with a suitable
41b3f627acSSam Lefflerbackend Authentication Server (typically
42b3f627acSSam Leffler.Tn FreeRADIUS ) .
43b3f627acSSam Leffler.Pp
44b3f627acSSam LefflerThe configuration file consists of global parameters and domain
45b3f627acSSam Lefflerspecific configuration:
46b3f627acSSam Leffler.Bl -bullet -offset indent -compact
47b3f627acSSam Leffler.It
48b3f627acSSam LefflerIEEE 802.1X-2004
49b3f627acSSam Leffler.\" XXX not yet
50b3f627acSSam Leffler.\" .It
51b3f627acSSam Leffler.\" Integrated EAP server
52b3f627acSSam Leffler.\" .It
53b3f627acSSam Leffler.\" IEEE 802.11f - Inter-Access Point Protocol (IAPP)
54b3f627acSSam Leffler.It
55b3f627acSSam LefflerRADIUS client
56b3f627acSSam Leffler.It
57b3f627acSSam LefflerRADIUS authentication server
58b3f627acSSam Leffler.It
59b3f627acSSam LefflerWPA/IEEE 802.11i
60b3f627acSSam Leffler.El
61b3f627acSSam Leffler.Sh GLOBAL PARAMETERS
62b3f627acSSam LefflerThe following parameters are recognized:
63b3f627acSSam Leffler.Bl -tag -width indent
64b3f627acSSam Leffler.It Va interface
65b3f627acSSam LefflerInterface name.
66b3f627acSSam LefflerShould be set in
67b3f627acSSam Leffler.Dq hostap
687424766dSGordon Berglingmode.
69*d84134baSGordon BerglingMake certain that there are no spaces after the interface name, or hostapd will
707424766dSGordon Berglingcomplain that the interface does not exist.
71b3f627acSSam Leffler.It Va debug
72b3f627acSSam LefflerDebugging mode: 0 = no, 1 = minimal, 2 = verbose, 3 = msg dumps, 4 =
73b3f627acSSam Lefflerexcessive.
74b3f627acSSam Leffler.It Va dump_file
75bc84aa4bSRuslan ErmilovDump file for state information (on
76bc84aa4bSRuslan Ermilov.Dv SIGUSR1 ) .
77b3f627acSSam Leffler.It Va ctrl_interface
78b3f627acSSam LefflerThe pathname of the directory in which
79b3f627acSSam Leffler.Xr hostapd 8
80b3f627acSSam Lefflercreates
81b3f627acSSam Leffler.Ux
82b3f627acSSam Lefflerdomain socket files for communication
83b3f627acSSam Lefflerwith frontend programs such as
84b3f627acSSam Leffler.Xr hostapd_cli 8 .
85b3f627acSSam Leffler.It Va ctrl_interface_group
86b3f627acSSam LefflerA group name or group ID to use in setting protection on the
87b3f627acSSam Lefflercontrol interface file.
88b3f627acSSam LefflerThis can be set to allow non-root users to access the
89b3f627acSSam Lefflercontrol interface files.
90b3f627acSSam LefflerIf no group is specified, the group ID of the control interface
91b3f627acSSam Leffleris not modified and will, typically, be the
92b3f627acSSam Lefflergroup ID of the directory in which the socket is created.
93b3f627acSSam Leffler.El
94b3f627acSSam Leffler.Sh IEEE 802.1X-2004 PARAMETERS
95b3f627acSSam LefflerThe following parameters are recognized:
96b3f627acSSam Leffler.Bl -tag -width indent
97b3f627acSSam Leffler.It Va ieee8021x
98b3f627acSSam LefflerRequire IEEE 802.1X authorization.
99b3f627acSSam Leffler.It Va eap_message
100b3f627acSSam LefflerOptional displayable message sent with EAP Request-Identity.
101b3f627acSSam Leffler.It Va wep_key_len_broadcast
102b3f627acSSam LefflerKey lengths for broadcast keys.
103b3f627acSSam Leffler.It Va wep_key_len_unicast
104b3f627acSSam LefflerKey lengths for unicast keys.
105b3f627acSSam Leffler.It Va wep_rekey_period
106b3f627acSSam LefflerRekeying period in seconds.
107b3f627acSSam Leffler.It Va eapol_key_index_workaround
108b3f627acSSam LefflerEAPOL-Key index workaround (set bit7) for WinXP Supplicant.
109b3f627acSSam Leffler.It Va eap_reauth_period
110b3f627acSSam LefflerEAP reauthentication period in seconds.
111b3f627acSSam LefflerTo disable reauthentication,
112b3f627acSSam Leffleruse
113b3f627acSSam Leffler.Dq 0 .
114b3f627acSSam Leffler.\" XXX not yet
115b3f627acSSam Leffler.\" .It Va use_pae_group_addr
116b3f627acSSam Leffler.El
117b3f627acSSam Leffler.\" XXX not yet
118b3f627acSSam Leffler.\" .Sh IEEE 802.11f - IAPP PARAMETERS
119b3f627acSSam Leffler.\" The following parameters are recognized:
120b3f627acSSam Leffler.\" .Bl -tag -width indent
121b3f627acSSam Leffler.\" .It Va iapp_interface
122b3f627acSSam Leffler.\" Interface to be used for IAPP broadcast packets
123b3f627acSSam Leffler.\" .El
124b3f627acSSam Leffler.Sh RADIUS CLIENT PARAMETERS
125b3f627acSSam LefflerThe following parameters are recognized:
126b3f627acSSam Leffler.Bl -tag -width indent
127b3f627acSSam Leffler.It Va own_ip_addr
128b3f627acSSam LefflerThe own IP address of the access point (used as NAS-IP-Address).
129b3f627acSSam Leffler.It Va nas_identifier
130b3f627acSSam LefflerOptional NAS-Identifier string for RADIUS messages.
131b3f627acSSam Leffler.It Va auth_server_addr , auth_server_port , auth_server_shared_secret
132b3f627acSSam LefflerRADIUS authentication server parameters.
133b3f627acSSam LefflerCan be defined twice for secondary servers to be used if primary one
134b3f627acSSam Lefflerdoes not reply to RADIUS packets.
135b3f627acSSam Leffler.It Va acct_server_addr , acct_server_port , acct_server_shared_secret
136b3f627acSSam LefflerRADIUS accounting server parameters.
137b3f627acSSam LefflerCan be defined twice for secondary servers to be used if primary one
138b3f627acSSam Lefflerdoes not reply to RADIUS packets.
139b3f627acSSam Leffler.It Va radius_retry_primary_interval
140b3f627acSSam LefflerRetry interval for trying to return to the primary RADIUS server (in
141b3f627acSSam Lefflerseconds).
142b3f627acSSam Leffler.It Va radius_acct_interim_interval
143b3f627acSSam LefflerInterim accounting update interval.
144b3f627acSSam LefflerIf this is set (larger than 0) and acct_server is configured,
145b3f627acSSam Leffler.Xr hostapd 8
146b3f627acSSam Lefflerwill send interim accounting updates every N seconds.
147b3f627acSSam Leffler.El
148b3f627acSSam Leffler.Sh RADIUS AUTHENTICATION SERVER PARAMETERS
149b3f627acSSam LefflerThe following parameters are recognized:
150b3f627acSSam Leffler.Bl -tag -width indent
151b3f627acSSam Leffler.It Va radius_server_clients
152b3f627acSSam LefflerFile name of the RADIUS clients configuration for the RADIUS server.
153b3f627acSSam LefflerIf this is commented out, RADIUS server is disabled.
154b3f627acSSam Leffler.It Va radius_server_auth_port
155b3f627acSSam LefflerThe UDP port number for the RADIUS authentication server.
156b3f627acSSam Leffler.It Va radius_server_ipv6
157b3f627acSSam LefflerUse IPv6 with RADIUS server.
158b3f627acSSam Leffler.El
159b3f627acSSam Leffler.Sh WPA/IEEE 802.11i PARAMETERS
160b3f627acSSam LefflerThe following parameters are recognized:
161b3f627acSSam Leffler.Bl -tag -width indent
162b3f627acSSam Leffler.It Va wpa
163b3f627acSSam LefflerEnable WPA.
164b3f627acSSam LefflerSetting this variable configures the AP to require WPA (either
165b3f627acSSam LefflerWPA-PSK or WPA-RADIUS/EAP based on other configuration).
166b3f627acSSam Leffler.It Va wpa_psk , wpa_passphrase
167b3f627acSSam LefflerWPA pre-shared keys for WPA-PSK.
168b3f627acSSam LefflerThis can be either entered as a 256-bit secret in hex format (64 hex
169b3f627acSSam Lefflerdigits), wpa_psk, or as an ASCII passphrase (8..63 characters) that
170b3f627acSSam Lefflerwill be converted to PSK.
171b3f627acSSam LefflerThis conversion uses SSID so the PSK changes when ASCII passphrase is
172b3f627acSSam Lefflerused and the SSID is changed.
173b3f627acSSam Leffler.It Va wpa_psk_file
17447d29bbaSGlen BarberOptionally, WPA PSKs can be read from a separate text file containing a
17547d29bbaSGlen Barberlist of PSK and MAC address pairs.
176b3f627acSSam Leffler.It Va wpa_key_mgmt
177b3f627acSSam LefflerSet of accepted key management algorithms (WPA-PSK, WPA-EAP, or both).
178b3f627acSSam Leffler.It Va wpa_pairwise
179b3f627acSSam LefflerSet of accepted cipher suites (encryption algorithms) for pairwise keys
180b3f627acSSam Leffler(unicast packets).
181b3f627acSSam LefflerSee the example file for more information.
182b3f627acSSam Leffler.It Va wpa_group_rekey
183b3f627acSSam LefflerTime interval for rekeying GTK (broadcast/multicast encryption keys) in
184b3f627acSSam Lefflerseconds.
185b3f627acSSam Leffler.It Va wpa_strict_rekey
186b3f627acSSam LefflerRekey GTK when any STA that possesses the current GTK is leaving the
187b3f627acSSam LefflerBSS.
188b3f627acSSam Leffler.It Va wpa_gmk_rekey
189bc84aa4bSRuslan ErmilovTime interval for rekeying GMK (master key used internally to generate GTKs),
190bc84aa4bSRuslan Ermilovin seconds.
191b3f627acSSam Leffler.El
192b9b8a416SSam Leffler.Sh SEE ALSO
193b9b8a416SSam Leffler.Xr hostapd 8 ,
194e516c0d9SRuslan Ermilov.Xr hostapd_cli 8
195b9b8a416SSam Leffler.Sh HISTORY
196b9b8a416SSam LefflerThe
197b9b8a416SSam Leffler.Nm
198b9b8a416SSam Lefflermanual page and
199e516c0d9SRuslan Ermilov.Xr hostapd 8
200b9b8a416SSam Lefflerfunctionality first appeared in
201b9b8a416SSam Leffler.Fx 6.0 .
202b9b8a416SSam Leffler.Sh AUTHORS
203e516c0d9SRuslan ErmilovThis manual page is derived from the
204e516c0d9SRuslan Ermilov.Pa README
205e516c0d9SRuslan Ermilovand
206e516c0d9SRuslan Ermilov.Pa hostapd.conf
207b9b8a416SSam Lefflerfiles in the
208b9b8a416SSam Leffler.Nm hostapd
209b9b8a416SSam Lefflerdistribution provided by
21001c2b8acSBaptiste Daroussin.An Jouni Malinen Aq Mt j@w1.fi .
211