iwd.ap.rst (7380B)
1 ============ 2 iwd.ap 3 ============ 4 5 -------------------------------------- 6 Configuration of IWD access points 7 -------------------------------------- 8 9 :Author: James Prestwood <prestwoj@gmail.com> 10 :Copyright: 2020 Intel Corporation 11 :Version: iwd 12 :Date: 20 October 2020 13 :Manual section: 5 14 :Manual group: Linux Connectivity 15 16 NAME 17 ==== 18 iwd.ap - Access point provisioning files 19 20 SYNOPSIS 21 ======== 22 23 Description of access point provisioning files. 24 25 DESCRIPTION 26 =========== 27 28 An access point provisioning file defines the configuration of an IWD access 29 point. These files live in *$STATE_DIRECTORY*/ap (/var/lib/iwd/ap by default). 30 They are read when the `net.connman.iwd.AccessPoint.StartProfile(ssid)` DBus 31 method is used. 32 33 FILE FORMAT 34 =========== 35 36 See *iwd.network* for details on the settings file syntax. 37 38 SETTINGS 39 ======== 40 41 The settings are split into several categories. Each category has a group 42 associated with it and is described in the corresponding table below. 43 44 General Settings 45 ---------------- 46 47 The group ``[General]`` contains general AP configuration. 48 49 .. list-table:: 50 :header-rows: 0 51 :stub-columns: 0 52 :widths: 20 80 53 :align: left 54 55 * - Channel 56 - Channel number 57 58 Optional channel number for the access point to operate on. If omitted 59 the channel will be chosen automatically. Channels greater than or equal 60 to 36 will select the 5GHz band for the AP to operate on. 61 62 Note: Due to regulatory requirements the linux kernel does not allow or 63 strictly limits 5GHz use in AP mode while in world roaming. These 64 frequencies become available once the country is set, either via IWD's 65 main.conf option ``[General].Country`` (see ``man iwd.config``) or 66 externally (e.g. iw reg set <CC>). If you are having trouble using 5GHz 67 ensure the country is set, and that the desired frequency/channel is 68 unrestricted. 69 70 * - RekeyTimeout 71 - Timeout for PTK rekeys (seconds) 72 73 The time interval at which the AP starts a rekey for a given station. If 74 not provided a default value of 0 is used (rekeying is disabled). 75 76 * - DisableHT 77 - Boolean value 78 79 Explicitly disable HT capabilities for this AP. 80 81 Network Authentication Settings 82 ------------------------------- 83 84 The group ``[Security]`` contains settings for Wi-Fi security and authentication 85 configuration. 86 87 .. list-table:: 88 :header-rows: 0 89 :stub-columns: 0 90 :widths: 20 80 91 :align: left 92 93 * - Passphrase 94 - 8..63 character string 95 96 WPA-PSK Passphrase to be used with this access point. At least one of 97 *Passphrase*, *PreSharedKey* must be present. 98 99 * - PreSharedKey 100 - 64-character hex-string 101 102 Processed passphrase for this network in the form of a hex-encoded 103 32-byte pre-shared key. Either this or *Passphrase* must be present. 104 105 * - PairwiseCiphers 106 - Comma separated list of pairwise ciphers for the AP supports. 107 108 Values can include: TKIP, CCMP, GCMP, GCMP-256, CCMP-256 109 110 The underlying hardware and IWD's AP implementation must also support the 111 ciphers listed 112 113 * - GroupCipher 114 - Group cipher the AP uses 115 116 A single cipher value the AP can use as the group cipher. Values are the 117 same as pairwise ciphers and the same restrictions apply (hardware and 118 IWD implementation must support the cipher) 119 120 IPv4 Network Configuration 121 -------------------------- 122 123 The group ``[IPv4]`` contains settings for IWD's built-in DHCP server. All 124 settings are optional. They're used if network configuration was enabled as 125 described in ``iwd.config(5)``. Omitting the ``[IPv4]`` group disables 126 network configuration for this access point so if an all-defaults DHCP setup 127 is desired, the group header line must still be present: 128 129 .. code-block:: 130 131 # Enable network configuration 132 [IPv4] 133 134 [other groups follow] 135 136 .. list-table:: 137 :header-rows: 0 138 :stub-columns: 0 139 :widths: 20 80 140 141 * - Address 142 - Local IP address or a comma-separated list of prefix-notation addresses 143 144 Optional local address pool for the access point and the DHCP server. 145 If a single address is provided this address will be set on the AP 146 interface and any other DHCP server options will be derived from it 147 if not overridden by other settings below. 148 149 If a list of addresses and prefix lengths is specified (in the 150 `<IP>/<prefix-len>` format), a single subnet address will be selected 151 from the available space each time this profile is started. The subnet 152 size is based on the ``[IPv4].Netmask`` setting. 153 154 If *Address* is not provided and no IP address is set on the 155 interface prior to calling `StartProfile` the value of the main.conf 156 ``[IPv4].APAddressPool`` setting will be inherited, which in turn 157 defaults to 192.168.0.0/16. 158 159 For example, if ``[IPv4].Netmask`` is set to 255.255.255.0 and this 160 setting, or the global *APAddressPool* fallback, is set to 161 ``192.168.0.0/16, 10.0.0.0/22``, IWD will select one of the 256 subnets 162 with addresses in the 192.168.<0-255>.0/24 range or one of the 4 subnets 163 with addresses in the 10.0.<0-3>.0/24 range, allowing 270 possible 164 subnets. Defining an address pool larger than the desired subnet gives 165 IWD a chance to avoid conflicts if other interfaces on the system use 166 dynamically assigned addresses. 167 168 * - Gateway 169 - IP Address of gateway 170 171 IP address of the gateway to be advertised by DHCP. This will fall back 172 to the local IP address if not provided. 173 174 * - Netmask 175 - Local netmask of the AP 176 177 Defaults to a 28-bit netmask if not provided. 178 179 * - DNSList 180 - List of DNS servers as a comma-separated IP address list 181 182 A list of DNS servers which will be advertised by the DHCP server. If 183 not provided no DNS servers will be sent by the DHCP server. 184 185 * - LeaseTime 186 - Time limit for DHCP leases in seconds 187 188 Override the default lease time. 189 190 * - IPRange 191 - Range of IPs given as two addresses separated by a comma 192 193 From and to addresses of the range assigned to clients through DHCP. 194 If not provided the range from local address + 1 to .254 will be used. 195 196 Wi-Fi Simple Configuration 197 -------------------------- 198 199 The group ``[WSC]`` fine-tunes some Wi-Fi Simple Configuration local parameters 200 (formerly known as WPS, Wi-Fi Protected Setup.) 201 202 .. list-table:: 203 :header-rows: 0 204 :stub-columns: 0 205 :widths: 20 80 206 :align: left 207 208 * - DeviceName 209 - 1..32-character string 210 211 Optional Device Name string for the AP to advertise as. Defaults to 212 the SSID. 213 214 * - PrimaryDeviceType 215 - Subcategory string or a 64-bit integer 216 217 Optional Primary Device Type for the AP to advertise as. Defaults to 218 PC computer. Can be specified as a lower-case WSC v2.0.5 subcategory 219 string or a 64-bit integer encoding, from MSB to LSB: the 16-bit 220 category ID, the 24-bit OUI, the 8-bit OUI type and the 16-bit 221 subcategory ID. 222 223 * - AuthorizedMACs 224 - Comma-separated MAC address list 225 226 Optional list of Authorized MAC addresses for the WSC registrar to 227 check on association. Each address is specified in the 228 colon-hexadecimal notation. Defaults to no MAC-based checks. 229 230 SEE ALSO 231 ======== 232 233 iwd(8), iwd.network(5)