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
Old 4th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

This one have exactly same wpa_supplicant configuration that OP is using.

www.freebsdchina.org/forum/topic_26233.html

Because I'm not from China, I dont know is such wpa_supplicant configuration work at all on FreeBSD.
Maybe debug output from wpa_supplicant running on OpenBSD can shed more light on this subject.
Reply With Quote
Old 5th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

All fail.I am mad.
Reply With Quote
Old 5th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Post debug output of wpa_supplicant.
Is this first time you are using *BSD?
Reply With Quote
Old 5th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

Now I must switch between XP and openbsd.It's not convenient.
As I remember,its ouput is something like" IOCTL SIOC{ADD|DEL}MULTI fail : the protocol family is not supported."

I use openBSD for some years.But I never access the internet in openbsd box actually!

Last edited by johnzlly; 5th November 2008 at 12:25 PM.
Reply With Quote
Old 5th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Post full wpa_supplicant debug output,
Look in wpa_supplicant(1)
add -dd

Last edited by richardpl; 5th November 2008 at 12:40 PM.
Reply With Quote
Old 5th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

Quote:
Originally Posted by richardpl View Post
Post full wpa_supplicant debug output,
Look in wpa_supplicant(1)
add -dd
The full debug output in the attachment.
Attached Files
File Type: txt wsk.txt (3.0 KB, 55 views)
Reply With Quote
Old 5th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

How is wpa_supplicant installed?
Reply With Quote
Old 5th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

pkg_add.Need configure? And which particular options?

Last edited by johnzlly; 5th November 2008 at 02:47 PM.
Reply With Quote
Old 5th November 2008
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by johnzlly View Post
pkg_add.Need configure? And which particular options?
On OpenBSD wpa_supplicant file is not really a separate text file like on FreeBSD. You have to set up the interface which will use wpa from the command line or by editing /etc/hostname.interface file. You can also write a small script which can do that for you automatically after the boot process. The last method is convinient if you are using WPA on WiFi interfaces on multiple networks. Unlike FreeBSD paskey has to be in hexadecimal code

Read man pages for ifconfig to learn more. In particular since wpapsk must be in hexadecimal form read man pages for wpa-psk. That will explain you how to change regular word password into hexsadecimal code.

Cheers,
OKO

Last edited by Oko; 5th November 2008 at 03:19 PM.
Reply With Quote
Old 6th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

In 4.3 release,the ifconfig utility have no wpa option.I'll upgrade to 4.4 and try again.
Thanks.
Reply With Quote
Old 6th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

It's a pity!
Code:
#ifconfig em0 wpa
ifconfig: SIOCG80211WPAPARMS:Inappropriate ioctl for device
Reply With Quote
Old 6th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Look, wpa_supplicant should be one from OpenBSD 4.4 so that if somehow ABI&API breakage happen it could be ignored because you use fresh package builded for particular OpenBSD version.

Could some OpenBSD folks over there confirm that wpa_supplicant does not have mentioned ioctl error when using configuration file OP already mentioned?

Alternatively you could build wpa_supplicant from ports.

Also to make sure that such setup is indeed posibble you could test it within FreeBSD.
Reply With Quote
Old 6th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

Quote:
Originally Posted by richardpl View Post
Look, wpa_supplicant should be one from OpenBSD 4.4 so that if somehow ABI&API breakage happen it could be ignored because you use fresh package builded for particular OpenBSD version.

Could some OpenBSD folks over there confirm that wpa_supplicant does not have mentioned ioctl error when using configuration file OP already mentioned?
What do you mean? I can't understand.
Quote:
Alternatively you could build wpa_supplicant from ports.
Isn't the package built from the ports?
Quote:
Also to make sure that such setup is indeed posibble you could test it within FreeBSD.
I can't confirm this method posibbly within FreeBSD.I haven't the environment.
PS:Today I install the 4.4 freshly,and install the wpa_supplicant in the 4.4's packages.
Reply With Quote
Old 6th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Quote:
Originally Posted by johnzlly View Post
Today I install the 4.4 freshly,and install the wpa_supplicant in the 4.4's packages.
If there is still ioctl error displayed then something is wrong on OpenBSD side.
Did older OpenBSD have similar problems?
Reply With Quote
Old 6th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

Older OpenBSD is like below:
Code:
ioctl[SIOC{ADD/DEL}MULTI]:Address family not supported by protocol family
Reply With Quote
Old 6th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Try to run tcpdump and to see if your machine actually send data for authentication.
Reply With Quote
Old 7th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

I'm not familiar with the tcpdump utility. Do read the manual.
Reply With Quote
Old 7th November 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Just run tcpdump, and start wpa_supplicant in another terminal. After that you can post tcpdump output.
I just need to be sure that wpa_supplicant is actually working at all.
You could test same thing on FreeBSD (at least there exist positve information regarding wpa_supplicant + ruijie on that OS)
Reply With Quote
Old 8th November 2008
johnzlly johnzlly is offline
Port Guard
 
Join Date: Jun 2008
Posts: 23
Default

Runing tcpdump,there are a lots of arp&udp information.But no tcp.
I can't deal with this problem.Or the openbsd just don't support it.
I want to in the black box of openbsd.And back to XP.When I am graduating,I'll be back.
Reply With Quote
Reply

Tags
ruijie

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
A PDP-11 program card TerryP Programming 0 10th April 2009 05:54 AM
linux compat and linux-only drivers fbsduser FreeBSD General 9 22nd January 2009 05:42 PM
FreeBSD 7.1 kernel incompatible with a linux program map7 FreeBSD Installation and Upgrading 7 5th November 2008 11:17 PM
How did you learn to program? TerryP Off-Topic 25 6th September 2008 04:00 PM
another program like Putty mfaridi FreeBSD Security 4 7th July 2008 02:41 PM


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