rule could not be enabled #574

Closed
opened 2025-12-29 02:20:41 +01:00 by adam · 1 comment
Owner

Originally created by @celevra on GitHub (Nov 10, 2023).

hi

at first, thanks for your work!

i cant enable a route, that is definitly available on the host, see this output:

vpn ~ # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.31.1.1      0.0.0.0         UG    100    0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 wg0
100.64.0.0      0.0.0.0         255.255.255.0   U     0      0        0 wg0
100.65.0.0      0.0.0.0         255.255.255.0   U     0      0        0 wg0
172.16.0.0      0.0.0.0         255.240.0.0     U     0      0        0 wg0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-72068921f556
172.25.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-465b7cd242b5
172.31.1.1      0.0.0.0         255.255.255.255 UH    100    0        0 eth0
185.12.64.1     172.31.1.1      255.255.255.255 UGH   100    0        0 eth0
185.12.64.2     172.31.1.1      255.255.255.255 UGH   100    0        0 eth0
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 wg0
vpn ~ # headscale route list
An updated version of Headscale has been found (0.23.0-alpha1 vs. your current 0.22.3). Check it out https://github.com/juanfont/headscale/releases
ID | Machine | Prefix         | Advertised | Enabled | Primary
1  | vpn     | 192.168.1.0/24 | false      | false   | true
6  | cloufw  | 0.0.0.0/0      | true       | true    | -
7  | cloufw  | ::/0           | true       | true    | -
8  | vpn     | 172.16.0.0/12  | false      | false   | false
9  | vpn     | 10.0.0.0/8     | false      | false   | false
10 | vpn     | 192.168.0.0/16 | true       | true    | true

vpn ~ # headscale route enable -r 9
An updated version of Headscale has been found (0.23.0-alpha1 vs. your current 0.22.3). Check it out https://github.com/juanfont/headscale/releases
Cannot enable route 9: route (vpn) is not available on node 10.0.0.0/8: route is not available on machine
vpn ~ #


2023-11-10T13:47:21Z INF unary dur=1.518285 md={":authority":"/var/run/headscale.sock","content-type":"application/grpc","user-agent":"grpc-go/1.54.0"} method=GetRoutes req={} service=headscale.v1.HeadscaleService
2023-11-10T13:47:23Z ERR unary error="route (vpn) is not available on node 10.0.0.0/8: route is not available on machine" code=Unknown details=[] dur=3.321769 md={":authority":"/var/run/headscale.sock","content-type":"application/grpc","user-agent":"grpc-go/1.54.0"} method=EnableRoute msg="route (vpn) is not available on node 10.0.0.0/8: route is not available on machine" req={"routeId":"9"} service=headscale.v1.HeadscaleService
2023-11-10T13:48:24Z INF The client has closed the connection handler=PollNetMapStream machine=vpn

do you need any logs?

regards

Originally created by @celevra on GitHub (Nov 10, 2023). hi at first, thanks for your work! i cant enable a route, that is definitly available on the host, see this output: ``` vpn ~ # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.31.1.1 0.0.0.0 UG 100 0 0 eth0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 wg0 100.64.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0 100.65.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0 172.16.0.0 0.0.0.0 255.240.0.0 U 0 0 0 wg0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-72068921f556 172.25.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-465b7cd242b5 172.31.1.1 0.0.0.0 255.255.255.255 UH 100 0 0 eth0 185.12.64.1 172.31.1.1 255.255.255.255 UGH 100 0 0 eth0 185.12.64.2 172.31.1.1 255.255.255.255 UGH 100 0 0 eth0 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wg0 vpn ~ # headscale route list An updated version of Headscale has been found (0.23.0-alpha1 vs. your current 0.22.3). Check it out https://github.com/juanfont/headscale/releases ID | Machine | Prefix | Advertised | Enabled | Primary 1 | vpn | 192.168.1.0/24 | false | false | true 6 | cloufw | 0.0.0.0/0 | true | true | - 7 | cloufw | ::/0 | true | true | - 8 | vpn | 172.16.0.0/12 | false | false | false 9 | vpn | 10.0.0.0/8 | false | false | false 10 | vpn | 192.168.0.0/16 | true | true | true vpn ~ # headscale route enable -r 9 An updated version of Headscale has been found (0.23.0-alpha1 vs. your current 0.22.3). Check it out https://github.com/juanfont/headscale/releases Cannot enable route 9: route (vpn) is not available on node 10.0.0.0/8: route is not available on machine vpn ~ # 2023-11-10T13:47:21Z INF unary dur=1.518285 md={":authority":"/var/run/headscale.sock","content-type":"application/grpc","user-agent":"grpc-go/1.54.0"} method=GetRoutes req={} service=headscale.v1.HeadscaleService 2023-11-10T13:47:23Z ERR unary error="route (vpn) is not available on node 10.0.0.0/8: route is not available on machine" code=Unknown details=[] dur=3.321769 md={":authority":"/var/run/headscale.sock","content-type":"application/grpc","user-agent":"grpc-go/1.54.0"} method=EnableRoute msg="route (vpn) is not available on node 10.0.0.0/8: route is not available on machine" req={"routeId":"9"} service=headscale.v1.HeadscaleService 2023-11-10T13:48:24Z INF The client has closed the connection handler=PollNetMapStream machine=vpn ``` do you need any logs? regards
adam added the bug label 2025-12-29 02:20:41 +01:00
adam closed this issue 2025-12-29 02:20:41 +01:00
Author
Owner

@celevra commented on GitHub (Nov 10, 2023):

my fault, the routes waerent advertised

@celevra commented on GitHub (Nov 10, 2023): my fault, the routes waerent advertised
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#574