PDA

View Full Version : RPI + alfa036nh+terminal wifi association with wpa_supplicant = problem



pedropt
2015-11-23, 15:39
Hi , i have been struggling around this issue for 2 days .
I am bulding in my raspberry a configuration that puts my RPI in a router mode (providing dhcp ips to a switch connected on eth0 port)
and my RPI will have an alfa036nh wifi card (RA3070) that will get connected to some AP , and then will forward requests from and to eth0 <-> Wifi .
However , i am doing everything in terminal mode to not waste much memory on the device witch only have 512M .
So , the goal is creating a preconfigured script that will do the job for me .
I get an error on the authentication using wpa_supplicant .
I have read somewhere that this could be missing modules to my kernel , but i am in RPI , and i dont have the chance to install backports wireless on it .

So , the script is something like this :

http://s11.postimg.org/kqhbpq2mb/wifis.jpg

What i did was creating an empty wpa_supplicant.conf file to not store any data , i am doing this way because i will connect to multiple APS and not only 1 specific .
Driver wext gives me errors , and the only way is using nl80211 in wpa_supplicant connection .
But i get multiple errors :
http://s7.postimg.org/59vi9ccaj/wifi.jpg

Anyone have any idea how to solve this issue ?
i have already installed "ralink-firmware" , but got no success .
I am doing this in kali 1.1.0a to be more lighter on memory .

pedropt
2015-11-26, 10:32
Problem solved .
I could not found what was the cause of this problem , and since i did not need a pentest distribution for this project , i removed kali rpi and installed the minibian image .
after this point was just :
installing wpasupplicant , ralink firmware ,wireless tools and iptables
everything is working fine now .