TylerCPU Posted March 17, 2013 Share Posted March 17, 2013 (edited) Hey guys. I can't connect my Alfa AWUS036NHA to a open Wi-Fi router. It's connected to my Wi-Fi Pineapple IV. 2.8.0 Firmware. I run ifconfig wlan1 up,iwconfig wlan1 mode managed, iwconfig wlan1 essid Guest, but I still can't associate to my network. It's an open one. This is what iwconfig looks like root@Pineapple:~# iwconfig lo no wireless extensions. wlan1 IEEE 802.11bgn ESSID:"Guest" Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated Tx-Power=20 dBm RTS thr:off Fragment thr:off Encryption key:off Power Management:off eth1 no wireless extensions. wlan0 IEEE 802.11bgn Mode:Master Tx-Power=18 dBm RTS thr:off Fragment thr:off Power Management:on eth0 no wireless extensions. br-lan no wireless extensions. root@Pineapple:~# Am I missing something simple? I scoured the web for info, but I found nothing. Please help. Thanks. Edited March 18, 2013 by TylerCPU Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted March 18, 2013 Share Posted March 18, 2013 You sure? http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/ -Foxtrot Quote Link to comment Share on other sites More sharing options...
TylerCPU Posted March 18, 2013 Author Share Posted March 18, 2013 You sure? http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/ -Foxtrot Yes, that doesn't work. I tried just about every blog,forum,post/video. I always get stuck at iwconfig wlan1 essid "Guest" which is an open Wi-Fi network. It will not associate. The pineapple says,"You want to connect? Well, you can't hahah!" Quote Link to comment Share on other sites More sharing options...
TylerCPU Posted March 18, 2013 Author Share Posted March 18, 2013 (edited) I tried the networkmanager module last night and still couldn't get that to work. So I looked deeper in the forums and I found one person that said that something was wrong with an older version of network manager. The problem was a tiny setting in /etc/config/wireless. I had to change under radio1 in config wifi-iface the option network lan to option network wan. Then it finally worked. I tried iwconfig wlan1 essid Guest and it worked! Now I'm associated so next I tried udhcpc -i wlan1 and I got an IP address. Yes! Then followed another guys tutorial on iptables for switching the default gateway from the PoE/Lan port to my alfa card. Yay! Now I can route traffic through my alfa card and instead of Internet > laptop > pineapple > Wi-Fi now I got Internet > Hotspot > Wi-Fi alfa > Pineapple > Wi-Fi out. Yay! I wonder why option network lan has to be set to wan? TLDR, replace config in /etc/config/wireless with this. Note: I removed my Mac address so replace with yours instead of xxxxxx. config wifi-device radio0option type mac80211option channel 11option hwmode 11ngoption macaddr XXXXXXoption htmode HT20list ht_capab SHORT-GI-20list ht_capab SHORT-GI-40list ht_capab RX-STBC1list ht_capab DSSS_CCK-40# REMOVE THIS LINE TO ENABLE WIFI:#config wifi-ifaceoption device radio0option network lanoption mode apoption ssid "pineapple "option encryption noneconfig wifi-device radio1option type mac80211option channel 11option hwmode 11ngoption macaddr XXXXXXoption htmode HT20list ht_capab SHORT-GI-20list ht_capab SHORT-GI-40list ht_capab RX-STBC1list ht_capab DSSS_CCK-40# REMOVE THIS LINE TO ENABLE WIFI:#config wifi-ifaceoption device radio1option network wanoption mode apoption ssid "pineapple "option encryption none Edited March 18, 2013 by TylerCPU Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.