OpenWRT WPA2-Enterprise 和 RADIUS - 配置未应用

OpenWRT WPA2-Enterprise 和 RADIUS - 配置未应用

我目前在华硕 WL-500G Premium v​​1 上使用 OpenWrt Backfire 10.03。场景如下:AP 应通过有线以太网连接到 RADIUS 服务器并执行身份验证请求。

当我尝试应用新的配置文件时遇到了问题。/etc/config/wireless 的输出(显然不是生产模式)

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'channel' '5'
        option 'macaddr' '00:1f:c6:51:34:dc'
        option 'hwmode' '11g'
        option 'disabled' '0'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'network' 'lan'
        option 'mode' 'ap'
        option 'ssid' 'OpenWrt'
        option 'encryption' 'wpa2'
        #RADIUS Server
        option 'auth_server' '192.168.1.249'
        option 'auth_secret' 'test123'
        option 'acct_server' '192.168.1.249'
        option 'acct_secret' 'test123'

执行 uci show wireless 可按预期设置配置参数

wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.channel=5
wireless.radio0.macaddr=00:1f:c6:51:34:dc
wireless.radio0.hwmode=11g
wireless.radio0.disabled=0
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].network=lan
wireless.@wifi-iface[0].mode=ap
wireless.@wifi-iface[0].ssid=OpenWrt
wireless.@wifi-iface[0].encryption=wpa2
wireless.@wifi-iface[0].auth_server=192.168.1.249
wireless.@wifi-iface[0].auth_secret=test123
wireless.@wifi-iface[0].acct_server=192.168.1.249
wireless.@wifi-iface[0].acct_secret=test123

但当我尝试恢复 wifi 时,出现了错误

root@OpenWrt:/etc/config# wifi down && sleep 5 && wifi
Configuration file: /var/run/hostapd-phy0.conf
Line 46: unknown configuration item 'auth_server_addr'
Line 47: unknown configuration item 'auth_server_port'
Line 48: unknown configuration item 'auth_server_shared_secret'
Line 51: unknown configuration item 'radius_acct_interim_interval'
Invalid IEEE 802.1X configuration (no EAP authenticator configured).
5 errors found in configuration file '/var/run/hostapd-phy0.conf'
Failed to start hostapd for phy0

为什么路由器不使用 /etc/config/wireless 文件?我尝试重启它,但没有成功

答案1

我已经解决了。问题是安装了 wpad-mini 软件包,但它不支持 WPA2-Enterprise 安全性。必须执行
opkg update opkg remove wpad-mini opkg install wpad

现在一切都按预期进行!

相关内容