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
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