mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Implements #617. Tailscale has changed the format of their ACLs to use a more firewall-y terms ("users" & "ports" -> "src" & "dst"). They have also started using all-lowercase tags. This PR applies these changes.
		
			
				
	
	
		
			26 lines
		
	
	
		
			448 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			448 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
// This ACL is used to test group expansion
 | 
						|
 | 
						|
{
 | 
						|
    "groups": {
 | 
						|
        "group:example": [
 | 
						|
            "testnamespace",
 | 
						|
        ],
 | 
						|
    },
 | 
						|
 | 
						|
    "hosts": {
 | 
						|
        "host-1": "100.100.100.100",
 | 
						|
        "subnet-1": "100.100.101.100/24",
 | 
						|
    },
 | 
						|
 | 
						|
    "acls": [
 | 
						|
        {
 | 
						|
            "action": "accept",
 | 
						|
            "src": [
 | 
						|
                "group:example",
 | 
						|
            ],
 | 
						|
            "dst": [
 | 
						|
                "host-1:*",
 | 
						|
            ],
 | 
						|
        },
 | 
						|
    ],
 | 
						|
} |