DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th November 2009
kapu's Avatar
kapu kapu is offline
Port Guard
 
Join Date: Feb 2009
Location: US- NY
Posts: 11
Default lenovo x60s need help with wireless

I have been trying for a few sessions to connect to a WPA2 access point using a 64 character hex key. Can someone post a working hostname.if example for connecting to said ap using dhcp? I give up for now. its been a lot of reading and a lot of errors.

I'm using 4.6 GENERIC
the nic is ath0
I can connect to wep and open access points.
Just never successfully connected to a WPA2 or WPA ap.

Last edited by kapu; 10th November 2009 at 11:50 AM.
Reply With Quote
  #2   (View Single Post)  
Old 10th November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Have you tried using the example in the ath(4) man page?
Quote:
# ifconfig ath0 nwid my_net wpa wpapsk \
`wpa-psk my_net my_passphrase`
Note the back-ticks (`), these are not single quotes or apostrophes (').
Reply With Quote
  #3   (View Single Post)  
Old 10th November 2009
kapu's Avatar
kapu kapu is offline
Port Guard
 
Join Date: Feb 2009
Location: US- NY
Posts: 11
Default

Quote:
Originally Posted by jggimi View Post
Have you tried using the example in the ath(4) man page?Note the back-ticks (`), these are not single quotes or apostrophes (').
Yes, i did try ath(4) man
here I am using a fake key but in the same format I am using.
the ap is named 2xThink

sudo ifconfig ath0 nwid 2xThink wpa wpapsk \
`wpa-psk 2xThink 0xf6fbd924161fe9aaa0fe4d5b3a9ab085ddc34fd6f674c876 7d381a6afe0e756`

wpa-psk: passphrase must be between 8 and 63 characters
ifconfig: wpapsk: bad pre-shared key length


The damned key is 63 characters




f6fb
d924
161f
e9aa
a0fe
4d5b
3a9a
b085
ddc3
4fd6
f674
c876
7d38
1a6a
fe0e
756


what is my pea brain missing here?
Reply With Quote
  #4   (View Single Post)  
Old 10th November 2009
There0 There0 is offline
./dev/null
 
Join Date: Jul 2008
Posts: 170
Default

Hello there, i also had the same problem with character lengths on my WPA2 key, i regenerated a new key (didn't seem to like special characters much) removed the 0x from the beginning of my password and mine started working.

Here is a copy paste of my working hostname.iwn0 file;

dhcp nwid NETWORKNAME wpa wpapsk $(wpa-psk NETWORKNAME WIFIPASSWORD)
__________________
The more you learn, the more you realize how little you know ....

Last edited by There0; 10th November 2009 at 02:28 PM.
Reply With Quote
  #5   (View Single Post)  
Old 10th November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Ah, now I see the problem. You are using wpa-psk when you already have a hexadecimal key. The program creates the key from a plain text passphrase. From wpa-psk(8), emphasis mine:
Quote:
wpa-psk generates a 256-bit pre-shared key from a service set identifier
(SSID) and a passphrase. The passphrase must be a sequence of between 8
and 63 ASCII-encoded characters. The length of the SSID must be between
1 and 32 octets.
Here's an example of using wpa-psk:
Code:
$ wpa-psk jggimi 'this is a sample passphrase in ASCII text'
0x97aaf0bb5682e2c1ae1c5bba7d59634e230b7f9c7963c3ebd05169705e1f27e2
$
The -output- of wpa-psk is used as the hexidecimal -input- to ifconfig.
Reply With Quote
  #6   (View Single Post)  
Old 10th November 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

And now, it is time to -change- your key, since you've published it online.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Poul-Henning Kamp (FreeBSD developer) sues Lenovo ;) vermaden FreeBSD General 9 17th August 2009 07:23 PM
wireless not working. bsdnewbie999 OpenBSD General 17 19th July 2009 03:06 AM
Wireless Card on T61 disappearedng FreeBSD General 1 13th July 2008 12:54 AM
Gui for Wireless LAN? PatrickBaer FreeBSD General 2 13th June 2008 12:25 AM
Lenovo Thinkpad T60 - FreeBSD Configuration Guidelines and Advices worldofopensource General Hardware 5 19th May 2008 12:27 PM


All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick