我试图在linux机器上设置hostapd作为802.1x的网络身份验证器。
我一直在遵循这指南,因为我使用Ubuntu而不是RHEL,并且在桥中使用veth接口而不是物理接口。
我按照他们所描述的按照内容的指示创建了C1文件--我的桥接口与示例中的br0类似,我将own_ip_addr更改为IP on接口br0,并更改nas_identifier、auth_server_addr、auth_server_shared_secret、acct_server_addr和acct_server_shared_secret以匹配RADIUS服务器上的配置。
其他所有内容都与示例文件相同,但由于某种原因,hostapd无法启动。/var/log/syslog说配置文件中有一个错误,但没有真正解释问题的所在:
Oct 25 13:47:13 blackfox systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 320.
Oct 25 13:47:13 blackfox hostapd[347060]: 1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Oct 25 13:47:13 blackfox hostapd[347060]: Failed to set up interface with /etc/hostapd/hostapd.conf
Oct 25 13:47:13 blackfox hostapd[347060]: Failed to initialize interface
Oct 25 13:47:13 blackfox systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 13:47:13 blackfox systemd[1]: hostapd.service: Failed with result 'exit-code'.
Oct 25 13:47:15 blackfox systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 321.
Oct 25 13:47:15 blackfox hostapd[347062]: 1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Oct 25 13:47:15 blackfox hostapd[347062]: Failed to set up interface with /etc/hostapd/hostapd.conf
Oct 25 13:47:15 blackfox hostapd[347062]: Failed to initialize interface
Oct 25 13:47:15 blackfox systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 13:47:15 blackfox systemd[1]: hostapd.service: Failed with result 'exit-code'.
Oct 25 13:47:17 blackfox systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 322.
Oct 25 13:47:17 blackfox hostapd[347065]: 1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Oct 25 13:47:17 blackfox hostapd[347065]: Failed to set up interface with /etc/hostapd/hostapd.conf
Oct 25 13:47:17 blackfox hostapd[347065]: Failed to initialize interface
Oct 25 13:47:17 blackfox systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 13:47:17 blackfox systemd[1]: hostapd.service: Failed with result 'exit-code'.有人知道这是怎么回事吗?
发布于 2022-10-25 18:47:02
正在运行
hostapd -dd /etc/hostapd/hostapd.conf给出了更多关于发生了什么的细节。RHEL有一个名为RHEL的特殊管理小组,在Ubuntu中是不存在的。
返回配置文件并更改
ctrl_interface_group=wheel将车轮替换为0,根,27,sudo
他们都成功地开始了。
https://serverfault.com/questions/1114002
复制相似问题