headscale: trying policies
This commit is contained in:
37
modules/services/headscale/acl-policy.json
Normal file
37
modules/services/headscale/acl-policy.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"groups": {
|
||||||
|
"group:admin": ["motiejus@", "servers@"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"tagOwners": {
|
||||||
|
"tag:public-server": ["group:admin"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"action": "accept",
|
||||||
|
"src": ["group:admin"],
|
||||||
|
"dst": ["*:*"]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"action": "accept",
|
||||||
|
"src": ["*"],
|
||||||
|
"dst": ["tag:public-server:*"]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"action": "accept",
|
||||||
|
"src": ["*"],
|
||||||
|
"proto": "tcp",
|
||||||
|
"dst": ["*:22"]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"action": "accept",
|
||||||
|
"src": ["*"],
|
||||||
|
"proto": "icmp",
|
||||||
|
"dst": ["*:*"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
ip_prefixes = [ config.mj.services.headscale.subnetCIDR ];
|
ip_prefixes = [ config.mj.services.headscale.subnetCIDR ];
|
||||||
prefixes.v4 = config.mj.services.headscale.subnetCIDR;
|
prefixes.v4 = config.mj.services.headscale.subnetCIDR;
|
||||||
log.level = "warn";
|
log.level = "warn";
|
||||||
|
policy.path = ./acl-policy.json;
|
||||||
dns = {
|
dns = {
|
||||||
nameservers.global = [
|
nameservers.global = [
|
||||||
"1.1.1.1"
|
"1.1.1.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user