From 183a38715c045e8e0b5ec7f71d395c2f65970210 Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Sat, 20 Dec 2025 10:11:04 +0100 Subject: [PATCH] Fix list-routes examples --- docs/ref/routes.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/ref/routes.md b/docs/ref/routes.md index a1c438b7..e426f45b 100644 --- a/docs/ref/routes.md +++ b/docs/ref/routes.md @@ -42,8 +42,9 @@ can be used. ```console $ headscale nodes list-routes -ID | Hostname | Approved | Available | Serving (Primary) -1 | myrouter | | 10.0.0.0/8, 192.168.0.0/24 | +ID | Hostname | Approved | Available | Serving (Primary) +1 | myrouter | | 10.0.0.0/8 | + | | | 192.168.0.0/24 | ``` Approve all desired routes of a subnet router by specifying them as comma separated list: @@ -57,8 +58,9 @@ The node `myrouter` can now route the IPv4 networks `10.0.0.0/8` and `192.168.0. ```console $ headscale nodes list-routes -ID | Hostname | Approved | Available | Serving (Primary) -1 | myrouter | 10.0.0.0/8, 192.168.0.0/24 | 10.0.0.0/8, 192.168.0.0/24 | 10.0.0.0/8, 192.168.0.0/24 +ID | Hostname | Approved | Available | Serving (Primary) +1 | myrouter | 10.0.0.0/8 | 10.0.0.0/8 | 10.0.0.0/8 + | | 192.168.0.0/24 | 192.168.0.0/24 | 192.168.0.0/24 ``` #### Use the subnet router @@ -168,8 +170,9 @@ available, but needs to be approved: ```console $ headscale nodes list-routes -ID | Hostname | Approved | Available | Serving (Primary) -1 | myexit | | 0.0.0.0/0, ::/0 | +ID | Hostname | Approved | Available | Serving (Primary) +1 | myexit | | 0.0.0.0/0 | + | | | ::/0 | ``` For exit nodes, it is sufficient to approve either the IPv4 or IPv6 route. The other will be approved automatically. @@ -183,8 +186,9 @@ The node `myexit` is now approved as exit node for the tailnet: ```console $ headscale nodes list-routes -ID | Hostname | Approved | Available | Serving (Primary) -1 | myexit | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0 +ID | Hostname | Approved | Available | Serving (Primary) +1 | myexit | 0.0.0.0/0 | 0.0.0.0/0 | 0.0.0.0/0 + | | ::/0 | ::/0 | ::/0 ``` #### Use the exit node