WPA di GNU/Linux Debian

Assalamu’alaikum Warahmatullahi Wabarakatuh

Nyoba WPA di Sid, susah-susah gampang. Kurang lebih gini lah:

1. Cari dulu
:~# apt-cache search wpa
wpasupplicant – Client support for WPA and WPA2 (IEEE 802.11i)

2. Install
:~# apt-get install wpasupplicant

3. Copy contoh file konfigurasi
:~# cp /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.template /etc/wpa_supplicant.conf

4. Edit file konfigurasi
:~# vim /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
network={
ssid=”SSID-nya”
psk=”KEY-nya”
key_mgmt=WPA-PSK
}

5. Coba ah …
~# wpa_supplicant -ieth1 -Dipw -B -c/etc/wpa_supplicant.conf
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.

Walah, gagal. Gugling. Wah, ipw gak support. Ganti sama wext.

6. Coba ganti driver
:~# wpa_supplicant -ieth1 -Dwext -B -c/etc/wpa_supplicant.conf
Berhasil. Tapi belum dapet IP nih dari dhcp server. Tanya ke yang lain, dikasih tau sama pak Budi.

7. Jalanin dhcp client.
:~# dhclient
Berhasil dapet IP & connect ke Internet.

8. Baca dulu.
:~# less /usr/share/doc/wpasupplicant/README.Debian

9. Copy file daemon-nya.
:~# cp /usr/share/doc/wpasupplicant/examples/wpa_supplicant.init-daemon /etc/init.d/wparoamd

10. Buat jadi executable.
:~# chmod +x /etc/init.d/wparoamd

11. Edit sesuai kebutuhan.
:~# vim /etc/init.d/wparoamd
CONFIG=”/etc/wpa_supplicant.conf”
INTERFACE=”eth1″
DRIVER=”wext”

12. :~# update-rc.d wparoamd start 15 2 3 4 5 . stop 90 0 1 6 .
:~# invoke-rc.d wparoamd start

13. Expand dulu, terus baca.
:~# gunzip /usr/share/doc/wpasupplicant/README.modes.gz
:~# less /usr/share/doc/wpasupplicant/README.modes

14. Set interfaces seperlunya.
:~# vim /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf

15. :~# /etc/init.d/networking stop
:~# /etc/init.d/networking start

Beres.

Wassalamu’alaikum Warahmatullahi Wabarakatuh

4 thoughts on “WPA di GNU/Linux Debian

  1. kalo di windows, tinggal klak connect, masukkan WPA key, klik connect.😀

    blog ini kan debian based, justru susah & bingung kalo install lewat klak klik.😀

  2. Rul, iya masak tidak ada yang tinggal klak-klik. Ini mah masih versi menyeramkan. Hiiii…..

    @za: coba pake kwlan atau wpagui. tinggal klak klik.:mrgreen:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s