[PR #1076] [MERGED] fix(routes): ensure routes are correctly propagated #1859

Closed
opened 2025-12-29 02:32:00 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1076
Author: @fatih-acar
Created: 12/20/2022
Status: Merged
Merged: 12/20/2022
Merged by: @juanfont

Base: mainHead: fix_route_propagation


📝 Commits (1)

  • b10bd18 fix(routes): ensure routes are correctly propagated

📊 Changes

2 files changed (+10 additions, -7 deletions)

View changed files

📝 machine.go (+3 -7)
📝 routes.go (+7 -0)

📄 Description

When using Tailscale v1.34.1, enabling or disabling a route does not effectively add or remove the route from the node's routing table. We must restart tailscale on the node to have a netmap update.

Fix this by refreshing last state change so that a netmap diff is sent.

Also do not include secondary routes in allowedIPs, otherwise secondary routes might be used by nodes instead of the primary route.

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Fixes #1075


🔄 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/1076 **Author:** [@fatih-acar](https://github.com/fatih-acar) **Created:** 12/20/2022 **Status:** ✅ Merged **Merged:** 12/20/2022 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `fix_route_propagation` --- ### 📝 Commits (1) - [`b10bd18`](https://github.com/juanfont/headscale/commit/b10bd1899832d622c64d9aaa1b2566c03ee3e3c5) fix(routes): ensure routes are correctly propagated ### 📊 Changes **2 files changed** (+10 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `machine.go` (+3 -7) 📝 `routes.go` (+7 -0) </details> ### 📄 Description When using Tailscale v1.34.1, enabling or disabling a route does not effectively add or remove the route from the node's routing table. We must restart tailscale on the node to have a netmap update. Fix this by refreshing last state change so that a netmap diff is sent. Also do not include secondary routes in allowedIPs, otherwise secondary routes might be used by nodes instead of the primary route. <!-- Please tick if the following things apply. You… --> - [x] read the [CONTRIBUTING guidelines](README.md#contributing) - [x] raised a GitHub issue or discussed it on the projects chat beforehand - [ ] added unit tests - [ ] added integration tests - [ ] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> Fixes #1075 --- <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 02:32:00 +01:00
adam closed this issue 2025-12-29 02:32:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1859