RaspAP / raspap-webgui

Simple wireless AP setup & management for Debian-based devices
https://raspap.com/
GNU General Public License v3.0
4.47k stars 792 forks source link

[Bug]: Default configuration with wlan0 AP + eth0 connected to home broadband but no internet #1584

Closed Shilyjunior closed 6 months ago

Shilyjunior commented 6 months ago

Code of Conduct

Issue reporting checklist

Operating System

Raspberry Pi OS (64-bit) Lite Bookworm

Quick install or Manual setup?

Quick install

Onboard wireless chipset or external adapter?

Onboard wireless chipset

Hardware

Raspberry Pi 5

RaspAP version

3.1.3 (Latest)

Other software or services running with RaspAP?

No other software

Contact details (optional)

shilyjunior@yahoo.co.uk

Bug description

I made a clean fresh install of RaspAP on Raspberry Pi 5 using Raspberry Pi OS ( 64-bit) Lite Bookworm on a clean 32Gb SD card. LAN connected between home internet broadband LAN port and Raspberry Pi 5 on board ethernet port (eth0) as internet input to Raspberry Pi 5 and to output internet to my devices via hotspot using the Raspberry Pi 5 on board WiFi (wlan0)

Steps to reproduce

Connect to RaspAP web interface on 10.3.141.1 post RasAP clean install On the Hotspot > Basic tab, select the interface (wlan0) and configure an AP Choose "Save settings" Choose Restart hotspot Attempt to connect clients to the SSID but SSID is not available to devices

Screenshots

No response

Additional context

No response

Relevant log output

888888ba                              .d888888   888888ba
   88     8b                            d8     88   88     8b
  a88aaaa8P' .d8888b. .d8888b. 88d888b. 88aaaaa88a a88aaaa8P
   88    8b. 88    88 Y8ooooo. 88    88 88     88   88
   88     88 88.  .88       88 88.  .88 88     88   88
   dP     dP  88888P8  88888P  88Y888P  88     88   dP
                               88
                               dP     Debug Log Generator 1.0

This process collects debug and troubleshooting information about your RaspAP installation.
It is intended to assist users with a self-diagnosis of their installations, as well as
provide useful information as a starting point for others to assist with troubleshooting.
Debug log information contains the RaspAP version, current state and configuration of AP
related services, relevant installed package versions, Linux kernel version and local
networking configuration details.

If you wish to share your debug info, paste the output to one of the following:
  https://pastebin.com/
  https://paste.ubuntu.com/

Please do NOT paste the log in its entirety to RaspAP's discussions, issues or other
support channels. Use one of the above links instead.

DISCLAIMER: This log DOES contain details about your system, including networking
settings. However, NO passwords or other sensitive data are included in the debug output.
========================================================================================

Debug log generation started at Tue May  7 23:21:34 BST 2024

System Info
===========
Hardware: Raspberry Pi 5 Model B Rev 1.0
Detected OS: Debian GNU/Linux 12 (bookworm) 64-bit
Kernel: Linux raspberrypi 6.6.28+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux
System Uptime: 0 days, 0 hours, 9 minutes
Memory Usage: 6.15575%

Installed Packages
==================
PHP Version: 8.2.18 (cli) (built: Apr 11 2024 22:07:45) (NTS)
Dnsmasq Version: 2.89
dhcpcd Version: 9.4.1
lighttpd Version: 1.4.69
vnStat Version: 2.10

RaspAP Install
==============
RaspAP Version: 3.1.3
RaspAP Installation Directory: /var/www/html
RaspAP hostapd.ini contents:
WifiInterface = wlan0
LogEnable = 1
WifiAPEnable = 0
BridgedEnable = 0
WifiManaged = wlan0
RaspAP provider.ini: Not present

USB Devices
===========
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID a69c:5721 aicsemi Aic MSC
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

WPA Supplicant
==============
Selected interface 'wlan0'
wpa_state=INACTIVE
ip_address=10.3.141.1
p2p_device_address=da:3a:dd:e7:93:7a
address=d8:3a:dd:e7:93:7a
uuid=e47af981-de1c-5c80-b11c-a89be2f9aa6d

Dnsmasq Contents
================
/etc/dnsmasq.d/090_adblock.conf
/etc/dnsmasq.d/090_raspap.conf
/etc/dnsmasq.d/090_wlan0.conf

/etc/dnsmasq.d/090_adblock.conf contents:
conf-file=/etc/raspap/adblock/domains.txt
addn-hosts=/etc/raspap/adblock/hostnames.txt$

/etc/dnsmasq.d/090_raspap.conf contents:
# RaspAP default config
log-facility=/var/log/dnsmasq.log
conf-dir=/etc/dnsmasq.d$

/etc/dnsmasq.d/090_wlan0.conf contents:
# RaspAP wlan0 configuration
interface=wlan0
domain-needed
dhcp-range=10.3.141.50,10.3.141.254,255.255.255.0,12h$

Dhcpcd Contents
===============
# RaspAP default configuration
hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers
require dhcp_server_identifier
slaac private
nohook lookup-hostname

# RaspAP wlan0 configuration
interface wlan0
static ip_address=10.3.141.1/24
static routers=10.3.141.1
static domain_name_server=1.1.1.1 8.8.8.8

Interfaces
==========
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether d8:3a:dd:e7:93:79 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.112/24 brd 10.0.0.255 scope global dynamic noprefixroute eth0
       valid_lft 172256sec preferred_lft 172256sec
    inet6 2601:19c:5180:9f00::325e/128 scope global dynamic noprefixroute
       valid_lft 345116sec preferred_lft 345116sec
    inet6 2601:19c:5180:9f00:dd54:dd18:997e:a9d/64 scope global dynamic noprefixroute
       valid_lft 345601sec preferred_lft 345601sec
    inet6 2601:19c:5180:9f00:b33b:ae52:ab44:b17b/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 345600sec preferred_lft 345600sec
    inet6 fe80::677d:9910:b3d9:a5ee/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::cc3f:6957:855b:b720/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0e:c6:82:41:35 brd ff:ff:ff:ff:ff:ff
    inet 169.254.200.134/16 brd 169.254.255.255 scope global noprefixroute eth1
       valid_lft forever preferred_lft forever
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether d8:3a:dd:e7:93:7a brd ff:ff:ff:ff:ff:ff
    inet 10.3.141.1/24 brd 10.3.141.255 scope global noprefixroute wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::1bd6:edc8:c62:1c38/64 scope link
       valid_lft forever preferred_lft forever

Routing Table
=============
default via 10.0.0.1 dev eth0 proto dhcp src 10.0.0.112 metric 1002
default via 10.3.141.1 dev wlan0 src 10.3.141.1 metric 3004
10.0.0.0/24 dev eth0 proto dhcp scope link src 10.0.0.112 metric 1002
10.3.141.0/24 dev wlan0 proto dhcp scope link src 10.3.141.1 metric 3004
169.254.0.0/16 dev eth1 scope link src 169.254.200.134 metric 1003

IW Device Info
==============
phy#0
    Unnamed/non-netdev interface
        wdev 0x2
        addr da:3a:dd:e7:93:7a
        type P2P-device
        txpower 31.00 dBm
    Interface wlan0
        ifindex 4
        wdev 0x1
        addr d8:3a:dd:e7:93:7a
        ssid raspi-webgui
        type AP
        channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
        txpower 31.00 dBm

IW Regulatory Info
==================
global
country GB: DFS-ETSI
    (2400 - 2483 @ 40), (N/A, 20), (N/A)
    (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
    (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
    (5470 - 5730 @ 160), (N/A, 26), (0 ms), DFS
    (5725 - 5850 @ 80), (N/A, 23), (N/A), NO-OUTDOOR
    (5925 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR
    (57000 - 71000 @ 2160), (N/A, 40), (N/A)

phy#0
country 99: DFS-UNSET
    (2402 - 2482 @ 40), (6, 20), (N/A)
    (2474 - 2494 @ 20), (6, 20), (N/A)
    (5140 - 5360 @ 160), (6, 20), (N/A)
    (5460 - 5860 @ 160), (6, 20), (N/A)

Systemd Services
================
hostapd status:
● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet
     Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-05-07 23:13:25 BST; 8min ago
       Docs: man:hostapd(8)
    Process: 1936 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=0/SUCCESS)
   Main PID: 1941 (hostapd)
      Tasks: 1 (limit: 4451)
        CPU: 13ms
     CGroup: /system.slice/hostapd.service
             └─1941 /usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf

May 07 23:13:25 raspberrypi systemd[1]: Starting hostapd.service - Access point and authentication server for Wi-Fi and Ethernet...
May 07 23:13:25 raspberrypi hostapd[1936]: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
May 07 23:13:25 raspberrypi hostapd[1936]: wlan0: interface state COUNTRY_UPDATE->ENABLED
May 07 23:13:25 raspberrypi hostapd[1936]: wlan0: AP-ENABLED
May 07 23:13:25 raspberrypi systemd[1]: Started hostapd.service - Access point and authentication server for Wi-Fi and Ethernet.

dnsmasq status:
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
     Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-05-07 23:13:32 BST; 8min ago
    Process: 2044 ExecStartPre=/etc/init.d/dnsmasq checkconfig (code=exited, status=0/SUCCESS)
    Process: 2051 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
    Process: 2074 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
   Main PID: 2073 (dnsmasq)
      Tasks: 1 (limit: 4451)
        CPU: 1.155s
     CGroup: /system.slice/dnsmasq.service
             └─2073 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d

May 07 23:13:31 raspberrypi systemd[1]: Starting dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server...
May 07 23:13:32 raspberrypi systemd[1]: Started dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server.

dhcpcd status:
● dhcpcd.service - DHCP Client Daemon on all interfaces
     Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-05-07 23:13:28 BST; 8min ago
       Docs: man:dhcpcd(8)
    Process: 1944 ExecStart=/usr/sbin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
   Main PID: 1946 (dhcpcd)
      Tasks: 8 (limit: 4451)
        CPU: 5.083s
     CGroup: /system.slice/dhcpcd.service
             ├─1946 "dhcpcd: [manager] [ip4] [ip6]"
             ├─1947 "dhcpcd: [privileged proxy]"
             ├─1948 "dhcpcd: [network proxy]"
             ├─1949 "dhcpcd: [control proxy]"
             ├─1957 "dhcpcd: [BPF ARP] wlan0 10.3.141.1"
             ├─1958 "dhcpcd: [BPF ARP] eth0 10.0.0.112"
             ├─2027 "dhcpcd: [BPF BOOTP] eth1"
             └─4262 "dhcpcd: [BPF ARP] eth1 169.254.200.134"

May 07 23:14:42 raspberrypi dhcpcd[1947]: eth1: pid 747 deleted IP address 169.254.169.67/16
May 07 23:14:42 raspberrypi dhcpcd[1947]: eth1: deleting route to 169.254.0.0/16
May 07 23:14:42 raspberrypi dhcpcd[1947]: eth1: probing for an IPv4LL address
May 07 23:14:48 raspberrypi dhcpcd[1947]: eth1: using IPv4LL address 169.254.93.232
May 07 23:14:48 raspberrypi dhcpcd[1947]: eth1: adding route to 169.254.0.0/16
May 07 23:15:27 raspberrypi dhcpcd[1947]: eth1: pid 747 deleted IP address 169.254.93.232/16
May 07 23:15:27 raspberrypi dhcpcd[1947]: eth1: deleting route to 169.254.0.0/16
May 07 23:15:27 raspberrypi dhcpcd[1947]: eth1: probing for an IPv4LL address
May 07 23:15:32 raspberrypi dhcpcd[1947]: eth1: using IPv4LL address 169.254.200.134
May 07 23:15:32 raspberrypi dhcpcd[1947]: eth1: adding route to 169.254.0.0/16

systemd-networkd status:
○ systemd-networkd.service - Network Configuration
     Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; preset: enabled)
     Active: inactive (dead)
TriggeredBy: ○ systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
             man:org.freedesktop.network1(5)

wg-quick@wg0 status:

openvpn-client@client status:
× openvpn-client@client.service - OpenVPN tunnel for client
     Loaded: loaded (/lib/systemd/system/openvpn-client@.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-05-07 23:13:24 BST; 8min ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
    Process: 1881 ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config client.conf (code=exited, status=1/FAILURE)
   Main PID: 1881 (code=exited, status=1/FAILURE)
        CPU: 17ms

May 07 23:13:24 raspberrypi systemd[1]: Starting openvpn-client@client.service - OpenVPN tunnel for client...
May 07 23:13:24 raspberrypi openvpn[1881]: Options error: In [CMD-LINE]:1: Error opening configuration file: client.conf
May 07 23:13:24 raspberrypi openvpn[1881]: Use --help for more information.
May 07 23:13:24 raspberrypi systemd[1]: openvpn-client@client.service: Main process exited, code=exited, status=1/FAILURE
May 07 23:13:24 raspberrypi systemd[1]: openvpn-client@client.service: Failed with result 'exit-code'.
May 07 23:13:24 raspberrypi systemd[1]: Failed to start openvpn-client@client.service - OpenVPN tunnel for client.

lighttpd status:
● lighttpd.service - Lighttpd Daemon
     Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-05-07 23:13:24 BST; 8min ago
    Process: 1880 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
   Main PID: 1909 (lighttpd)
      Tasks: 11 (limit: 4451)
        CPU: 1.833s
     CGroup: /system.slice/lighttpd.service
             ├─ 1909 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
             ├─ 1930 /usr/bin/php-cgi
             ├─ 1937 /usr/bin/php-cgi
             ├─ 1938 /usr/bin/php-cgi
             ├─ 1939 /usr/bin/php-cgi
             ├─ 1940 /usr/bin/php-cgi
             ├─10602 sh -c "sudo /etc/raspap/system/debuglog.sh -i /var/www/html"
             ├─10603 sudo /etc/raspap/system/debuglog.sh -i /var/www/html
             ├─10604 /bin/bash /etc/raspap/system/debuglog.sh -i /var/www/html
             ├─10728 /bin/bash /etc/raspap/system/debuglog.sh -i /var/www/html
             └─10729 systemctl status lighttpd

May 07 23:18:57 raspberrypi sudo[7940]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=33)
May 07 23:18:57 raspberrypi sudo[7940]: pam_unix(sudo:session): session closed for user root
May 07 23:19:04 raspberrypi lighttpd[8065]: cat: /etc/dnsmasq.d/090_eth0.conf: No such file or directory
May 07 23:19:33 raspberrypi lighttpd[8541]: sh: 1: host: not found
May 07 23:19:33 raspberrypi lighttpd[8551]: sh: 1: host: not found
May 07 23:19:59 raspberrypi lighttpd[8978]: basename: missing operand
May 07 23:19:59 raspberrypi lighttpd[8978]: Try 'basename --help' for more information.
May 07 23:21:34 raspberrypi sudo[10603]: www-data : PWD=/var/www/html/ajax/system ; USER=root ; COMMAND=/etc/raspap/system/debuglog.sh -i /var/www/html
May 07 23:21:34 raspberrypi sudo[10603]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=33)
May 07 23:21:34 raspberrypi lighttpd[10725]: Unit wg-quick@wg0.service could not be found.

RaspAP debug log generation complete.
billz commented 6 months ago

Please do NOT paste the log in its entirety to RaspAP's discussions, issues or other support channels.

Please respect this project's issue policy by using the debug log for a self-diagnosis. It isn't intended to be posted to issues in its entirely.

That said, your device is clearly misconfigured: a second ethernet interface is present with a private 169.254.* address that is automatically assigned when a valid IP can't be obtained by your router's DHCP server. If you're attempting to use this interface with your AP, you will not have connectivity.