mirror of
https://github.com/spr-networks/super.git
synced 2026-04-24 20:35:55 +03:00
[GH-ISSUE #197] fix dns subdomain blocking #62
Labels
No labels
blocked
bug
documentation
enhancement
fixed
fixed ✅
hardening
implemented
installer
multicast
p1
p2
pending
podman
pull-request
security
testing
v1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/super#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lts-rad on GitHub (Sep 29, 2023).
Original GitHub issue: https://github.com/spr-networks/super/issues/197
Originally assigned to: @lts-rad on GitHub.
if a site such as docs.logrocket.com is blcoked, adding a permit rule is insufficient, as the blocklist may contain logrocket.com which shorcuts it
thanks @0vercl0k for reporting
@0vercl0k commented on GitHub (Sep 29, 2023):
lemme know if you want me to run experiments / test the fix 🫡
On Fri, Sep 29, 2023 at 2:11 PM Alex Rad @.***> wrote:
@lts-rad commented on GitHub (Sep 29, 2023):
https://github.com/spr-networks/coredns-block/blob/master/block.go#L345C4-L350C4
=https://github.com/spr-networks/coredns-block/blob/master/block.go#L170
block checks for an exact match. but a block entry of x.com will block a.x.com, and the permit override for a.x.com will not work.
this is likely because the block check is recursive and so a.x.com hits the x.com block without seeing the a.x.com override
https://github.com/spr-networks/coredns-block/blob/master/block.go#L375
the fix for this should propagate the original full domain name in the looped call to checkblock to catch the override
@lts-po commented on GitHub (Oct 11, 2023):
Fixed in 0.2.23:
github.com/spr-networks/coredns-block@1a42b262de