最終更新:2023-06-20 (火) 08:33:06 (458d)
wpa_supplicant
Top / wpa_supplicant
http://hostap.epitest.fi/wpa_supplicant/
wpa_supplicant is a WPA Supplicant for Linux, BSD, Mac OS X, and Windows with support for WPA and WPA2 (IEEE 802.11i / RSN).
リポジトリ
wpa_supplicant/バージョン
Supported WPA/IEEE 802.11i features
- WPA-PSK ("WPA-Personal")
- WPA with EAP (e.g., with RADIUS authentication server) ("WPA-Enterprise")
- key management for CCMP, TKIP, WEP104, WEP40
- WPA and full IEEE 802.11i/RSN/WPA2
- RSN: PMKSA caching, pre-authentication
- IEEE 802.11r
- IEEE 802.11w
- Wi-Fi Protected Setup (WPS)
コマンド
- Linux/sbin
- wpa_action?
- wpa_cli
- wpa_supplicant
Ubuntu/パッケージ
設定ファイル
Ubuntu
- NetworkManagerで管理されている
Raspberry Pi OS
dhcpcd
- wpa_supplicant設定ファイルが存在する場合。dhcpcdはデフォルトで以下のファイルを (この順番で) チェックします:
- /etc/wpa_supplicant/wpa_supplicant-"$interface".conf
- Linux/etc/wpa_supplicant/wpa_supplicant.conf
- /etc/wpa_supplicant-"$interface".conf
- Linux/etc/wpa_supplicant.conf?
systemd
Linux/lib/systemd/system/wpa_supplicant.service
- WPA supplicant
- /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
- D-BusのAPI経由
- NetworkManagerはこっちを使う
Linux/lib/systemd/system/wpa_supplicant@.service
- WPA supplicant daemon (interface-specific version)
- インターフェイスを指定してデーモンを起動
- 設定ファイルの例:Linux/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
- 設定ファイルの中でUnixソケットのファイルを指定(Linux/var/run/wpa_supplicant?)
- /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -Dnl80211,wext -i%I
usage
Successfully initialized wpa_supplicant wpa_supplicant v2.9 Copyright (c) 2003-2019, Jouni Malinen <j@w1.fi> and contributors This software may be distributed under the terms of the BSD license. See README for more details. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) usage: wpa_supplicant [-BddhKLqqstuvW] [-P<pid file>] [-g<global ctrl>] \ [-G<group>] \ -i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] [-p<driver_param>] \ [-b<br_ifname>] [-e<entropy file>] [-f<debug file>] \ [-o<override driver>] [-O<override ctrl>] \ [-N -i<ifname> -c<conf> [-C<ctrl>] [-D<driver>] \ [-m<P2P Device config file>] \ [-p<driver_param>] [-b<br_ifname>] [-I<config file>] ...] drivers: nl80211 = Linux nl80211/cfg80211 wext = Linux wireless extensions (generic) wired = Wired Ethernet driver macsec_linux = MACsec Ethernet driver for Linux none = no driver (RADIUS server/WPS ER) options: -b = optional bridge interface name -B = run daemon in the background -c = Configuration file -C = ctrl_interface parameter (only used if -c is not) -d = increase debugging verbosity (-dd even more) -D = driver name (can be multiple drivers: nl80211,wext) -e = entropy file -f = log output to debug file instead of stdout -g = global ctrl_interface -G = global ctrl_interface group -h = show this help text -i = interface name -I = additional configuration file -K = include keys (passwords, etc.) in debug output -L = show license (BSD) -m = Configuration file for the P2P Device interface -N = start describing new interface -o = override driver parameter for new interfaces -O = override ctrl_interface parameter for new interfaces -p = driver parameters -P = PID file -q = decrease debugging verbosity (-qq even less) -s = log output to syslog instead of stdout -t = include timestamp in debug messages -T = record to Linux tracing in addition to logging (records all messages regardless of debug verbosity) -u = enable DBus control interface -v = show version -W = wait for a control interface monitor before starting example: wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf