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 11th June 2008
warriors warriors is offline
New User
 
Join Date: May 2008
Posts: 6
Default How To Setup WPA?

I'm able to connect with a wired connection with dhcp enabled but not wireless with wpa-psk. I have read here in this thread that it supports wpa but I'm not sure on how to set it up. I assume that I need 3 files(makefile, wpa-psk.8, and wpa-psk.c) but don't know where to get it.

I have a GN-WPKG RT2560F ral(4) chipset and can be used as an access point. If you have any suggestions or docs/guides on setting up wpa, please let me know. I'm running obsd 4.3...

Thanks
__________________
Compaq Presario 7478
Trident Graphics Integrated in the ViaChipset
Integrated 64-bit hardware-accelerated 3D graphics
GN-WPKG RT2560F ral(4) Chipset
533 MHz AMD K-6 Processor
56K ITU V.90 modem 3
64MB of RAM
145 watts PSU
Reply With Quote
  #2   (View Single Post)  
Old 11th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

You are, if I recall correctly, running 4.3. WPA is a feature committed in -current. It is not in 4.3, it will be in 4.4.

For more info on the flavors of OpenBSD, see FAQ 5.1.
Reply With Quote
  #3   (View Single Post)  
Old 11th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

jggimi is correct, WPA is a feature of 4.3-CURRENT, not 4.3-RELEASE..

You'll have to wait until 4.4, or use -CURRENT, the decision is up to you..
Reply With Quote
  #4   (View Single Post)  
Old 11th June 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

The announcement on undeadly was made back mid-April:

http://undeadly.org/cgi?action=artic...20080416195151
Reply With Quote
  #5   (View Single Post)  
Old 11th June 2008
warriors warriors is offline
New User
 
Join Date: May 2008
Posts: 6
Default

Oh alright then...I'll wait for 4.4 and in the meantime I'll just stick with a wired connection.
__________________
Compaq Presario 7478
Trident Graphics Integrated in the ViaChipset
Integrated 64-bit hardware-accelerated 3D graphics
GN-WPKG RT2560F ral(4) Chipset
533 MHz AMD K-6 Processor
56K ITU V.90 modem 3
64MB of RAM
145 watts PSU
Reply With Quote
  #6   (View Single Post)  
Old 11th June 2008
mish's Avatar
mish mish is offline
Port Guard
 
Join Date: May 2008
Posts: 25
Default

If you decide to try 4.3-current before 4.4 comes out, setting up WPA is just a two-step affair:

1) Create your WPA pre-shared key via wpa-psk(8) eg: wpa-psk <Your SSID> <Your passphrase> This will provide you with a 256-bit hex key.

2) Set up your AP for WPA (unless WPA1 is otherwise explicitly set, the default is to set up WPA2) via /etc/hostname.ral0:
Code:
up media autoselect mediaopt hostap mode 11g chan 1 nwid <Your SSID> wpa wpapsk 0x<your 256-bit Hex key>
inet 172.16.0.1 255.255.255.0
Run sh /etc/netstart or just reboot, and you're done. You now have an OpenBSD 4.3-current AP running WPA2.

The wireless section of ifconfig(8)'s man page gives you everything you need. Note, though, that ifconfig's man page for 4.3-release hasn't been updated with the necessary WPA switches. You need 4.3-current, as already said. If you've OpenBSD clients that you want to use your AP with, those should be upgraded to 4.3-current as well.

Have fun.
Reply With Quote
  #7   (View Single Post)  
Old 11th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by mish View Post
....ifconfig's man page for 4.3-release hasn't been updated with the necessary WPA switches.
True, on the installed OS. However, the OpenBSD Project website has a link to the OpenBSD Manual Pages, which includes all man pages through history, for all architectures. -current is the default, though you can select any prior release. Here is the link to the -current man page for ifconfig(8): http://www.openbsd.org/cgi-bin/man.c...86&format=html

The history of the ifconfig man page starts with OpenBSD 2.2, which was from September, 1994.
Reply With Quote
  #8   (View Single Post)  
Old 12th June 2008
tuck's Avatar
tuck tuck is offline
Shell Scout
 
Join Date: May 2008
Posts: 99
Default

If you don't want to wait give a current snapshot a try. I never had problems (beside my crap hardware but that's another story) even if it's current.
Reply With Quote
  #9   (View Single Post)  
Old 15th June 2008
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

man pages on WPA are updated in 4.3 current.
You can use the following procedure from the command line to tell your interface (call it
ral0 for the purpose of the example) to connect using WPA.

Step 1 Generate wpapsk as

Code:
$ wpa-psk <Your SSID> <Your passphrase>
Step 2

Code:
# ifconfig ral0 wpa wpapsk 0xa5499c66926f5b9679c... (where this hexadecimal number is output of the step one)
Code:
dhclient ral0 (if your access point issues leases as DHCP server)
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
Need help with NAT setup Quaxo OpenBSD Installation and Upgrading 6 27th January 2009 08:03 PM
DJ Setup tad1214 FreeBSD General 8 21st July 2008 01:50 PM
problem on setup!! josue Other OS 6 24th June 2008 05:29 AM
postfix setup Demodog General software and network 12 11th June 2008 07:43 PM
IP Printer Setup kjemison FreeBSD General 4 2nd June 2008 02:35 PM


All times are GMT. The time now is 10:13 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