Difference between revisions of "Iwd"

From ArchWiki
Jump to navigation Jump to search
(added eap-pwd)
(added more links for documentation)
Line 77: Line 77:
  
 
If you don't want autoconnect to the AP you can set the option to False and connect manually to the access point via {{ic|iwctl}}. The same applies to the password, if you don't want to store it plaintext leave the option out of the file and just connect to the enterprise AP.
 
If you don't want autoconnect to the AP you can set the option to False and connect manually to the access point via {{ic|iwctl}}. The same applies to the password, if you don't want to store it plaintext leave the option out of the file and just connect to the enterprise AP.
 +
 +
== Further Documentation ==
 +
 +
First steps with IWD: [https://iwd.wiki.kernel.org/gettingstarted https://iwd.wiki.kernel.org/gettingstarted ]<br>
 +
More Examples for Enterprise WPA: [https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/autotests https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/autotests]

Revision as of 20:12, 13 May 2018

IWD is an up-and-coming wireless daemon for Linux. It is written by Intel and aims to replace wpa_supplicant. It comes with different enhancements like an own crypto-library, called ELL, which docks directly into the Linux Kernel cryptography. IWD follows a more simple, more secure and more modern approach.

Installation

Install the iwd package, which includes the client programm iwctl, the daemon iwd and the wifi monitoring tool iwmon. IWD works standalone or in combination with connman or networkmanager.


Overview

The first step is to have the iwd daemon up and running:

# systemctl enable iwd.service --now

Then you can control your wireless settings via the command iwctl. This command will open an interactive shell in the context of IWD.

Basic usage

Displaying all physical wifi devices

# iwctl
[iwd]# device list
                                    Devices                                   *
--------------------------------------------------------------------------------
  Name                Address             State          Adapter   
--------------------------------------------------------------------------------
  wlp2s0b1            5c:ac:4c:ab:3f:7d   disconnected   phy0              

Scanning for networks

# iwctl
[iwd]# device wlp2s0b1 scan 
[iwd]# device wlp2s0b1 get-networks
                               Available networks                             *
--------------------------------------------------------------------------------
    Network name                    Security  Signal
--------------------------------------------------------------------------------
    TestWPA                         psk       ****
    TestWPA2                        psk       ****

Connecting to a WPA2 protected access point

# iwctl
[iwd]# device wlp2s0b1 connect TestWPA2
Type the network passphrase for TestWPA2 psk.                                   
Passphrase: *********************                                               
[iwd]# device wlp2s0b1 get-networks
                               Available networks                              
--------------------------------------------------------------------------------
    Network name                    Security  Signal
--------------------------------------------------------------------------------
    TestWPA                         psk       ****
  > TestWPA2                        psk       ****

WPA Enterprise

EAP-PWD

For connecting to a EAP-PWD protected enterprice access point you need to create a file called: <essid>.8021x in the folder /var/lib/iwd/ with the following content:

/var/lib/iwd/<essid>.8021x
[Security]
EAP-Method=PWD
EAP-Identity=<your enterprise email>
EAP-PWD-Password=<your password>

[Settings]
Autoconnect=True

If you don't want autoconnect to the AP you can set the option to False and connect manually to the access point via iwctl. The same applies to the password, if you don't want to store it plaintext leave the option out of the file and just connect to the enterprise AP.

Further Documentation

First steps with IWD: https://iwd.wiki.kernel.org/gettingstarted
More Examples for Enterprise WPA: https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/autotests