Connection gater rejects peers on Tailscale point-to-point interfaces (/32, /128) #361
Open
opened 2026-03-13 14:44:10 +00:00 by oneingan
·
0 comments
No Branch/Tag Specified
main
update-nixpkgs
update-go-dep-github-com-klauspost-compress-v1.20.4
update-go-dep-github-com-klauspost-compress-v1.20.3
update-go-dep-github-com-klauspost-compress-v1.20.1
update-go-dep-github-com-klauspost-compress-v1.20.0
update-go-dep-github-com-klauspost-compress-v1.19.2
update-go-dep-github-com-klauspost-compress-v1.19.1
update-go-dep-github-com-klauspost-compress-v1.19.0
gh-pages
update-go-dep-github-com-klauspost-compress-v1.18.6
update-go-dep-golang-org-x-sync-v0.20.0
update-go-dep-github-com-libp2p-go-libp2p-kad-dht-v0.39.0
better-markdown-formatting
push-mwvmrltpltzk
ke-bump-go
update-go-dep-github-com-libp2p-go-libp2p-kad-dht-v0.38.0
runtime-configuration
push-ouqurpspomqw
adr/stateless-file-config
feat/validate-names
update-go-dep-github-com-spf13-pflag-v1.0.10
update-go-dep-github-com-spf13-pflag-v1.0.8
dave
fix/nixos-module-export
feat/switch-to-flake-parts
fix/revert-nixos-module-changes
feat/flake-refinements
feat/dev-flake
fix/nixos-module
feat/add-more-systems
feat/docs-icon
feat/go-1.24
feat/vendor-hash-renovate-workflow
flake-update-2025-03-10
feat/cleanup-and-comment
v0.1.0
Labels
Clear labels
Good first issue
Help wanted
mq
merging
mq
waiting
OS
Darwin
OS
Linux
Priority
Critical
1
Priority
High
2
Priority
Medium
3
Priority
Low
4
Status
Blocked
1
Status
On Hold
2
Status
Needs More Info
3
Status
Needs Review
4
Status
In Progress
5
Status
Won't Fix
6
Status
Available
Status
Duplicate
Type
Community Contribution
1
contributed by members of the Clan community
Type
Discussion
1
Type
Bug
2
Type
Question
3
Type
Epic
4
Type
Feature Request
5
Type
User Experience
5
Type
Enhancement
6
Type
Maintenance
7
Type
Documentation
Type
Question
Question to be resolved
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: clan/data-mesher#361
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
We are using data-mesher over Tailscale and hit a problem when cluster.interfaces is restricted to ["tailscale0"].
What happens
Environment
Relevant config
[cluster]
interfaces = ["tailscale0"]
port = 17946
bootstrap_peers = ["/dns/peer.ts.example/tcp/17946/p2p/"]
Observed behavior
Suspected root cause
The interface gater appears to treat “reachable via interface” as “remote IP is contained by one of the local interface CIDRs”.
Relevant code paths:
In particular, IsReachable() checks:
That fails for Tailscale point-to-point addresses because:
So peers on the same logical Tailscale interface are rejected even though the connection is valid and routable.
Why this matters
This makes cluster.interfaces = ["tailscale0"] unusable on common Tailscale setups, even though it is exactly the interface users want to restrict data-mesher to.
Current workaround
We had to set:
[cluster]
interfaces = []
and rely on firewall / tailnet ACLs to constrain exposure.
Suggested fix
The reachability test probably should not use subnet containment for point-to-point interfaces. Possible approaches:
Happy to provide more logs / exact repro if useful.