免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3861 | 回复: 7
打印 上一主题 下一主题

如何在freebsd假设无线AP?且使用WPA2认证? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-08 06:50 |只看该作者 |倒序浏览
AP开启没问题,而且开启WPE没问题,但WPA搞不定,各种资料查了,官方的也看了下,似乎有问题,哪位有这方面的经验没?

论坛徽章:
0
2 [报告]
发表于 2009-06-08 08:12 |只看该作者

论坛徽章:
0
3 [报告]
发表于 2009-06-09 09:50 |只看该作者
别的都没问题,启动hostapd后ap就不work,搞不懂

论坛徽章:
0
4 [报告]
发表于 2009-06-09 10:15 |只看该作者
不是所有网卡都支持HOSTAP功能的!

论坛徽章:
0
5 [报告]
发表于 2009-06-09 13:09 |只看该作者
原帖由 macafee 于 2009-6-9 10:15 发表
不是所有网卡都支持HOSTAP功能的!


注意: 目前还不支持使用 Windows 驱动和 NDIS 驱动包装的网卡做为 AP 使用。只有 FreeBSD 原生的无线驱动能够支持 AP 模式。

device          ath             # Atheros pci/cardbus NIC's

ath0=6783edcf<WEP,TKIP,AES,AES_CCM,FF,TURBOP,IBSS,HOSTAP,AHDEMO,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,TKIPMIC,WPA1,WPA2,BURST,WME,BGSCAN,TXFRAG>

已经相当原生了吧?

网卡是 TP-Link TL-WN650G

[ 本帖最后由 qq830406 于 2009-6-9 13:12 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2009-06-13 19:33 |只看该作者


启动HOSTAP 客户端找不到网络
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0a:eb:a7:4f:5e
        inet 123.129.254.13 netmask 0xffffffff broadcast 192.168.0.2
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: no carrier
        ssid freebsdap channel 1 (2412 Mhz 11g)
        authmode AUTO privacy OFF deftxkey 3 txpower 31.5 scanvalid 60 bgscan
        bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5
        protmode CTS burst dtimperiod 1

不启动HOSTAP状态
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0a:eb:a7:4f:5e
        inet 123.129.254.13 netmask 0xffffffff broadcast 192.168.0.2
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: associated
        ssid freebsdap channel 1 (2412 Mhz 11g) bssid 00:0a:eb:a7:4f:5e
        authmode AUTO privacy OFF deftxkey 3 txpower 31.5 scanvalid 60 bgscan
        bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5
        protmode CTS burst dtimperiod 1

hostap启动以后找不到无线网络,什么原因?



Jun 12 17:14:45 go kernel: ieee80211_load_module: load the wlan_xauth module by hand for now.
Jun 12 17:14:45 go hostapd: ath0: DRIVER Error enabling WPA/802.1X!
Jun 13 19:36:48 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 19:38:26 go kernel: ieee80211_load_module: load the wlan_xauth module by hand for now.
Jun 13 19:38:26 go hostapd: ath0: DRIVER Error enabling WPA/802.1X!
Jun 13 19:38:34 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 19:40:38 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 19:43:15 go kernel: ieee80211_load_module: load the wlan_xauth module by hand for now.
Jun 13 19:43:15 go hostapd: ath0: DRIVER Error enabling WPA/802.1X!
Jun 13 19:48:29 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 19:54:55 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 19:55:20 go kernel: ieee80211_load_module: load the wlan_xauth module by hand for now.
Jun 13 19:55:20 go hostapd: ath0: DRIVER Error enabling WPA/802.1X!
Jun 13 19:55:33 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 19:55:37 go kernel: ieee80211_load_module: load the wlan_xauth module by hand for now.
Jun 13 19:55:37 go hostapd: ath0: DRIVER Error enabling WPA/802.1X!
Jun 13 20:05:17 go kernel: ieee80211_load_module: load the wlan_xauth module by hand for now.
Jun 13 20:05:17 go hostapd: ath0: DRIVER Error enabling WPA/802.1X!
Jun 13 20:06:34 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 20:10:42 go kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12
Jun 13 20:12:44 go kernel: ieee80211_load_module: load the wlan_xauth module by hand for now.
Jun 13 20:12:44 go hostapd: ath0: DRIVER Error enabling WPA/802.1X!

[ 本帖最后由 qq830406 于 2009-6-13 20:21 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2009-06-13 20:08 |只看该作者
3.2.3 WPA-PSK
The host side:

# vi /etc/hostapd.conf

interface=ath0
driver=bsd
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
debug=4
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=freebsdap
wpa=1
wpa_passphrase=freebsdmall
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
And run:

# /usr/sbin/hostapd /etc/hostapd.conf
# ifconfig ath0 mediaopt hostap

论坛徽章:
0
8 [报告]
发表于 2009-06-13 20:58 |只看该作者
kldload wlan_xauth.ko

嗯,嗯,正是如此
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP