ACLs with multiple users do not work #475

Closed
opened 2025-12-29 01:30:07 +01:00 by adam · 2 comments
Owner

Originally created by @ToeiRei on GitHub (Apr 18, 2023).

Config as follows:


  "groups": {
    "group:admin": ["user1"],
    "group:family": ["user2"],
  },

  "Hosts": {
    "firewall": "100.64.0.1",
    "lan": "192.168.1.0/24",
  },
    
  "acls": [
    // Admin can connect to LAN
    {
      "action": "accept",
      "src": ["group:admin"],
      "dst": ["lan:*", "firewall:0", "group:admin:*" ]
    },
       
    // Family can connect to LAN
    {
      "action": "accept",
      "src": ["group:family"],
      "dst": ["lan:*", "firewall:0", "group:family:*" ]
    },
  ] 
}

firewall is 'owned' by user1

The problem:

  • user1 (admin) can connect to headscale
  • user2 (family group) can connect to headscale
  • user1 is able to connect to a host in the LAN
  • user2 cannot talk to any hosts in the LAN

Environment:
tested with v0.22.0-alpha2 as well as with v0.21.0

Originally created by @ToeiRei on GitHub (Apr 18, 2023). Config as follows: ```json "groups": { "group:admin": ["user1"], "group:family": ["user2"], }, "Hosts": { "firewall": "100.64.0.1", "lan": "192.168.1.0/24", }, "acls": [ // Admin can connect to LAN { "action": "accept", "src": ["group:admin"], "dst": ["lan:*", "firewall:0", "group:admin:*" ] }, // Family can connect to LAN { "action": "accept", "src": ["group:family"], "dst": ["lan:*", "firewall:0", "group:family:*" ] }, ] } ``` firewall is 'owned' by user1 The problem: - user1 (admin) can connect to headscale - user2 (family group) can connect to headscale - user1 is able to connect to a host in the LAN - user2 cannot talk to any hosts in the LAN Environment: tested with v0.22.0-alpha2 as well as with v0.21.0
adam added the stalebug labels 2025-12-29 01:30:07 +01:00
adam closed this issue 2025-12-29 01:30:07 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 16, 2023):

This issue is stale because it has been open for 180 days with no activity.

@github-actions[bot] commented on GitHub (Oct 16, 2023): This issue is stale because it has been open for 180 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2023):

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions[bot] commented on GitHub (Oct 31, 2023): This issue was closed because it has been inactive for 14 days since being marked as stale.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#475