Author Topic: can not connect to wpa/wpa2 after i purged network-manager [SOLVED]  (Read 7689 times)

nanayaw

  • Newbie
  • *
  • Posts: 2
    • View Profile
can anyone help me after i took of network-manager for obvious reasons don't ask why  . I have wpa_supplicant that came with backbox and I 'm trying to use [user:blac:# iw dev wlan0 connect -w "Essid-foo"]
and I get this error wlan0 (phy #0): failed to connect, status: 1: Unspecified failure. Running iw event -t and i think its not able to authenticate me at the router end.. Please is there a way i can connect to my access point

Thanks in advance
« Last Edit: September 09, 2013, 08:40:54 AM by raffaele »



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #1 on: August 30, 2013, 05:12:55 PM
Hi nanayaw, I didn't use wpa_supplicant about few years but reading the help you should running:
Code: [Select]
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
Where wpa_supplicant.conf should be written in this way for your cipher:
Code: [Select]
1. WPA-Personal (PSK) as home network and WPA-Enterprise with EAP-TLS as work network.


          # allow frontend (e.g., wpa_cli) to be used by all users in 'wheel' group
          ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
          #
          # home network; allow all valid ciphers
          network={
               ssid="home"
               scan_ssid=1
               key_mgmt=WPA-PSK
               psk="very secret passphrase"
          }
          #
          # work network; use EAP-TLS with WPA; allow only CCMP and TKIP ciphers
          network={
               ssid="work"
               scan_ssid=1
               key_mgmt=WPA-EAP
               pairwise=CCMP TKIP
               group=CCMP TKIP
               eap=TLS
               identity="user@example.com"
               ca_cert="/etc/cert/ca.pem"
               client_cert="/etc/cert/user.pem"
               private_key="/etc/cert/user.prv"
               private_key_passwd="password"
          }
btw reading the man you should be able to connect to your network. I hope that can help you, I have net-manager and I don't remember exactly the step, also you can wait someone else! =)
See you!!
« Last Edit: August 30, 2013, 11:31:40 PM by weVeg »

una voce libera è sempre liberatrice
under_r00t


nanayaw

  • Newbie
  • *
  • Posts: 2
    • View Profile
Reply #2 on: September 02, 2013, 07:52:00 AM
This is great.. you are a Saint.. I have seen other code but this will work for me.. And guys I 'm still open..



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #3 on: September 08, 2013, 04:09:38 PM
well! tag "solved" and you have done!!
cheers!

una voce libera è sempre liberatrice
under_r00t