nixos/home/routing-common: More Disney+ IPv6 workarounds

This commit is contained in:
Jack O'Sullivan 2024-06-05 20:21:48 +01:00
parent 41fd54cfad
commit b8ee21b6e8
2 changed files with 5 additions and 1 deletions

View File

@ -375,6 +375,10 @@ in
# MSS clamping to workaround IPv6 PMTUD being broken...
tcp flags syn tcp option maxseg size set rt mtu counter
# More Disney+ discrimination...
# TODO: This prefix could change (random AWS block)
ip6 daddr 2600:9000:2245::/48 drop
}
chain forward {
${lib.my.c.as211024.nftTrust}

View File

@ -66,7 +66,7 @@ in
-- Disney+ doesn't like our IP space...
function preresolve(dq)
local name = dq.qname:toString()
if dq.qtype == pdns.AAAA and (string.find(name, "disneyplus") or string.find(name, "disney-plus")) then
if dq.qtype == pdns.AAAA and (string.find(name, "disneyplus") or string.find(name, "disney-plus") or string.find(name , "disney.api")) then
dq.rcode = 0
return true
end