|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
hostapd on new install issue?
Hey everyone.
Just fresh installed the amd64 v4.4 on a new home server I'm building. Nothing too crazy, just an upgraded replacement over my current i386 v4.3 box. The main new feature is that I'm adding an atheros based wireless card to let the server act as a wap. Everything installs correctly, but when I go to run hostapd, I get this: # hostapd hostapd: /etc/hostapd.conf: group/world readable/writeable failed to open the main config file: /etc/hostapd.conf # ls /etc/hostapd.conf /etc/hostapd.conf # Not sure why it's having a problem opening - config file is in the right place ( I have even tried placing it elsewhere and specifying it, to no avail). I've tried the default config file as well as my custom one (pretty much just activating WPA and setting up the passphrase). Any ideas on why it's doing this? If you need any additional info let me know. |
|
|||
That solved it, and uncovered a new problem... Maybe I'm out of practice with my hostapd.conf writing, but it's rejecting what (used to) work just fine. Here's my file, with the lines that are causing errors marked with * :
---hostapd.conf--- *interface=ath0 driver=bsd *logger_syslog=-1 *logger_syslog_level=0 *logger_stdout=-1 *logger_stdout_level=0 *debug=3 *dump_file=/tmp/hostapd.dump *ctrl_interface=/usr/sbin/hostapd ctrl_interface_group=wheel ssid=mynetwork macaddr_acl=0 *auth_algs=1 *wpa=1 wpa_passphrase=mynetworkpwphrase wpa_key_magmt=WPA-PSK wpa_pairwise=CCMP TKIP ---end hostapd.conf--- As you can see, all I'm trying to do is setup a simple WPA encryption on my wireless card. I've read through the man pages for hostapd.conf and couldn't see anyway to do it, and haven't been able to find an example though searches. Any insights appreciated. |
|
|||
Thankfully I've learned to always make backups of defaults, so I still have it
I guess what's confusing to me is that the configuration file I created works just fine with hostapd in FreeBSD. Doing a little digging I haven't seen anything that specifies different builds between FreeBSD and OpenBSD, including scouring the hostapd main site (http://hostap.epitest.fi/hostapd). In fact, the example hostapd.conf from their site, while much more detailed, is remarkably similar to mine... Going to try and re-install using the 0.6.9 version directly from epitest, and see if that works. Thanks again for the help. |
|
|||
Ok, some more searching and I've found that there are two different versions of hostapd, one by Jouni Malinen, the other by the OpenBSD folks, and they are, in fact, two very, very different beasts.
Saying that, what is the best way to configure a wap on OpenBSD? I had always read that hostapd was the quickest, easiest way, but so far it continues to thwart me. Thanks. |
|
||||
That is usually the case. There are around 15 years of development separating the OSes.
Quote:
|
|
|||
Well that would make sense. I'll poke at it and see what if I can't get it working.
I'm actually surprised by the lack of easily-findable information regarding setting something so simple up. Don't suppose you happen to know of any sample documents otherwise regarding this? Thanks again for the info. |
|
|||
Thanks. Unfortunately I had already read both of those articles and they don't actually go into how to setup the WPA encryption and passphrase.
|
|
||||
AFAIK, one sets hostap mode, and WPA keys, with ifconfig.
You've hit a very small group of OpenBSD users, here, and, over a weekend, when activity is lower. If you don't want to wait a day or two, you might consider posting to misc@. |
|
|||
I've been poking at this for about a week now trying to get it working, so a little longer isn't too big of a deal =P
Attempting to set it up through ifconfig is resulting in a kernel trap. This is a good card (Atheros AR5212), though I'm wondering if it isn't something with the AMD64 distribution. I may have to try installing an i386 dist and testing it there as well. Thanks again for the help. |
|
||||
Quote:
The man page for ath(4) says: Code:
AR5211 and AR5212 support the AES, TKIP, and Michael cryptographic opera- tions required for WPA but at this time the driver does not support them. Last edited by jggimi; 26th April 2009 at 09:32 PM. |
|
|||
*faceplants*
That's just wonderful. Guess I'll try FreeBSD again, as I had it working on there, but had a completely different issue regarding my internal NIC. Not to mention the FreeBSD AMD64 install isn't the most stable. Thanks very much for the assist jggimi. I feel like a total dumb $$$ for not having found any of that info before (as I said, I've been working on this for about a week now!!!) and you pull it up in no time... But I'd rather feel like this than still be frustrated out of my head as to why it's not working! =P |
|
||||
|
|
|||
Decided to try and test out even just WEP encryption, and had the same kernel trap.
Downloaded the 4.5 snapshot (I do like the installer better), attempted to configure WPA and got no kernel trap, just the entire system froze. My command: ifconfig ath0 192.168.1.1 nwid my_network wpaakms 'psk' wpaciphers 'tkip' wpapsk 'my_wpa_passphrase' mediaopt hostap I had always thought that wireless options in ifconfig were only for connecting, not for host setup, and that another program configured the actual hosting part. I'll probably try FreeBSD again on a spare HDD that I have, and hopefully resolve the problem with my internal NIC. Thanks again for the advice. |
|
||||
Quote:
Quote:
|
|
|||
Quote:
Quote:
At work now, so can't test it yet (stupid me and left it powered off, so can't even ssh in >_>). But I'll keep poking at it. I've been using BSD as my server OS for over 10 years now, and I'd rather keep trying at it and get it working than switch over to another OS! If I figure it out I'll post details. Thanks again! |
|
||||
Quote:
Quote:
|
|
|||
Quote:
I disagree. You've kept hair on my head by providing quick responses with great, simple insight. It's what I needed. I tend to over-complicate things, and that's what got me so confused here about what I was doing. I think I'm on the right track now. We'll hopefully know tonight! |
Tags |
hostapd, openbsd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible SMP Issue? | MetalHead | OpenBSD General | 1 | 25th November 2008 03:52 AM |
Dual ath cards with WPA2 in hostapd? | Malinda | FreeBSD Security | 4 | 8th June 2008 08:34 PM |
Nagios issue | scottro | General software and network | 5 | 31st May 2008 10:18 AM |
RAM issue | nikkon | FreeBSD General | 5 | 7th May 2008 04:26 AM |