linux-router icon indicating copy to clipboard operation
linux-router copied to clipboard

debian13上错误

Open xuxin1955 opened this issue 3 months ago • 3 comments

Image

xuxin1955 avatar Oct 06 '25 03:10 xuxin1955

Did you try with --no-virt?

garywill avatar Oct 07 '25 05:10 garywill

root@4G-wifi:~# /usr/bin/lnxrouter --ap wlxe025b6f0700f ImmortaIWrt -p 1234567890 --freq-band 5 -c 48 --wifi4 --wifi5 --ht-capab "[HT40+][SHORT-GI-40]" --vht-capab "[VHT80][SHORT-GI-80]" --isolate-clients --country CN --no-virt --daemon Running as Daemon... root@4G-wifi:~# WARN: wlxe025b6f0700f has 15 characters which might be too long. If AP doesn't work, see --virt-name and https://github.com/garywill/linux-router/issues/44 linux-router 0.8.1 (https://github.com/garywill/linux-router) Released under LGPL, with no warranty. Use on your own risk.

PID: 555 Target interface is wlxe025b6f0700f (42:3d:fa:a8:78:ce) unknown

Use random LAN IPv4 address 192.168.40.1 Config dir: /dev/shm/lnxrouter_tmp/lnxrouter.wlxe025b6f0700f.conf.B213E0 Freq band: 5 GHz Channel: 48 Set wlxe025b6f0700f unmanaged by NetworkManager

iptables v1.8.11 (legacy) Notice: Not showing all operations done to iptables rules

haveged_watchdog PID: 684

Starting hostapd hostapd PID: 689 WARN: Low entropy detected. We recommend you to install `haveged' Configuration file: /dev/shm/lnxrouter_tmp/lnxrouter.wlxe025b6f0700f.conf.B213E0/hostapd.conf Line 18: unknown configuration item 'ieee80211n' Line 19: unknown configuration item 'ht_capab' Line 20: unknown configuration item 'ieee80211ac' Line 21: unknown configuration item 'vht_capab' Line 22: unknown configuration item 'vht_oper_chwidth' 5 errors found in configuration file '/dev/shm/lnxrouter_tmp/lnxrouter.wlxe025b6f0700f.conf.B213E0/hostapd.conf' Failed to set up interface with /dev/shm/lnxrouter_tmp/lnxrouter.wlxe025b6f0700f.conf.B213E0/hostapd.conf Failed to initialize interface

iptables: NAT MASQUERADE all opt -- in * out !wlxe025b6f0700f 192.168.40.0/24 !-> 192.168.40.0/24 /* lrt555wlxe025b6f0700f / ACCEPT all opt -- in wlxe025b6f0700f out * 192.168.40.0/24 -> 0.0.0.0/0 / lrt555wlxe025b6f0700f / ACCEPT all opt -- in * out wlxe025b6f0700f 0.0.0.0/0 -> 192.168.40.0/24 / lrt555wlxe025b6f0700f */ Loaded kernel module nf_nat_pptp

iptables: allow DNS ACCEPT tcp opt -- in wlxe025b6f0700f out * 192.168.40.0/24 -> 192.168.40.1 tcp dpt:53 /* lrt555wlxe025b6f0700f / ACCEPT udp opt -- in wlxe025b6f0700f out * 192.168.40.0/24 -> 192.168.40.1 udp dpt:53 / lrt555wlxe025b6f0700f */

iptables: allow dhcp ACCEPT udp opt -- in wlxe025b6f0700f out * 0.0.0.0/0 -> 0.0.0.0/0 udp dpt:67 /* lrt555wlxe025b6f0700f */

Starting dnsmasq Oct 22 20:45:03 dnsmasq[714]: started, version 2.91 cachesize 150 Oct 22 20:45:03 dnsmasq[714]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth DNSSEC loop-detect inotify dumpfile Oct 22 20:45:03 dnsmasq-dhcp[714]: DHCP, IP range 192.168.40.10 -- 192.168.40.250, lease time 1h Oct 22 20:45:03 dnsmasq-dhcp[714]: DHCP, sockets bound exclusively to interface wlxe025b6f0700f Oct 22 20:45:03 dnsmasq[714]: reading /etc/resolv.conf Oct 22 20:45:03 dnsmasq[714]: using nameserver 192.168.66.1#53 Oct 22 20:45:03 dnsmasq[714]: using nameserver 2409:8080:2000:3::1#53 Oct 22 20:45:03 dnsmasq[714]: using nameserver 2409:8080:2000:3::2#53 Oct 22 20:45:03 dnsmasq[714]: cleared cache dnsmasq PID: 714

== Setting up completed, now linux-router should be working == Error occured

ERROR: hostapd failed. (tip: try '--hostapd-debug' to get some debug info)

Error occured

Doing cleanup.. Oct 22 20:45:11 dnsmasq[714]: exiting on receipt of SIGTERM Killed dnsmasq.pid 714 dnsmasq Terminated Killed haveged_watchdog.pid 684 lnxrouter Terminated Killed keep_running.pid 736 bash Undoing iptables changes .. Restoring wlxe025b6f0700f to old MAC address 42:3d:fa:a8:78:ce ... root@4G-wifi:~# Restore wlxe025b6f0700f managed by NetworkManager Error occured

ERROR: dnsmasq failed

Exiting: This is the only running instance Cleaning up done root@4G-wifi:~# root@4G-wifi:~#

xuxin1955 avatar Oct 22 '25 12:10 xuxin1955

log里已经有两个提示

WARN: wlxe025b6f0700f has 15 characters which might be too long. If AP doesn't work, see --virt-name and https://github.com/garywill/linux-router/issues/44

尝试修改系统里网络介面的命名方式让名称短一点,请自行网上搜索方法,要重启

ERROR: hostapd failed. (tip: try '--hostapd-debug' to get some debug info)

这条也请先自行排查

garywill avatar Oct 23 '25 02:10 garywill