Skip to content

Commit 94b4b38

Browse files
committed
adds ACL file
1 parent 373d4cb commit 94b4b38

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

example-acls.hujson

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Example/default ACLs for unrestricted connections.
2+
{
3+
// Declare static groups of users. Use autogroups for all users or users with a specific role.
4+
"groups": {
5+
"group:admin": ["[email protected]"],
6+
7+
},
8+
9+
// Define the tags which can be applied to devices and by which users.
10+
"tagOwners": {
11+
"tag:prod": ["autogroup:admin"],
12+
"tag:dev": ["autogroup:admin", "group:dev"],
13+
"tag:container": ["autogroup:admin"],
14+
},
15+
16+
// Define access control lists for users, groups, autogroups, tags,
17+
// Tailscale IP addresses, and subnet ranges.
18+
"acls": [
19+
// Allow all connections.
20+
// Comment this section out if you want to define specific restrictions.
21+
{"action": "accept", "src": ["*"], "dst": ["*:*"]},
22+
],
23+
24+
// Define users and devices that can use Tailscale SSH.
25+
"ssh": [
26+
// Allow all users to SSH into their own devices in check mode.
27+
// Comment this section out if you want to define specific restrictions.
28+
{
29+
"action": "accept",
30+
"src": ["autogroup:member"],
31+
"dst": ["autogroup:self"],
32+
"users": ["autogroup:nonroot", "root"],
33+
//"checkPeriod": "1m", // optional, default 12h
34+
},
35+
// allows admin group to SSH into specified tags
36+
{
37+
"action": "accept",
38+
"src": ["group:dev"],
39+
"dst": ["tag:dev"],
40+
"users": ["autogroup:nonroot", "root"],
41+
},
42+
],
43+
"nodeAttrs": [
44+
{
45+
// Funnel policy, which lets tailnet members control Funnel
46+
// for their own devices.
47+
// Learn more at https://tailscale.com/kb/1223/tailscale-funnel/
48+
"target": ["autogroup:member"],
49+
"attr": ["funnel"],
50+
},
51+
{"target": ["100.71.14.42"], "attr": ["funnel"]},
52+
],
53+
54+
// Test access rules every time they're saved.
55+
// "tests": [
56+
// {
57+
// "src": "[email protected]",
58+
// "accept": ["tag:example"],
59+
// "deny": ["100.101.102.103:443"],
60+
// },
61+
// ],
62+
}

0 commit comments

Comments
 (0)