[PR #92] [MERGED] Enhance route command with ptables and multiple routes #1252

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

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/92
Author: @kradalby
Created: 8/21/2021
Status: Merged
Merged: 8/22/2021
Merged by: @juanfont

Base: mainHead: enhance-route-command


📝 Commits (3)

  • c883e79 Enhance route command with ptables and multiple routes
  • 4f97e07 Add --all flag to routes enable command to enable all advertised routes
  • 693bce1 Update test machine name properly

📊 Changes

3 files changed (+252 additions, -42 deletions)

View changed files

📝 cmd/headscale/cli/routes.go (+70 -18)
📝 routes.go (+104 -19)
📝 routes_test.go (+78 -5)

📄 Description

This commit rewrites the routes list command to use ptables to present
a slightly nicer list, including a new field if the route is enabled or
not (which is quite useful).

In addition, it reworks the enable command to support enabling multiple
routes (not only one route as per removed TODO). This allows users to
actually take advantage of exit-nodes and subnet relays.


🔄 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/92 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 8/21/2021 **Status:** ✅ Merged **Merged:** 8/22/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `enhance-route-command` --- ### 📝 Commits (3) - [`c883e79`](https://github.com/juanfont/headscale/commit/c883e798849edb3d3babe25c24dba9d832da6bf8) Enhance route command with ptables and multiple routes - [`4f97e07`](https://github.com/juanfont/headscale/commit/4f97e077db683ff03f6e558510c4117c88ba94cd) Add --all flag to routes enable command to enable all advertised routes - [`693bce1`](https://github.com/juanfont/headscale/commit/693bce1b1050098aeee342c5dfd77a0735ea8fd5) Update test machine name properly ### 📊 Changes **3 files changed** (+252 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `cmd/headscale/cli/routes.go` (+70 -18) 📝 `routes.go` (+104 -19) 📝 `routes_test.go` (+78 -5) </details> ### 📄 Description This commit rewrites the `routes list` command to use ptables to present a slightly nicer list, including a new field if the route is enabled or not (which is quite useful). In addition, it reworks the enable command to support enabling multiple routes (not only one route as per removed TODO). This allows users to actually take advantage of exit-nodes and subnet relays. --- <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:29:27 +01:00
adam closed this issue 2025-12-29 02:29:28 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1252