Difference between revisions of "Package:WPA Supplicant"

(Created page with "{{Ebuild |Summary=wpa_supplicant is a cross-platform supplicant with support for open, WEP, WPA and WPA2. It handles scanning, connection and automatic reconnect to access poi...")
 
Line 1: Line 1:
 
{{Ebuild
 
{{Ebuild
|Summary=wpa_supplicant is a cross-platform supplicant with support for open, WEP, WPA and WPA2. It handles scanning, connection and automatic reconnect to access points. wpa_supplicant has <code>wpa_cli</code> and <code>wpa_gui</code> frontends and <code>wpa_supplicant</code> daemon. Configuration is stored on <code>/etc/wpa_supplicant/wpa_supplicant.conf</code>.
+
|Summary=wpa_supplicant is a cross-platform supplicant with support for open, WEP, WPA and WPA2. It handles scanning, connection and automatic reconnect to access points. wpa_supplicant has <code>wpa_cli</code> and <code>wpa_gui</code> frontends and <code>wpa_supplicant</code> daemon.
 
|CatPkg=net-wireless/wpa_supplicant
 
|CatPkg=net-wireless/wpa_supplicant
 
|Maintainer=
 
|Maintainer=
 
|Homepage=http://hostap.epitest.fi/wpa_supplicant/
 
|Homepage=http://hostap.epitest.fi/wpa_supplicant/
 
}}
 
}}
 +
 
== Configuration ==
 
== Configuration ==
 +
You can configure <code>wpa_supplicant</code> daemon by editing <code>/etc/wpa_supplicant/wpa_supplicant.conf</code>.
 
{{file|name=/etc/wpa_supplicant/wpa_supplicant.conf|lang=|desc=wpa_supplicant daemon config|body=
 
{{file|name=/etc/wpa_supplicant/wpa_supplicant.conf|lang=|desc=wpa_supplicant daemon config|body=
 
# provide control interface for wpa_cli and wpa_gui frontends
 
# provide control interface for wpa_cli and wpa_gui frontends
Line 27: Line 29:
 
Start daemon with [[openrc]].
 
Start daemon with [[openrc]].
 
<console>
 
<console>
###i##/etc/init.d/wpa_supplicant start
+
###i## /etc/init.d/wpa_supplicant start
 
</console>
 
</console>
 
You can also add it to default runlevel.
 
You can also add it to default runlevel.
 
<console>
 
<console>
###i##rc-update add wpa_supplicant default
+
###i## rc-update add wpa_supplicant default
 
</console>
 
</console>
  
 
The daemon can work independently or you can use wpa_cli and wpa_gui frontends. You can also alter configs with frontends.
 
The daemon can work independently or you can use wpa_cli and wpa_gui frontends. You can also alter configs with frontends.
  
== wpa_cli ==
+
== wpa_cli CLI Frontend ==
 
You can start cli frontend by running <code>wpa_cli</code>.
 
You can start cli frontend by running <code>wpa_cli</code>.
 
<console>
 
<console>
###i## $ wpa_cli
+
###i## wpa_cli
 
</console>
 
</console>
  
 
=== Scan Access Points ===
 
=== Scan Access Points ===
 
<console>
 
<console>
##i##scan
+
>##i## scan
 
OK
 
OK
 
<3>CTRL-EVENT-SCAN-STARTED
 
<3>CTRL-EVENT-SCAN-STARTED
 
<3>CTRL-EVENT-SCAN-RESULTS
 
<3>CTRL-EVENT-SCAN-RESULTS
##i##scan_results
+
>##i## scan_results
 
bssid / frequency / signal level / flags / ssid
 
bssid / frequency / signal level / flags / ssid
 
50:32:75:ee:b6:fb      2462    -41    [WPA2-PSK-CCMP][ESS]    AndroidAP
 
50:32:75:ee:b6:fb      2462    -41    [WPA2-PSK-CCMP][ESS]    AndroidAP
Line 57: Line 59:
 
</console>
 
</console>
  
== wpa_gui ==
+
=== Connect to Access Point ===
 +
<console>
 +
>##i## add_network
 +
0
 +
>##i## set_network 0 ssid "SSID"
 +
>##i## set_network 0 psk "passphrase"
 +
>##i## enable_network 0
 +
<2>CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (reauth) [id=0 id_str=]
 +
</console>
 +
 
 +
=== Save config ===
 +
<console>
 +
>##i## save_config
 +
OK
 +
</console>
 +
 
 +
== wpa_gui GUI Frontend ==
 
<code>wpa_gui</code> is simple gui frontend. You can start it by running <code>wpa_gui</code>.
 
<code>wpa_gui</code> is simple gui frontend. You can start it by running <code>wpa_gui</code>.
 +
<console>
 +
###i## wpa_gui
 +
</console>
 +
 +
== Autoconfigure IP with dhcpcd ==
 +
You can use [[Package:dhcpcd]] to autoconfigure ip address.
 +
<console>
 +
###i## emerge -av dhcpcd
 +
###i## /etc/init.d/dhcpcd start
 +
</console>
 +
 
{{EbuildFooter}}
 
{{EbuildFooter}}

Revision as of 13:04, October 2, 2014

net-wireless/wpa_supplicant


Source Repository:Gentoo Portage Tree
Homepage

Summary: wpa_supplicant is a cross-platform supplicant with support for open, WEP, WPA and WPA2. It handles scanning, connection and automatic reconnect to access points. wpa_supplicant has wpa_cli and wpa_gui frontends and wpa_supplicant daemon.

Use Flags

ap
Add support for access point mode
eap-sim
Add support for EAP-SIM authentication algorithm
fasteap
Add support for FAST-EAP authentication algorithm
hs2-0
Add support for 802.11u and Passpoint for HotSpot 2.0
p2p
Add support for Wi-Fi Direct mode
ps3
Add support for ps3 hypervisor driven gelic wifi
tdls
Add support for Tunneled Direct Link Setup (802.11z)
uncommon-eap-types
Add support for Wi-Fi Protected Setup
wps
Add support for Wi-Fi Protected Setup
wimax
Add support for Wimax EAP-PEER authentication algorithm
smartcard
Add support for smartcards

News

Drobbins

Pre-built kernels!

Funtoo stage3's are now starting to offer pre-built kernels for ease of install. read more....
12 May 2015 by Drobbins
Drobbins

Better Experiences: Ego and Vim

Info on Funtoo's new personality tool called 'ego', and user-focused updates to vim's defaults.
27 April 2015 by Drobbins
Drobbins

How We're Keeping You At the Center of the Funtoo Universe

Read about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
10 April 2015 by Drobbins
View More News...

WPA Supplicant

Tip

This is a wiki page. To edit it, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.


Configuration

You can configure wpa_supplicant daemon by editing /etc/wpa_supplicant/wpa_supplicant.conf.

/etc/wpa_supplicant/wpa_supplicant.conf - wpa_supplicant daemon config
# provide control interface for wpa_cli and wpa_gui frontends
ctrl_interface=/run/wpa_supplicant

# allow wpa_cli and wpa_gui to update config
update_config=1

network={
	ssid="SSID"
	psk="passphrace"
}

network={
	ssid="SSID2"
	key_mgmt=NONE
}

Daemon

Start daemon with openrc.

# /etc/init.d/wpa_supplicant start

You can also add it to default runlevel.

# rc-update add wpa_supplicant default

The daemon can work independently or you can use wpa_cli and wpa_gui frontends. You can also alter configs with frontends.

wpa_cli CLI Frontend

You can start cli frontend by running wpa_cli.

# wpa_cli

Scan Access Points

> scan
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
> scan_results
bssid / frequency / signal level / flags / ssid
50:32:75:ee:b6:fb       2462    -41     [WPA2-PSK-CCMP][ESS]    AndroidAP
00:3a:98:99:12:f3       2412    -71     [WPA2-EAP-CCMP][ESS]    wEKSOTE
00:3a:98:99:12:f0       2412    -71     [WPA2-EAP-CCMP][ESS]    wULAPPA
00:23:33:a2:7d:14       2462    -85     [WPA2-EAP-CCMP][ESS]    SaitaBYOD
00:3a:98:99:12:f1       2412    -70     [ESS]   saitaOpen

Connect to Access Point

> add_network
0
> set_network 0 ssid "SSID"
> set_network 0 psk "passphrase"
> enable_network 0
<2>CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (reauth) [id=0 id_str=]

Save config

> save_config
OK

wpa_gui GUI Frontend

wpa_gui is simple gui frontend. You can start it by running wpa_gui.

# wpa_gui

Autoconfigure IP with dhcpcd

You can use Package:dhcpcd to autoconfigure ip address.

# emerge -av dhcpcd
# /etc/init.d/dhcpcd start