How do I exclude traffic from a range of IPv6 addresses?

Hello,

there is a info and a tutorial to exclude a range of IPv4 or IPv6 adresses.

I don’t understand the mask for a range of IPv6 addresses. By IPv4 i can use wildcards. And for IPv6?

34.254.53.*
2a03:2880:11ff:e:*
2a03:2880:11ff:e:*:*:*:*

Can i use wildcards in IPv6 similar to IPv4? And what is the right notation?

With the CIDR notation it is not so simple wich suffix is the right. When i understand the CIDR right, then the suffix makes the range? What is right and what is false?

2a03:2880:11ff:e::/24
2a03:2880:11ff:e::/32
2a03:2880:11ff:e::/56
2a03:2880:11ff:e::/64

Matomo added the star (*) wildcard notation for IPv6 in 2016.

So 1:2:3:4:*:*:*:* will match 0 to ffff in each of those fields.

Using the wildcard with CIDR may give unpredictable results; I have not tested that.

The original pull request for adding this feature is here:

1 Like

Thanks, and yes and no. That don’t work so, rather it works only for simple ranges. The professional IP ranges works like 2a03:2880:1000::/36. My question is, if that works:

2a03:2880:1000::/36
2a03:2880:2000::/36
2600:3c00::/32
2600:3c01::/32
2600:4040:4000::/36
2604:f440::/48
2606:54c0::/32