[PR #1425] [MERGED] Give a warning when users have set an unsupported prefix #2105

Closed
opened 2025-12-29 03:19:47 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1425
Author: @juanfont
Created: 5/6/2023
Status: Merged
Merged: 5/7/2023
Merged by: @juanfont

Base: mainHead: warn-on-bad-prefix


📝 Commits (1)

  • 7cf2db6 Give a warning when users have set an unsupported prefix

📊 Changes

1 file changed (+24 additions, -0 deletions)

View changed files

📝 config.go (+24 -0)

📄 Description

The only supported prefixes to assign client IPs by the Tailscale client are 100.64.0.0/10 and fd7a:115c:a1e0::/48.

Despite that, we allow users to setup arbitrary ranges in the Headscale config. This kinda work, but also don't:

https://github.com/juanfont/headscale/issues/1409
https://github.com/juanfont/headscale/issues/1050
https://github.com/juanfont/headscale/issues/148
(and more)

This PR adds a warning in the config when users have other IP prefixes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/1425 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 5/6/2023 **Status:** ✅ Merged **Merged:** 5/7/2023 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `warn-on-bad-prefix` --- ### 📝 Commits (1) - [`7cf2db6`](https://github.com/juanfont/headscale/commit/7cf2db6f4b258f63170ca34d3bb56a56f0c522dd) Give a warning when users have set an unsupported prefix ### 📊 Changes **1 file changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `config.go` (+24 -0) </details> ### 📄 Description The only supported prefixes to assign client IPs by the Tailscale client are 100.64.0.0/10 and fd7a:115c:a1e0::/48. Despite that, we allow users to setup arbitrary ranges in the Headscale config. This kinda work, but also don't: https://github.com/juanfont/headscale/issues/1409 https://github.com/juanfont/headscale/issues/1050 https://github.com/juanfont/headscale/issues/148 (and more) This PR adds a warning in the config when users have other IP prefixes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:19:47 +01:00
adam closed this issue 2025-12-29 03:19:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2105