98 lines
3.0 KiB
Plaintext
98 lines
3.0 KiB
Plaintext
// Example/default ACLs for unrestricted connections.
|
|
{
|
|
// Declare static groups of users. Use autogroups for all users or users with a specific role.
|
|
// "groups": {
|
|
// "group:example": ["alice@example.com", "bob@example.com"],
|
|
// },
|
|
|
|
// Define the tags which can be applied to devices and by which users.
|
|
// "tagOwners": {
|
|
// "tag:example": ["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.
|
|
|
|
// Allow users in "group:example" to access "tag:example", but only from
|
|
// devices that are running macOS and have enabled Tailscale client auto-updating.
|
|
//
|
|
// GÄSTE - NUR ZUGRIFF AUF ABS
|
|
// {"action": "accept", "src": ["100.87.87.72"], "dst": ["100.87.87.102:*", "100.87.87.80:*"]},
|
|
//
|
|
// ALLE ANDEREN ZUGRIFF AUF ALLEN GEWÄHREN
|
|
{"action": "accept", "src": ["100.87.87.2", "100.87.87.4", "100.87.87.5", "100.87.87.6", "100.87.87.22", "100.87.87.46", "100.87.87.47", "100.87.87.48", "100.87.87.50", "100.87.87.51", "100.87.87.52", "100.87.87.53", "100.87.87.54", "100.87.87.55", "100.87.87.56", "100.87.87.57", "100.87.87.72", "100.87.87.77", "100.87.87.80", "100.87.87.81", "100.87.87.90", "100.87.87.100", "100.87.87.101", "100.87.87.102", "100.87.87.104", "100.87.87.105", "100.87.87.108"], "dst": ["*:*"]},
|
|
],
|
|
|
|
// Define postures that will be applied to all rules without any specific
|
|
// srcPosture definition.
|
|
// "defaultSrcPosture": [
|
|
// "posture:anyMac",
|
|
// ],
|
|
|
|
// Define device posture rules requiring devices to meet
|
|
// certain criteria to access parts of your system.
|
|
// "postures": {
|
|
// // Require devices running macOS, a stable Tailscale
|
|
// // version and auto update enabled for Tailscale.
|
|
// "posture:autoUpdateMac": [
|
|
// "node:os == 'macos'",
|
|
// "node:tsReleaseTrack == 'stable'",
|
|
// "node:tsAutoUpdate",
|
|
// ],
|
|
// // Require devices running macOS and a stable
|
|
// // Tailscale version.
|
|
// "posture:anyMac": [
|
|
// "node:os == 'macos'",
|
|
// "node:tsReleaseTrack == 'stable'",
|
|
// ],
|
|
// },
|
|
|
|
// 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": "check",
|
|
"src": ["autogroup:member"],
|
|
"dst": ["autogroup:self"],
|
|
"users": ["autogroup:nonroot", "root"],
|
|
},
|
|
],
|
|
|
|
// Test access rules every time they're saved.
|
|
// "tests": [
|
|
// {
|
|
// "src": "alice@example.com",
|
|
// "accept": ["tag:example"],
|
|
// "deny": ["100.101.102.103:443"],
|
|
// },
|
|
// ],
|
|
"nodeAttrs": [
|
|
{
|
|
"target": ["*"],
|
|
"attr": [
|
|
"drive:share",
|
|
"drive:access",
|
|
],
|
|
},
|
|
],
|
|
"grants": [
|
|
{
|
|
"src": ["*"],
|
|
"dst": ["*"],
|
|
"app": {
|
|
"tailscale.com/cap/drive": [{
|
|
"shares": ["*"],
|
|
"access": "rw",
|
|
}],
|
|
},
|
|
},
|
|
],
|
|
}
|