eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

iwd.config.rst (18700B)


      1 ============
      2  iwd.config
      3 ============
      4 
      5 --------------------------------------
      6 Configuration file for wireless daemon
      7 --------------------------------------
      8 
      9 :Author: Marcel Holtmann <marcel@holtmann.org>
     10 :Author: Denis Kenzior <denkenz@gmail.com>
     11 :Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
     12 :Author: Tim Kourt <tim.a.kourt@linux.intel.com>
     13 :Author: James Prestwood <prestwoj@gmail.com>
     14 :Copyright: 2013-2019 Intel Corporation
     15 :Version: iwd
     16 :Date: 22 September 2019
     17 :Manual section: 5
     18 :Manual group: Linux Connectivity
     19 
     20 SYNOPSIS
     21 ========
     22 
     23 Configuration file **main.conf**
     24 
     25 DESCRIPTION
     26 ===========
     27 
     28 The *main.conf* configuration file configures the system-wide settings for
     29 **iwd**.  This file lives in the configuration directory specified by the
     30 environment variable *$CONFIGURATION_DIRECTORY*, which is normally provided
     31 by **systemd**.  In the absence of such an environment variable it defaults
     32 to */etc/iwd*.  If no *main.conf* is present, then default values are
     33 chosen.  The presence of *main.conf* is not required.
     34 
     35 FILE FORMAT
     36 ===========
     37 
     38 See *iwd.network* for details on the file format.
     39 
     40 SETTINGS
     41 ========
     42 
     43 The settings are split into several categories.  Each category has a group
     44 associated with it and described in separate tables below.
     45 
     46 General Settings
     47 ----------------
     48 
     49 The group ``[General]`` contains general settings.
     50 
     51 .. list-table::
     52    :header-rows: 0
     53    :stub-columns: 0
     54    :widths: 20 80
     55    :align: left
     56 
     57    * - EnableNetworkConfiguration
     58      - Values: true, **false**
     59 
     60        Enable network configuration.
     61 
     62        Setting this option to *true* enables **iwd** to configure the network
     63        interfaces with the IP addresses.  There are two types IP addressing
     64        supported by **iwd**: static and dynamic.  The static IP addresses are
     65        configured through the network configuration files.  If no static IP
     66        configuration has been provided for a network, **iwd** will attempt to
     67        obtain the dynamic addresses from the network through the built-in
     68        DHCP client.
     69 
     70        This also enables network configuration and the DHCP server when in AP
     71        mode and the AP profile being activated does not override it.
     72 
     73        The network configuration feature is disabled by default.  See
     74        ``[Network]`` settings for additional settings related to network
     75        configuration.
     76 
     77    * - UseDefaultInterface (**deprecated**)
     78      - Values: true, **false**
     79 
     80        Do not allow **iwd** to destroy / recreate wireless interfaces at
     81        startup, including default interfaces.  Enable this behavior if your
     82        wireless card driver is buggy or does not allow such an operation, or
     83        if you do not want **iwd** to manage netdevs for another reason.  For
     84        most users with an upstream driver it should be safe to omit/disable
     85        this setting.
     86 
     87        This setting is deprecated, please use [DriverQuirks].DefaultInterface
     88        instead.
     89 
     90    * - AddressRandomization
     91      - Values: **disabled**, once, network
     92 
     93        If ``AddressRandomization`` is set to ``disabled``, the default kernel
     94        behavior is used.  This means the kernel will assign a mac address from
     95        the permanent mac address range provided by the hardware / driver.  Thus
     96        it is possible for networks to track the user by the mac address which
     97        is permanent.
     98 
     99        If ``AddressRandomization`` is set to ``once``, MAC address is
    100        randomized a single time when **iwd** starts or when the hardware is
    101        detected for the first time (due to hotplug, etc.)
    102 
    103        If ``AddressRandomization`` is set to ``network``, the MAC address is
    104        randomized on each connection to a network. The MAC is generated based on
    105        the SSID and permanent address of the adapter. This allows the same MAC
    106        to be generated each time connecting to a given SSID while still hiding
    107        the permanent address.
    108 
    109    * - AddressRandomizationRange
    110      - Values: **full**, nic
    111 
    112        One can control which part of the address is randomized using this
    113        setting.
    114 
    115        When using ``AddressRandomizationRange`` set to ``nic``, only the NIC
    116        specific octets (last 3 octets) are randomized.  Note that the
    117        randomization range is limited to 00:00:01 to 00:00:FE.  The permanent
    118        mac address of the card is used for the initial 3 octets.
    119 
    120        When using ``AddressRandomizationRange`` set to ``full``, all 6 octets
    121        of the address are randomized.  The locally-administered bit will be
    122        set.
    123 
    124    * - RoamThreshold
    125      - Value: rssi dBm value, from -100 to 1, default: **-70**
    126 
    127        This value can be used to control how aggressively **iwd** roams when
    128        connected to a 2.4GHz access point.
    129 
    130    * - RoamThreshold5G
    131      - Value: rssi dBm value, from -100 to 1, default: **-76**
    132 
    133        This value can be used to control how aggressively **iwd** roams when
    134        connected to a 5GHz access point.
    135 
    136    * - CriticalRoamThreshold
    137      - Value: rssi dBm value, from -100 to -1, default: **-80**
    138 
    139        The threshold (for 2.4GHz) at which IWD will roam regardless of the
    140        affinity set to the current BSS. If the connected BSS has affinity
    141        (set in Station's Affinities list) the roam threshold will be lowed to
    142        this value and IWD will not attempt to roam (or roam scan) until either
    143        the affinity is cleared, or the signal drops below this threshold.
    144 
    145 
    146    * - CriticalRoamThreshold5G
    147      - Value: rssi dBm value, from -100 to -1, default: **-82**
    148 
    149        This has the same effect as ``CriticalRoamThreshold``, but for the 5GHz
    150        band.
    151 
    152    * - RoamRetryInterval
    153      - Value: unsigned int value in seconds (default: **60**)
    154 
    155        Specifies how long **iwd** will wait before attempting to roam again if
    156        the last roam attempt failed, or if the signal of the newly connected BSS
    157        is still considered weak.
    158 
    159    * - ManagementFrameProtection
    160      - Values: 0, **1** or 2
    161 
    162        When ``ManagementFrameProtection`` is ``0``, MFP is completely turned
    163        off, even if the hardware is capable.  This setting is not recommended.
    164 
    165        When ``ManagementFrameProtection`` is ``1``, MFP is enabled if the local
    166        hardware and remote AP both support it.
    167 
    168        When ``ManagementFrameProtection`` is ``2``, MFP is always required.
    169        This can prevent successful connection establishment on some hardware or
    170        to some networks.
    171 
    172    * - ControlPortOverNL80211
    173      - Values: false, **true**
    174 
    175        Enable/Disable sending EAPoL packets over NL80211.  Enabled by default
    176        if kernel support is available.  Doing so sends all EAPoL traffic over
    177        directly to the supplicant process (**iwd**) instead of putting these on
    178        the Ethernet device.  Since only the supplicant can usually make
    179        sense / decrypt these packets, enabling this option can save some CPU
    180        cycles on your system and avoids certain long-standing race conditions.
    181 
    182    * - DisableANQP
    183      - Values: false, **true**
    184 
    185        Enable/disable ANQP queries. The way IWD does ANQP queries is dependent
    186        on a recent kernel patch (available in Kernel 5.3). If your kernel does
    187        not have this functionality this should be disabled (default).  Some
    188        drivers also do a terrible job of sending public action frames
    189        (freezing or crashes) which is another reason why this has been turned
    190        off by default.  If you want to easily utilize Hotspot 2.0 networks,
    191        then setting ``DisableANQP`` to ``false`` is recommended.
    192 
    193    * - DisableOCV
    194      - Value: **false**, true
    195 
    196        Disable Operating Channel Validation. Support for this is not advertised
    197        by the kernel so if kernels/drivers exist which don't support OCV it can
    198        be disabled here.
    199 
    200    * - SystemdEncrypt
    201 
    202        **Warning: This is a highly experimental feature**
    203      - Value: Systemd key ID
    204 
    205        Enables network profile encryption using a systemd provided secret key.
    206        Once enabled all PSK/8021x network profiles will be encrypted
    207        automatically. Once the profile is encrypted there is no way of going
    208        back using IWD alone. A tool, **iwd-decrypt-profile**, is provided
    209        assuming the secret is known which will decrypt a profile. This
    210        decrypted profile could manually be set to /var/lib/iwd to 'undo' any
    211        profile encryption, but its going to be a manual process.
    212 
    213        Setting up systemd to provide the secret is left up to the user as IWD
    214        has no way of performing this automatically. The systemd options
    215        required are LoadCredentialEncrypted or SetCredentialEncrypted, and the
    216        secret identifier should be named whatever SystemdEncrypt is set to.
    217 
    218    * - Country
    219      - Value: Country Code (ISO Alpha-2)
    220 
    221        Requests the country be set for the system. Note that setting this is
    222        simply a **request** to set the country, and does not guarantee the
    223        country will be set. For a self-managed wiphy it is never possible to set
    224        the country from userspace. For other devices any regulatory domain
    225        request is just a 'hint' and ultimately left up to the kernel to set the
    226        country.
    227 
    228    * - DisablePMKSA
    229      - Value: **false**, true
    230 
    231        Disable PMKSA support in IWD
    232 
    233 Network
    234 -------
    235 
    236 The group ``[Network]`` contains network configuration related settings.
    237 
    238 .. list-table::
    239    :header-rows: 0
    240    :stub-columns: 0
    241    :widths: 20 80
    242    :align: left
    243 
    244    * - EnableIPv6
    245      - Values: **true**, false
    246 
    247        Sets the global default that tells **iwd** whether it should configure
    248        IPv6 addresses and routes (either provided via static settings,
    249        Router Advertisements or DHCPv6 protocol).  This setting is enabled
    250        by default.  This setting can also be overridden on a per-network basis.
    251 
    252    * - NameResolvingService
    253      - Values: resolvconf, **systemd**, none
    254 
    255        Configures a DNS resolution method used by the system.
    256 
    257        This configuration option must be used in conjunction with
    258        ``EnableNetworkConfiguration`` and provides the choice of system
    259        resolver integration.
    260 
    261        If not specified, ``systemd`` is used as default.
    262 
    263        If ``none`` is specified, then DNS and domain name information is
    264        ignored.
    265 
    266    * - RoutePriorityOffset
    267      - Values: uint32 value (default: **300**)
    268 
    269        Configures a route priority offset used by the system to prioritize
    270        the default routes. The route with lower priority offset is preferred.
    271 
    272        If not specified, ``300`` is used as default.
    273 
    274 Blacklist
    275 ---------
    276 
    277 The group ``[Blacklist]`` contains settings related to blacklisting of BSSes.
    278 If **iwd** determines that a connection to a BSS fails for a reason that
    279 indicates the BSS is currently misbehaving or misconfigured (e.g. timeouts,
    280 unexpected status/reason codes, etc), then **iwd** will blacklist this BSS
    281 and avoid connecting to it for a period of time.  These options let the user
    282 control how long a misbehaved BSS spends on the blacklist.
    283 
    284 .. list-table::
    285    :header-rows: 0
    286    :stub-columns: 0
    287    :widths: 20 80
    288    :align: left
    289 
    290    * - InitialTimeout
    291      - Values: uint64 value in seconds (default: **60**)
    292 
    293        The initial time that a BSS spends on the blacklist. Setting this to zero
    294        will disable blacklisting functionality in IWD.
    295    * - InitialRoamRequestedTimeout (**deprecated**)
    296      - Values: uint64 value in seconds (default: **30**)
    297 
    298        This setting is deprecated, please use
    299        [Blacklist].InitialAccessPointBusyTimeout instead.
    300    * - InitialAccessPointBusyTimeout
    301      - Values: uint64 value in seconds (default: **30**)
    302 
    303        The initial time that a BSS will be blacklisted after indicating it
    304        cannot handle more connections. This is triggered by either a BSS
    305        transition management request (telling IWD to roam elsewhere) or by a
    306        denied authentication or association with the NO_MORE_STAS status code.
    307 
    308        Once a BSS is blacklisted in this manor IWD will attempt to avoid it for
    309        the configured amount of time.
    310 
    311    * - Multiplier
    312      - Values: unsigned int value greater than zero, in seconds
    313        (default: **30**)
    314 
    315        If the BSS was blacklisted previously and another connection attempt
    316        has failed after the initial timeout has expired, then the BSS blacklist
    317        time will be extended by a multiple of *Multiplier* for each
    318        unsuccessful attempt up to *MaxiumTimeout* time in seconds.
    319    * - MaximumTimeout
    320      - Values: uint64 value in seconds (default: **86400**)
    321 
    322        Maximum time that a BSS is blacklisted.
    323 
    324 Rank
    325 ----
    326 
    327 The group ``[Rank]`` contains settings related to ranking of networks for
    328 autoconnect purposes.
    329 
    330 .. list-table::
    331    :header-rows: 0
    332    :stub-columns: 0
    333    :widths: 20 80
    334    :align: left
    335 
    336    * - BandModifier2_4GHz
    337      - Values: floating point value (default: **1.0**)
    338 
    339        Increase or decrease the preference for 2.4GHz access points by
    340        increasing or decreasing the value of this modifier.
    341 
    342        A value of 0.0 will disable the 2.4GHz band and prevent scanning or
    343        connecting on those frequencies.
    344 
    345    * - BandModifier5GHz
    346      - Values: floating point value (default: **1.0**)
    347 
    348        Increase or decrease the preference for 5GHz access points by increasing
    349        or decreasing the value of this modifier.  5GHz networks are already
    350        preferred due to their increase throughput / data rate.  However, 5GHz
    351        networks are highly RSSI sensitive, so it is still possible for IWD to
    352        prefer 2.4GHz APs in certain circumstances.
    353 
    354        A value of 0.0 will disable the 5GHz band and prevent scanning or
    355        connecting on those frequencies.
    356 
    357    * - BandModifier6GHz
    358      - Values: floating point value (default: **1.0**)
    359 
    360        Increase or decrease the preference for 6GHz access points by increasing
    361        or decreasing the value of this modifier.  Since 6GHz networks are highly
    362        RSSI sensitive, this gives an option to prefer 6GHz APs over 5GHz APs.
    363 
    364        A value of 0.0 will disable the 6GHz band and prevent scanning or
    365        connecting on those frequencies.
    366 
    367    * - HighUtilizationThreshold
    368      - Values: unsigned integer value 0 - 255 (default: **0**, disabled)
    369 
    370        **Warning: This is an experimental feature**
    371 
    372        The BSS utilization threshold at which a negative rank factor begins to
    373        be applied to the BSS. As the load increases for a BSS the ranking factor
    374        decays exponentially, meaning the ranking factor will decrease
    375        exponentially. Setting this can have very drastic effects on the BSS rank
    376        if its utilization is high, use with care.
    377 
    378    * - HighStationCountThreshold
    379      - Values: unsigned integer value 0 - 255 (default: **0**, disabled)
    380 
    381        **Warning: This is an experimental feature**
    382 
    383        The BSS station count threshold at which a negative rank factor begins to
    384        be applied to the BSS. As the station count increases for a BSS the
    385        ranking factor decays exponentially, meaning the ranking factor will
    386        decrease exponentially. Setting this can have very drastic effects on the
    387        BSS rank if its station count is high, use with care.
    388 
    389 Scan
    390 ----
    391 
    392 The group ``[Scan]`` contains settings related to scanning functionality.
    393 No modification from defaults is normally required.
    394 
    395 .. list-table::
    396    :header-rows: 0
    397    :stub-columns: 0
    398    :widths: 20 80
    399    :align: left
    400 
    401    * - DisablePeriodicScan
    402      - Values: true, **false**
    403 
    404        Disable periodic scan. Setting this option to 'true' will prevent
    405        **iwd** from issuing the periodic scans for the available networks while
    406        disconnected.  The behavior of the user-initiated scans isn't affected.
    407        The periodic scan is enabled by default.
    408 
    409    * - InitialPeriodicScanInterval
    410      - Values: unsigned int value in seconds (default: **10**)
    411 
    412        The initial periodic scan interval upon disconnect.
    413 
    414    * - MaximumPeriodicScanInterval
    415      - Values: unsigned int value in seconds (default: **300**)
    416 
    417        The maximum periodic scan interval.
    418 
    419    * - DisableRoamingScan
    420      - Values: true, **false**
    421 
    422        Disable roaming scan. Setting this option to 'true' will prevent **iwd**
    423        from trying to scan when roaming decisions are activated.  This can
    424        prevent **iwd** from roaming properly, but can be useful for networks
    425        operating under extremely low rssi levels where roaming isn't possible.
    426 
    427 IPv4
    428 ----
    429 
    430 The group ``[IPv4]`` contains settings related to IPv4 network configuration.
    431 
    432 .. list-table::
    433    :header-rows: 0
    434    :stub-columns: 0
    435    :widths: 20 80
    436    :align: left
    437 
    438    * - APAddressPool
    439      - Values: comma-separated list of prefix-notation IP strings
    440 
    441        Defines the space of IPs used for the Access Point-mode subnet addresses
    442        and the DHCP server.  Defaults to 192.168.0.0/16.  The prefix length
    443        decides the size of the pool from which an address is selected but the
    444        actual subnet size (netmask) is based on the AP profile being activated
    445        and defaults to 28 bits.  The AP profile's ``[IPv4].Address`` setting
    446        overrides the global value set here.  Setting a too small address space
    447        will limit the number of access points that can be running
    448        simultaneously on different interfaces.
    449 
    450 DriverQuirks
    451 ------------
    452 
    453 The group ``[DriverQuirks]`` contains special flags associated with drivers that
    454 are buggy or just don't behave similar enough to the majority of other drivers.
    455 
    456 .. list-table::
    457    :header-rows: 0
    458    :stub-columns: 0
    459    :widths: 20 80
    460    :align: left
    461 
    462    * - DefaultInterface
    463      - Values: comma-separated list of drivers or glob matches
    464 
    465        If a driver in use matches one in this list IWD will not attempt to
    466        remove and re-create the default interface.
    467 
    468    * - ForcePae
    469      - Values: comma-separated list of drivers or glob matches
    470 
    471        If a driver in use matches one in this list ControlPortOverNL80211 will
    472        not be used, and PAE will be used instead. Some drivers do not properly
    473        support ControlPortOverNL80211 even though they advertise support for it.
    474 
    475    * - PowerSaveDisable
    476      - Values: comma-separated list of drivers or glob matches
    477 
    478        If a driver in user matches one in this list power save will be disabled.
    479 
    480    * - MulticastRxDisable
    481      - Values: comma-separated list of drivers or glob matches
    482 
    483        If a driver in use matches one in this list, multicast RX will be
    484        disabled.
    485 
    486    * - SaeDisable
    487      - Values: comma-separated list of drivers or glob matches
    488 
    489        If a driver in use matches one in this list, SAE/WPA3 will be disabled
    490        for connections. This will prevent connections to WPA3-only networks, but
    491        will allow for connections to WPA3/WPA2 hybrid networks by utilizing
    492        WPA2.
    493 
    494 SEE ALSO
    495 ========
    496 
    497 iwd(8), iwd.network(5)