Skip to content

Instantly share code, notes, and snippets.

@kyhwana
Created March 4, 2022 07:25
Show Gist options
  • Save kyhwana/05dae5df06ed24c89b08a1090ae7aca9 to your computer and use it in GitHub Desktop.
Save kyhwana/05dae5df06ed24c89b08a1090ae7aca9 to your computer and use it in GitHub Desktop.
ipv4 allow for headscale for exit nodes, while excluding RFC1918 etc IPs
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "0.0.0.0/5:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "8.0.0.0/7:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "11.0.0.0/8:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "12.0.0.0/6:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "16.0.0.0/4:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "32.0.0.0/3:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "64.0.0.0/2:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "128.0.0.0/3:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "160.0.0.0/5:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "168.0.0.0/6:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "172.0.0.0/12:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "172.32.0.0/11:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "172.64.0.0/10:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "172.128.0.0/9:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "173.0.0.0/8:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "174.0.0.0/7:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "176.0.0.0/4:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.0.0.0/9:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.128.0.0/11:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.160.0.0/13:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.169.0.0/16:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.170.0.0/15:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.172.0.0/14:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.176.0.0/12:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "192.192.0.0/10:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "193.0.0.0/8:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "194.0.0.0/7:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "196.0.0.0/6:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "200.0.0.0/5:*" ]
},
{
"Action": "accept",
"Users": [ "group:admin", "group:users" ],
"Ports": [ "208.0.0.0/4:*" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment