xref: /openbsd-src/usr.sbin/hostapd/hostapd.8 (revision 41ce3b17e73f6b7d2d9e1a3d961e4bab2d895cb5)
1*41ce3b17Snaddy.\" $OpenBSD: hostapd.8,v 1.23 2022/03/31 17:27:29 naddy Exp $
2d2b2a2e3Sreyk.\"
32c56d0d6Sreyk.\" Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org>
4d2b2a2e3Sreyk.\"
5d2b2a2e3Sreyk.\" Permission to use, copy, modify, and distribute this software for any
6d2b2a2e3Sreyk.\" purpose with or without fee is hereby granted, provided that the above
7d2b2a2e3Sreyk.\" copyright notice and this permission notice appear in all copies.
8d2b2a2e3Sreyk.\"
9d2b2a2e3Sreyk.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10d2b2a2e3Sreyk.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11d2b2a2e3Sreyk.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12d2b2a2e3Sreyk.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13d2b2a2e3Sreyk.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14d2b2a2e3Sreyk.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15d2b2a2e3Sreyk.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16d2b2a2e3Sreyk.\"
17*41ce3b17Snaddy.Dd $Mdocdate: March 31 2022 $
18d2b2a2e3Sreyk.Dt HOSTAPD 8
19d2b2a2e3Sreyk.Os
20d2b2a2e3Sreyk.Sh NAME
21d2b2a2e3Sreyk.Nm hostapd
22d2b2a2e3Sreyk.Nd Host Access Point daemon
23d2b2a2e3Sreyk.Sh SYNOPSIS
24d2b2a2e3Sreyk.Nm hostapd
25cb46a11aSreyk.Op Fl dv
26163d879bSjmc.Op Fl D Ar macro Ns = Ns Ar value
27d2b2a2e3Sreyk.Op Fl f Ar file
28d2b2a2e3Sreyk.Sh DESCRIPTION
29d2b2a2e3Sreyk.Nm
30daf857caSjmcis a daemon which allows communication between different 802.11
31d2b2a2e3Sreykwireless access points running in
322758ccddSjmc.Em Host AP
33d2b2a2e3Sreykmode.
34d2b2a2e3Sreyk.Pp
35d2b2a2e3Sreyk.Nm
36fd71840bSmoritzimplements the Inter Access Point Protocol (IAPP).
372758ccddSjmcIts purpose is to exchange station association updates between access
38d2b2a2e3Sreykpoints in large wireless networks.
39d2b2a2e3SreykIAPP has been designed to speed up roaming between different access
402758ccddSjmcpoints in the same Extended Service Set (ESS).
412758ccddSjmcIAPP is described in the IEEE 802.11f standard.
42d2b2a2e3Sreyk.Pp
43d2b2a2e3Sreyk.Nm
442758ccddSjmcadditionally allows the monitoring and logging of station associations on a
45d2b2a2e3Sreyknon-hostap host which is receiving IAPP messages.
46d2b2a2e3Sreyk.Pp
47d2b2a2e3Sreyk.Nm
48cb46a11aSreykuses two network interfaces on startup specified in the configuration file
49cb46a11aSreyk.Xr hostapd.conf 5 .
50cb46a11aSreykThe first interface is used to access the Host AP,
512758ccddSjmcwhich is a wireless interface running in Host AP mode.
522758ccddSjmcHost AP mode can be enabled using
532758ccddSjmc.Xr ifconfig 8 .
542758ccddSjmcThe second interface is used to communicate with other
55d2b2a2e3Sreyk.Nm
56d2b2a2e3Sreykin the same broadcast domain or multicast group.
57d2b2a2e3SreykUsually a wired interface is used to communicate with other
58d2b2a2e3Sreyk.Nm .
59d2b2a2e3Sreyk.Pp
60d2b2a2e3Sreyk.Nm
618792ab91Skrwbroadcasts an
622758ccddSjmc.Em ADD.notify
638792ab91SkrwIAPP message when a new station is associated to the Host AP.
648792ab91SkrwWhen
65d2b2a2e3Sreyk.Nm
66*41ce3b17Snaddyreceives an ADD.notify message, it tells the Host AP
678792ab91Skrwto remove the specified station.
68d2b2a2e3Sreyk.Pp
6974ff1540Sreyk.Nm
7074ff1540Sreykmay also handle dynamic roaming of IP addresses and routes in
7174ff1540Sreykaddition to the standard IAPP ADD.notify behaviour.
7260addc80SjmcSee the section called IP Roaming in
7374ff1540Sreyk.Xr hostapd.conf 5
7474ff1540Sreykfor details.
7574ff1540Sreyk.Pp
76d2b2a2e3SreykThe options are as follows:
77d2b2a2e3Sreyk.Bl -tag -width Ds
78d2b2a2e3Sreyk.It Fl D Ar macro Ns = Ns Ar value
79d2b2a2e3SreykDefine
80d2b2a2e3Sreyk.Ar macro
81d2b2a2e3Sreykto be set to
82d2b2a2e3Sreyk.Ar value
83d2b2a2e3Sreykon the command line.
84d2b2a2e3SreykOverrides the definition of
85d2b2a2e3Sreyk.Ar macro
86d2b2a2e3Sreykin the configuration file.
87d2b2a2e3Sreyk.It Fl d
88d2b2a2e3SreykDo not daemonize and log to
89d2b2a2e3Sreyk.Em stderr .
90d2b2a2e3Sreyk.It Fl f Ar file
91d2b2a2e3SreykUse
92d2b2a2e3Sreyk.Ar file
93d2b2a2e3Sreykas the configuration file, instead of the default
94d2b2a2e3Sreyk.Pa /etc/hostapd.conf .
95d2b2a2e3Sreyk.It Fl v
96d2b2a2e3SreykProduce more verbose output.
97d2b2a2e3Sreyk.El
98d2b2a2e3Sreyk.Sh FILES
99d2b2a2e3Sreyk.Bl -tag -width "/etc/hostapd.confXXX" -compact
100d2b2a2e3Sreyk.It Pa /etc/hostapd.conf
101d2b2a2e3Sreykdefault
102d2b2a2e3Sreyk.Nm
103d2b2a2e3Sreykconfiguration file
104d2b2a2e3Sreyk.El
105d2b2a2e3Sreyk.Sh SEE ALSO
106ee39ead8Sreyk.Xr hostapd.conf 5 ,
10739ba1235Sreyk.Xr ifconfig 8
108d2b2a2e3Sreyk.Rs
1092758ccddSjmc.%R IEEE 802.11f
110d2b2a2e3Sreyk.%T Inter Access Point Protocol
111d2b2a2e3Sreyk.%D March 2001
112d2b2a2e3Sreyk.Re
113d2b2a2e3Sreyk.Sh HISTORY
114d2b2a2e3SreykThe
115d2b2a2e3Sreyk.Nm
116b64564ccSjolanprogram first appeared at the 21st Chaos Communication Congress
1179fcf2b24Sjsg.Pq Lk https://events.ccc.de/congress/2004/
1187991c97fSjmcand later in
119d2b2a2e3Sreyk.Ox 3.8 .
120d2b2a2e3Sreyk.Sh AUTHORS
121d2b2a2e3SreykThe
122d2b2a2e3Sreyk.Nm
123d2b2a2e3Sreykprogram was written by
12444e68d47Sschwarze.An Reyk Floeter Aq Mt reyk@openbsd.org .
1252758ccddSjmc.Sh CAVEATS
1262758ccddSjmc.Nm
1272758ccddSjmcdepends on drivers using the net80211
1282758ccddSjmckernel wireless layer with support of Host AP mode.
1292758ccddSjmcFor traditional reasons,
1302758ccddSjmcthe
1312758ccddSjmc.Xr wi 4
1322758ccddSjmcdriver still uses its own Host AP code in
1332758ccddSjmc.Fn if_wi_hostap ,
1342758ccddSjmcwhich is not supported by
1352758ccddSjmc.Nm .
136418e573dSreyk.Pp
137418e573dSreykThe IEEE 802.11 WLAN protocol lacks authentication of management
138f5710040Sjmcframes and is vulnerable to various denial of service and
139f5710040Sjmcman-in-the-middle attacks.
140418e573dSreykThat should be considered when implementing wireless networks
141418e573dSreykwith
142418e573dSreyk.Nm .
143