PDA

View Full Version : Dual ath cards with WPA2 in hostapd?


Malinda
06-04-2008, 08:55 PM
Hi!

I testing to configure FreeBSD with two ath WiFi cards and everything working in rc.conf. Both SSID is working om different channels that I want, and I can connect.

But I can only get one card to work with WPA2. I have Google a lot and can't fine how to get dual card in hostapd.conf.

I have a standard hostapd.conf file today:

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=/var/run/hostapd
ctrl_interface_group=wheel
#### IEEE 802.11 related config ####
ssid=MY_SSID_1
macaddr_acl=0
auth_algs=1
#### IEEE 802.1X related config ####
ieee8021x=0
#### WPA/IEEE 802.11i config #####
wpa=1
wpa_passphrase=MY_KEY
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP


Of cause this will only work on ath0, not on ath1. But how can I put in my other WiFi card, ath1 in the hostapd.conf so I can have both card working.

And.. later I will test with a Radius server. Some strange there with dual WPA2 support in hostapd.conf?

/Malinda

davidgurvich
06-04-2008, 09:09 PM
I think you need to use bridge. Try configuring one interface at a time. Then when that works as you wish, configure bridge.

Malinda
06-04-2008, 09:25 PM
Hi!

I use NAT and pf on the two WiFi cards to a Ethernet network card, and that work perfect!

The problem is that I only know how to set WPA2 on one WiFi card. The second is open.

I can bridge all cards, but I will be the same problem, I don't know how to configure the hostapd.conf to dual WPA2.

/Malinda

forneus
06-06-2008, 11:54 PM
#### WPA/IEEE 802.11i config #####
wpa=1
wpa_passphrase=MY_KEY
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP

from /usr/share/examples/hostapd/hostapd.conf:

# This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0)
# and/or WPA2 (full IEEE 802.11i/RSN):
# bit0 = WPA
# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
#wpa=1

You should use wpa=2 for WPA2.

Malinda
06-08-2008, 09:34 PM
Oh! I did change that! The first post I write 1, that I change. Hmm..
but it should be 2 that you sad.