Re: Does wpa-psk still exist?

2015-03-04 Thread Peter N. M. Hansteen
On Tue, Mar 03, 2015 at 06:21:52PM -0500, Bob Eby wrote:
 
 I'm trying to connect to a wireless network using OpenBSD 5.6.  I see a
 couple FAQ questions talking about a wpa-psk command to convert plaintext
 to encrypted string, but still getting secure wireless working is about as
 clear as mud.

wpa-psk was retired in 4.9 or thereabouts. For WPA with a simple pre-shared key 
these days you would put something like this in your /etc/hostname.if

up nwid unwiredbsd  wpakey mylongpassphrase 
dhcp
rtsol

(where .if would be, say .iwm0, .iwn0 etc)

If there are FAQ-style (or ugh, HOWTO-style) documents out there that still
mention manual conversion of your passphrase via wpa-psk as a viable option, 
please to everybody a favor and contact their authors to either update or 
remove.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: Does wpa-psk still exist?

2015-03-04 Thread Maurice McCarthy
On Wed, Mar 04, 2015 at 07:39:05AM -0500 or thereabouts, Bob Eby wrote:
 I had tried this link:
 
 http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/hostname.if.5?query=hostname.ifsec=5
 
 Which seemed to say this would work:
 
 nwid mynwid
 wpakey mywpakey
 dhcp
 
 which doesn't work, what is up, unwiredbsd, rtsol etc?
 
 Thanks,
 Bob
 

up is a command to start your wireless interface
unwiredbsd is the name of the wireless network to which you wish to connect
rtsol may be characterised as dhcp for ipv6



Re: Does wpa-psk still exist?

2015-03-04 Thread Bob Eby
I had tried this link:

http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/hostname.if.5?query=hostname.ifsec=5

Which seemed to say this would work:

nwid mynwid
wpakey mywpakey
dhcp

which doesn't work, what is up, unwiredbsd, rtsol etc?

Thanks,
Bob



Re: Does wpa-psk still exist?

2015-03-04 Thread Nick Holland
On 03/04/15 07:38, Bob Eby wrote:
 I had tried this link:
 
 http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/hostname.if.5?query=hostname.ifsec=5
 
 Which seemed to say this would work:
 
 nwid mynwid
 wpakey mywpakey
 dhcp
 
 which doesn't work, what is up, unwiredbsd, rtsol etc?

You did it wrong.
Most likely, that's not your nwid or wpakey.  And you probably don't
have a .if interface.

Based on the information you provided, that's all I can or will say.

Nick.



Re: Does wpa-psk still exist?

2015-03-04 Thread Maurice McCarthy
On Wed, Mar 04, 2015 at 08:05:02AM -0500 or thereabouts, Nick Holland wrote:
 On 03/04/15 07:38, Bob Eby wrote:
  I had tried this link:
  
  http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/hostname.if.5?query=hostname.ifsec=5
  
  Which seemed to say this would work:
  
  nwid mynwid
  wpakey mywpakey
  dhcp
  
  which doesn't work, what is up, unwiredbsd, rtsol etc?
 
 You did it wrong.
 Most likely, that's not your nwid or wpakey.  And you probably don't
 have a .if interface.
 
 Based on the information you provided, that's all I can or will say.
 
 Nick.
 

Do you have the firmware for your wireless?
http://firmware.openbsd.org



Does wpa-psk still exist?

2015-03-03 Thread Bob Eby
Hi,

I'm trying to connect to a wireless network using OpenBSD 5.6.  I see a
couple FAQ questions talking about a wpa-psk command to convert plaintext
to encrypted string, but still getting secure wireless working is about as
clear as mud.

Thanks,
Bob



Re: Does wpa-psk still exist?

2015-03-03 Thread Maurice McCarthy

On 2015-03-03 23:21, Bob Eby wrote:

Hi,

I'm trying to connect to a wireless network using OpenBSD 5.6.  I see 
a
couple FAQ questions talking about a wpa-psk command to convert 
plaintext
to encrypted string, but still getting secure wireless working is 
about as

clear as mud.

Thanks,
Bob



Create a file called /etc/hostname.wpi0 (if wpi0 is your wireless 
driver) and put this in it


nwid mynwid
wpakey wpa-psk
dhcp

Save it and run the command

$ sudo sh /etc/netstart

Then read man hostname.if

Purists will say read the man page first but you will remember far 
better by experiencing first.


Good Luck
Mo



Re: Does wpa-psk still exist?

2015-03-03 Thread Stefan Sperling
On Tue, Mar 03, 2015 at 06:21:52PM -0500, Bob Eby wrote:
 Hi,
 
 I'm trying to connect to a wireless network using OpenBSD 5.6.  I see a
 couple FAQ questions talking about a wpa-psk command to convert plaintext
 to encrypted string, but still getting secure wireless working is about as
 clear as mud.
 
 Thanks,
 Bob

wpa-psk has long been replaced with the ifconfig(8) wpakey option.

 wpakey passphrase | hexkey
 Set the WPA key and enable WPA.  The key can be given using
 either a passphrase or a full length hex key, starting with 0x.
 If a passphrase is used the nwid option must be set prior to
 specifying the wpakey option, since ifconfig will hash the nwid
 along with the passphrase to create the key.



Re: Does wpa-psk still exist?

2015-03-03 Thread Nick Holland

On 03/03/15 18:21, Bob Eby wrote:

Hi,

I'm trying to connect to a wireless network using OpenBSD 5.6.  I see a
couple FAQ questions talking about a wpa-psk command to convert plaintext
to encrypted string, but still getting secure wireless working is about as
clear as mud.


Yes, if you search randomly around the Internet, you can find all kinds 
of obsolete information.


If you use the search box on the OpenBSD FAQ page, the only thing that 
comes up for wpa-psk is it was removed in 4.9.


try http://www.openbsd.org/faq/faq6.html#Wireless

It really isn't that hard.  You have a few basic parameters, you have a 
place to put them.  Then it works.


Nick.