AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[hostapd](server)

Martin Hope
A. Trevelyan
Asked: 2022-10-26 10:00:07 +0800 CST

Hostapd 无法启动 - 无法初始化界面

  • 5

我正在尝试在 linux 机器上将 hostapd 设置为具有 802.1x 的网络身份验证器。

由于我使用的是 Ubuntu Jammy 而不是 RHEL,并且在桥接器中使用 veth 接口而不是物理接口,因此我一直在遵循本指南,并进行了一些调整。

我按照他们描述的内容的指示创建了 hostapd.conf 文件- 我的网桥接口是示例中的 br0,我将own_ip_addr更改为接口 br0 上的 IP,并更改了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'.

有谁知道发生了什么?

linux-networking hostapd
  • 1 个回答
  • 31 Views
Martin Hope
Human
Asked: 2020-09-24 10:13:52 +0800 CST

DNSmasq 在多个接口上转发 DNS

  • 0

我hostapd用来在我的 Ubuntu 18.04 上设置 WiFi 热点网络。我正在使用本指南在我的 WiFi 接口上设置多个 SSID。为了在热点网络上启用 DHCP,我使用dnsmasq.

dnsmasq我为每个 SSID运行一个单独的实例。现在,我在这台计算机上有多个可用的以太网接口,我希望每个dnsmasq实例都转发它在不同以太网接口上接收到的 DNS 请求。

是否有捷径可寻?换句话说,有没有办法告诉dnsmasq使用哪个以太网接口来转发 DNS 查询?我知道理论上我可以使用网络名称空间来做到这一点,但我正在寻找一种更简单的方法。

wifi dnsmasq hostapd
  • 1 个回答
  • 478 Views
Martin Hope
Mausy5043
Asked: 2020-07-08 10:20:20 +0800 CST

如何关闭“非 RRM 网络”消息

  • 1

我的系统日志被这些消息淹没:

wpa_supplicant[390]: RRM: Ignoring radio measurement request: Not RRM network

我进行了广泛的搜索;我什至在wpa_supplicant这里找到了来源:git clone git://w1.fi/hostap.git
但我不精通 C 语言,也不知道如何继续。谁能建议我如何抑制或避免这些消息或关闭此功能?

编辑:这是在 Raspbian(Raspberry Pi 的 Debian 风味)Buster 上,它具有wpa_supplicant v2.8-devel. 它正在与 Fritz!Box AP 通信;我提到这一点是因为我有一种可能相关的感觉。

编辑(2):根据要求:

$ ps -f -p $(pgrep wpa_supplicant)
UID        PID  PPID  C STIME TTY      STAT   TIME CMD
root       342     1  0 Jul12 ?        Ss     0:02 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root       386     1  0 Jul12 ?        Ss     0:04 /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf -C /run/wpa_supplicant
debian wpa raspbian hostapd
  • 1 个回答
  • 1130 Views
Martin Hope
dotslash
Asked: 2016-06-25 10:58:03 +0800 CST

如何动态查看 dnsmasq 客户端 MAC 地址?

  • -1

如果我已经知道客户端 IP,我知道有/var/log/dnsmasq.log,并且它包含日志,例如

6 月 13 日 12:22:42 dnsmasq-dhcp[499]: DHCPACK(wlan0) 172.24.1.110 34:12:98:11:80:bd 个-iPad
6 月 13 日 13:19:44 dnsmasq-dhcp[499]: DHCPDISCOVER (wlan0) d4:97:32:61:4f:73
Jun 13 13:19:44 dnsmasq-dhcp[499]: DHCPOFFER(wlan0) 172.24.1.82 d4:97:0b:61:4f:23
Jun 13 13: 19:44 dnsmasq-dhcp[499]: DHCPREQUEST(wlan0) 172.24.1.82 d4:97:9f:61:4f:73
Jun 13 13:19:44 dnsmasq-dhcp[499]: DHCPACK(wlan0) 172.24.1.82 d4 :97:0b:23:4f:73 android-ef9f423f7ecaca3c

在路由器中

这样,我们每次都可以解析日志,看到最新的MAC地址。

但是不用每次都解析这么长的大文件,我们能知道客户端mac是什么吗?它拖累CPU。

谢谢!


更新

我找到了另一个包含它的地方

cat /var/lib/misc/dnsmasq.leases

仍然是一个文件。还是我每次都必须解析文件?

linux logging mac-address dnsmasq hostapd
  • 1 个回答
  • 5388 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve