AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Listening on IPv6 LLA is not possible

Open lars-1 opened this issue 4 years ago • 1 comments

Issue Details

  • Version of AdGuard Home server:
    • v0.106.0-b.1
  • How did you install AdGuard Home:
    • snap
  • How did you setup DNS configuration:
    • LXD
  • CPU architecture:
    • AMD64
  • Operating system and version:
    • Ubuntu 20.04

I am trying to listen on an IPv6 LLA address, but AdGuard won't start if I add it to the configuration yaml.

Expected Behavior

The configuration should accept IPv6 LLA adresses:

bind_hosts:
  - 10.10.10.10
  - fe80::10%eth0

Actual Behavior

For IPv6 LLA you need to specify an interface (e.g. eth0) but AdGuard does not start: Job for snap.adguard-home.adguard-home.service failed because the control process exited with error code.

I tried escaping the percent sign but that resulted in Couldn't parse config file: invalid IP address: fe80::10%%eth0.

lars-1 avatar Apr 06 '21 13:04 lars-1

Bug still exists in v0.106.3.

lars-1 avatar May 19 '21 14:05 lars-1

@lars-1, hello and sorry for the long response. We've pushed the latest edge build that should now be able to serve DNS on link-local IPv6 addresses. Could you please try it and tell if it works properly within your network?

EugeneOne1 avatar Oct 14 '22 13:10 EugeneOne1

The use of IPv6 LLA addresses is wrong and should not be used! According to the specifications for IPv6, ULA addresses are used for this purpose! Even if you define the network interface for LLA, end devices that can only reach the DNS via multiple hops can still not communicate to the DNS. The use of ULA addresses works perfectly.

Chialya avatar Oct 19 '22 19:10 Chialya

@lars-1, hello again. We'll close the issue for now if you don't mind. It works properly on our test machines, but feel free to reopen the issue if any problem occured with the implementation.

EugeneOne1 avatar Oct 20 '22 12:10 EugeneOne1