View Single Post
  #5   (View Single Post)  
Old 14th July 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Quote:
Originally Posted by gosha View Post
I'm misconfiguring as usual...
Likely. And, as usual, you haven't shown your broken configuration, leaving us to guess. As usual.

There is an example of a WPA configuration in the iwn(4) man page. The example shows a configuration from the shell, using the wpa-psk(8) command enclosed in backticks, not single quotes. This is used in order to pipe its output into the ifconfig(8) command.
Code:
           # ifconfig iwn0 nwid my_net wpa wpapsk \
                   `wpa-psk my_net my_passphrase`
Another way of doing the same thing would be to issue the wpa-psk command in advance
and copy the output into your configuration. Example:
Code:
# wpa-psk gosha "gosha's pass phrase"
0x122ddcaae4d3be559349c21e8fcd5e5e08dd8399db135e0ab676f786f6b7b2df
# wpa-psk gosha "gosha's pass phrase" > /etc/hostname.iwn0
# vi /etc/hostname.iwn0
<edit appropriately.  Here's an example>
# cat /etc/hostname.iwn0
dhcp NONE NONE NONE nwid gosha wpa wpapsk 0x122ddcaae4d3be559349c21e8fcd5e5e08dd8399db135e0ab676f786f6b7b2df
#
Reply With Quote