Is this a support request?
Is there an existing issue for this?
Current Behavior
I am trying to write a simple ACL Policy for my fresh tailnet but I have been stopped pretty much at the beginning after only adding two nodes and trying to get them to talk to each other.
Below is my first attempt at writing a simple policy. With this policy, both nodes can see + ping each other but I cannot SSH into the tagged device, it times out.
{
"tagOwners": {
"tag:exit": ["lm@"],
"tag:exit-vpn": ["lm@"],
},
"acls": [
{
"action": "accept",
"src": ["lm@"],
"dst": ["tag:exit-vpn:*"],
},
],
"ssh": [
{
"action": "accept",
"src": ["lm@"],
"dst": ["tag:exit-vpn"],
"users": ["root"],
},
],
}
I then changed the policies to be a little more "as expected" using groups and autogroups, and the result was that my user could only see itself, the tagged device could see itself and the user, and still SSH is not working.
{
"groups": {
"group:admins": ["lm@"],
},
"tagOwners": {
"tag:exit": ["group:admins"],
"tag:exit-vpn": ["group:admins"],
},
"acls": [
{
"action": "accept",
"src": ["group:admins"],
"dst": ["autogroup:tagged:*"],
},
],
"ssh": [
{
"action": "accept",
"src": ["group:admins"],
"dst": ["autogroup:tagged"],
"users": ["root"],
},
],
}
In both cases, tailscale debug netmap on the tagged device shows me an SSHPolicy of { "rules": null }
Expected Behavior
Given the above ACL policies, my expectation is that the user (or group) should see the tagged device (or all tagged devices) and that the tagged device should get an SSH Policy that allows the user[s] to access it via SSH.
Steps To Reproduce
- Created a fresh Tailnet using Headscale 0.28, Headplane 0.6.2, and Traefik via Docker Compose
- Generate an API key for Headplane and connect it
- Created a new user and connected a node via preauth key
- Connected a tagged device via preauth key and some tags
- Draft a very simple ACL policy as seen above
- Restart Headscale before testing new policies due to known bug
Environment
- OS: Ubuntu 24.04 LTS
- Headscale version: 0.28
- Tailscale version: 1.94.1
- Headplane version: 0.6.2
- Docker Compose
Runtime environment
Debug information
.
Is this a support request?
Is there an existing issue for this?
Current Behavior
I am trying to write a simple ACL Policy for my fresh tailnet but I have been stopped pretty much at the beginning after only adding two nodes and trying to get them to talk to each other.
Below is my first attempt at writing a simple policy. With this policy, both nodes can see + ping each other but I cannot SSH into the tagged device, it times out.
I then changed the policies to be a little more "as expected" using groups and autogroups, and the result was that my user could only see itself, the tagged device could see itself and the user, and still SSH is not working.
In both cases,
tailscale debug netmapon the tagged device shows me an SSHPolicy of{ "rules": null }Expected Behavior
Given the above ACL policies, my expectation is that the user (or group) should see the tagged device (or all tagged devices) and that the tagged device should get an SSH Policy that allows the user[s] to access it via SSH.
Steps To Reproduce
Environment
Runtime environment
Debug information
.