Wireless Network Issues with Kali 2.0 64bit
Wireless card Alfa AWUS036H/rtl8187
For WPA type network
Hello,
I had been running Kali (off and on) for a while before the upgrade to Kali 2.0, and while getting the networking to work properly before was an adventure in and of itself, with Kali 2.0, I'm back to networking issues. Specifically, while I am able to connect to the internet wired flawlessly, the wireless connection is spotty. It tends to drop off for no apparent reason citing "No probe response from AP [addr] after 500ms, disconnecting." via Previously I connected to the intenet via command line but this method doesn't work by default. So I am going to restore this method on Kali 2.0, as I had no issues with it before and am currently unable (or uninitiated) to solve them with the current setup on Kali 2.0. Before we get started, note that some of these commands require to be ran as root, so if you are logged in as a standard, either login to root or , also please verify that you have each of the following tools installed by running
Code:
apt-get update && apt-get install wpasupplicant iw ip ping
First I will start by
Code:
sudo apt-get --purge autoremove network-manager
This will remove the current network manager and (hopefully) remove any potential interferences. I would also recommend a reboot at this point.
Next run:
This will show wireless device(s). Note your wireless devices interface name
Code:
ip link set wlan0 up
This will put your wireless device in the “UP” state
Should show “Not connected” at this point
Will show available networks. Note ssid of desired network
Code:
wpa_passphrase [Enter Your SSID Here] >> /etc/wpa_supplicant.conf
[Enter passphrase]
This will create a file with your network information
Code:
cat /etc/wpa_supplicant.conf
Verify that the file has been created and network name and passphrase are correct
Code:
wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
-B means run wpa_supplicant in the background
-D specifies wireless driver. wext is the generic driver
-c specifies the path for the configuration file
You may get ioctl[SIOCSIWENCODEEXT]: Invalid argument I'm not sure what this means but it doesn't seem to effect anything.
Should now show that you are connected.
Assigns an IP address
Code:
ping -c 3 www.google.com
Should show that you are now connected to the internet.
While this will connect you to the internet, and shouldn't drop your connection anymore, It does make the built in gui in Settings for your wifi not work anymore saying “The system network services are not compatible with this version.” I don't know if there is a fix for this but you can install wicd-gtk if you prefer a graphical frontend for your wireless management.
Anyway, I hope this fixes any network connectivity issues you may be experiencing in Kali 2.0. I have been running with this configuration for 10+ hours now with no connectivity issues; much longer than the usually 2-45 minutes my connection lasted previously.
Most of this guide was taken/adapted from guides at www.blackmoreops.com.
Let me know if you have any issues.