AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
25.47k stars 1.83k forks source link

Alpine baremetal and AdGuardHome binary.. ".. failed to determine if this network interface is configured using a static IP address.. " #6780

Closed bcookatpcsd closed 2 weeks ago

bcookatpcsd commented 8 months ago

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

Other (please mention in the description)

Setup

Other (please mention in the description)

AdGuard Home version

v0.107.44

Action

Wanted to see what the debug would be for checking for other dhcp servers..

Expected result

was expecting to see the mac address of the dhcp server or the L2 dhcp guard complain..

Actual result

In order to use DHCP server a static IP address must be set. AdGuard Home failed to determine if this network interface is configured using a static IP address. Please set a static IP address manually.

multiple sub ineterfaces defined and working.. but is openrc and not systemd (which might be the issue)

image

Additional information and/or screenshots

I would think just a manual override might help..

Currently using dnsmasq but wanted to setup a network and see what it looks like..

Thank you in advance.

ghost commented 7 months ago

Hi @bcookatpcsd, thanks for the report. Does this sound like your issue?

bcookatpcsd commented 7 months ago

Sorry that the report was not clear.

The button that says 'check for dhcp servers' reports you need to configure a static IP..

(not sure why it doesn't check for dhcp servers like it says)

I was expecting something like this:

 ~# nmap --script broadcast-dhcp-discover
Starting Nmap 7.94 ( https://nmap.org ) at 2024-04-05 09:27 EDT
Pre-scan script results:
| broadcast-dhcp-discover:
|   Response 1 of 1:
|     Interface: ens192
|     IP Offered: 10.20.13.96
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 10.20.0.247
|     IP Address Lease Time: 2h00m00s
|     Renewal Time Value: 1h00m00s
|     Rebinding Time Value: 1h45m00s
|     Subnet Mask: 255.255.240.0
|     Broadcast Address: 10.20.15.255
|     Log Server: 10.20.0.16
|     NTP Servers: 10.20.0.247
|     Domain Name Server: 10.20.0.247, 10.20.0.247
|     IP Forwarding: false
|     NetBIOS Scope:
|     NetBIOS Node Type: 8
|     WPAD: http://a.b.c.d/xyz.pac
|     Domain Name: abc.123
|_    Router: 10.20.0.1
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.22 seconds

But instead you get this dialog box:

image

and this:

image

The dialog box leads you to believe that you 'will not be able to enable the dhcp server', which is not the case, the dhcpd portion will enable just fine.

(imho) the messages are mis-leading and confusing.. I was checking for a dhcpd server b/c I wanted to see what it did.. then I though I would have a problem with the dhcpd, etc.

(hope this helps.. )