View Single Post
  #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