FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-guide-code-examples/example-acls.hujson at main · nuwanif/docker-guide-code-examples · GitHub
nuwanif
/
docker-guide-code-examples
Public
forked from
tailscale-dev/docker-guide-code-examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-guide-code-examples
/
example-acls.hujson
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (58 loc) · 1.85 KB
Breadcrumbs
docker-guide-code-examples
/
example-acls.hujson
Copy path
File metadata and controls
62 lines (58 loc) · 1.85 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
Example/default ACLs for unrestricted connections.
{
//
Declare static groups of users. Use autogroups for all users or users with a specific role.
"groups"
: {
"group:admin"
: [
"
atailandscales@gmail.com
"
],
"group:dev"
: [
"
atailandscales@gmail.com
"
,
"
amelie@tailandscales.com
"
],
},
//
Define the tags which can be applied to devices and by which users.
"tagOwners"
: {
"tag:prod"
: [
"
autogroup:admin
"
],
"tag:dev"
: [
"
autogroup:admin
"
,
"
group:dev
"
],
"tag:container"
: [
"
autogroup:admin
"
],
},
//
Define access control lists for users, groups, autogroups, tags,
//
Tailscale IP addresses, and subnet ranges.
"acls"
: [
//
Allow all connections.
//
Comment this section out if you want to define specific restrictions.
{
"action"
:
"
accept
"
,
"src"
: [
"
*
"
],
"dst"
: [
"
*:*
"
]},
],
//
Define users and devices that can use Tailscale SSH.
"ssh"
: [
//
Allow all users to SSH into their own devices in check mode.
//
Comment this section out if you want to define specific restrictions.
{
"action"
:
"
accept
"
,
"src"
: [
"
autogroup:member
"
],
"dst"
: [
"
autogroup:self
"
],
"users"
: [
"
autogroup:nonroot
"
,
"
root
"
],
//
"checkPeriod": "1m", // optional, default 12h
},
//
allows admin group to SSH into specified tags
{
"action"
:
"
accept
"
,
"src"
: [
"
group:dev
"
],
"dst"
: [
"
tag:dev
"
],
"users"
: [
"
autogroup:nonroot
"
,
"
root
"
],
},
],
"nodeAttrs"
: [
{
//
Funnel policy, which lets tailnet members control Funnel
//
for their own devices.
//
Learn more at https://tailscale.com/kb/1223/tailscale-funnel/
"target"
: [
"
autogroup:member
"
],
"attr"
: [
"
funnel
"
],
},
{
"target"
: [
"
100.71.14.42
"
],
"attr"
: [
"
funnel
"
]},
],
//
Test access rules every time they're saved.
//
"tests": [
//
{
//
"src": "alice@example.com",
//
"accept": ["tag:example"],
//
"deny": ["100.101.102.103:443"],
//
},
//
],
}
Back
|
FazBrowse Home
|
New Git URL