fix(inadyn): filter IPv6 via Global Unicast Address Prefix

This commit is contained in:
Felix Schröter 2025-01-29 20:38:10 +01:00
parent be9f968c51
commit 921b59fa40
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -81,8 +81,8 @@ in
''}";
services.inadyn.ipv6.enable = true;
services.inadyn.ipv6.command = "${pkgs.writeScript "get-ipv6" ''
${pkgs.tailscale}/bin/tailscale status --json \
| ${pkgs.jq}/bin/jq -r '.Self.Addrs' \
${pkgs.iproute2}/bin/ip -6 addr show scope global \
| ${pkgs.grepcidr}/bin/grepcidr '2000::/3' \
| grep -o '[0-9a-f:]*::102'
''}";
services.inadyn.domains = [