Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support for IP Sets and "Via" in Headscale ACL #2409

Open
2 tasks
aradng opened this issue Feb 6, 2025 · 1 comment
Open
2 tasks

[Feature Request] Support for IP Sets and "Via" in Headscale ACL #2409

aradng opened this issue Feb 6, 2025 · 1 comment
Labels

Comments

@aradng
Copy link

aradng commented Feb 6, 2025

Use case

Currently, I have implemented these features manually using complex ipset and iptables configurations on the client side. Native support for these in Headscale ACL would be highly beneficial, particularly for:

  • Restricting access to external services that allow only specific whitelisted IPs or regions/countries.
  • Enabling conditional routing in high-availability (HA) database and backend environments that are frequently migrating.
  • Optimizing client-side routing for improved network performance.

Description

Since Tailscale clients already support custom routing configurations, would it be possible to implement similar functionality within Headscale ACL? Specifically:

Both of these are already available in Tailscale’s control plane ACL grants. Adding them to Headscale ACL would greatly enhance flexibility and ease of use for users managing self-hosted deployments.

Contribution

  • I can write the design doc for this feature
  • I can contribute this feature

How can it be implemented?

No response

@aradng aradng added the enhancement New feature or request label Feb 6, 2025
@kradalby
Copy link
Collaborator

kradalby commented Feb 6, 2025

I have added no stale to this so it sticks around.

I want to managed expectations by saying that currently our ACL implementation part of the policy is severely lacking, which I aim to work on. There are currently no plans in the future to work on implementing grants, that doesnt mean we will not add them, but that there are a lot of other things to work on first (fixing Tags comes to mind and reworking the very hard to maintain routing system, as well as our large backlog of bugs).

I think it would be years before we are able to have the right building blocks in place (working ACLs, then autogroups, fixing routes/exits, then grants) before we can even consider starting on some of this work.

But, we can remain optimistic, open source projects are for the long run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants