OPNSense 和 Unifi RADIUS 问题

OPNSense 和 Unifi RADIUS 问题

我有一个 OPNSense 防火墙和一个 Unifi 控制器,我正在尝试启用 Radius 身份验证和 Radius Vlan 分配

在 unifi 方面,我做了以下工作:创建了一个 SSID;创建了一个 radius 配置文件;创建了一个网络

在 OPNSense 端,我创建了一个 vlan,在该 vlan 上启用了 DHCP,并为其指定了一个 /24 范围,安装并启用了 FreeRadius

我收到以下错误

 2021-02-27T21:03:25        Error: /usr/local/etc/raddb/clients.conf[2]: Error parsing 
client section   
 2021-02-27T21:03:25        Error: /usr/local/etc/raddb/clients.conf[2]: Failed parsing 
 configuration item "ipaddr" - Failed resolving "" to IPv4 address: Name does not resolve    
 2021-02-27T21:01:38        Error: /usr/local/etc/raddb/clients.conf[2]: Error parsing 
 client section  
 2021-02-27T21:01:38        Error: /usr/local/etc/raddb/clients.conf[2]: Failed parsing 
 configuration item "ipaddr" - Failed resolving "" to IPv4 address: Name does not resolve    
 2021-02-27T21:01:09        Error: /usr/local/etc/raddb/clients.conf[2]: Error parsing 
 client section  
 2021-02-27T21:01:09        Error: /usr/local/etc/raddb/clients.conf[2]: Failed parsing 
 configuration item "ipaddr" - Failed resolving "" to IPv4 address: Name does not resolve    
 2021-02-27T21:00:50        Error: /usr/local/etc/raddb/clients.conf[2]: Error parsing 
 client section  
 2021-02-27T21:00:50        Error: /usr/local/etc/raddb/clients.conf[2]: Failed parsing 
 configuration item "ipaddr" - Failed resolving "" to IPv4 address: Name does not resolve    
 2021-02-27T20:58:23        Error: /usr/local/etc/raddb/clients.conf[2]: Error parsing 
 client section  
 2021-02-27T20:58:23        Error: /usr/local/etc/raddb/clients.conf[2]: Failed parsing 
 configuration item "ipaddr" - Failed resolving "" to IPv4 address: Name does not resolve    
 2021-02-27T20:58:12        Error: /usr/local/etc/raddb/clients.conf[2]: Error parsing 
 client section

我相信问题在于我如何配置 Unifi 云密钥以登录到 radius 服务器,因为它没有显示错误密码错误或好密码错误,但我不确定如何进一步解决,谢谢!

答案1

日志显示您的 clients.conf 中某些内容配置不正确。

在这种情况下,客户端是您的 AP,因此 AccessPoint-IP 必须在该范围内。

OpnSense 客户端配置

相关内容