AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

IPv6 filtering rules not working as expected (IPv4 works, IPv6 does not)

Open Floppik opened this issue 1 year ago • 2 comments

Prerequisites

Platform (OS and CPU architecture)

Linux, MIPS

Installation

Custom package (OpenWrt, HomeAssistant, etc; please mention in the description)

Setup

On a router, DHCP is handled by the router

AdGuard Home version

v0.107.55

Action

Hello, I'm experiencing an issue with filtering rules in AdGuard Home where IPv6 requests are not being filtered correctly, while IPv4 requests are handled as expected. Here are the details:

Steps to Reproduce: Set up a filtering rule:

Added a rule to block youtube service in AdGuard Home on client

Test with IPv4:

Ran the following command:

bash

nslookup -debug -type=AAAA youtubei.googleapis.com 192.168.1.1 Result: The domain was correctly blocked (NXDOMAIN response).

** server can't find youtubei.googleapis.com: NXDOMAIN Test with IPv6:

Ran the following command:

bash

nslookup -debug -type=AAAA youtubei.googleapis.com 2001:470:6316:0:52ff:20ff:fe00:1f0a Result: The domain was not blocked, and the DNS server returned valid AAAA records:

Name: youtubei.googleapis.com Address: 2a00:1450:400f:800::200a Name: youtubei.googleapis.com Address: 2a00:1450:400f:80a::200a Name: youtubei.googleapis.com Address: 2a00:1450:400f:802::200a Name: youtubei.googleapis.com Address: 2a00:1450:400f:801::200a

Expected result

The domain youtubei.googleapis.com should be blocked for both IPv4 and IPv6 requests.

Actual result

The domain is blocked for IPv4 requests but not for IPv6 requests.

Additional information and/or screenshots

Image

Image

Floppik avatar Feb 27 '25 07:02 Floppik

The logged IPv6 source address and the IPv6 identifier configured for the persistent client in this report are different. AdGuard Home therefore has no exact persistent-client match from which to load the client-specific filtering settings; the IPv4 case works because that identifier matches.

Please retest with the exact stable source /128, or an appropriate stable IPv6 prefix if the host rotates addresses. If the address is link-local and arrives with an interface zone, #7771 and PR #8519 cover the related scoped address lookup case. That PR does not make two different global IPv6 addresses equivalent, so a corrected identifier is still required for the original report.

Sil3ntVip3r avatar Aug 05 '26 01:08 Sil3ntVip3r

Hello, the IPv6 addresses in your screenshots are different, which is why the domain isn't being blocked. Please add the correct IPv6 address to the client identifiers.

sofvaskina avatar Sep 01 '26 09:09 sofvaskina