docs: describe which rules offer exit nodes

Exit routes need a rule to the internet. via grants add up; plain internet rules bypass via.
This commit is contained in:
Kristoffer Dalby committed 2026-11-05 15:34:46 +01:00
1 parent 6f2c7fbe7d
commit 9332d2d022
1 file changed
+8 -3
+8 -3
View File
@@ -206,9 +206,11 @@ for how to use an exit node on different operating systems.
### Restrict the use of an exit node with a policy
An exit node is offered to all nodes in a tailnet. By default, without a policy enabled, all nodes in a tailnet can
select and use an exit node. Configure `autogroup:internet` in a policy rule to restrict who can use _any_ of the
available exit nodes.
By default, without a policy enabled, all nodes in a tailnet can select and use an exit node. With a policy, a node can
use an exit node only if one of its rules allows access to the internet: `autogroup:internet`, `*` or a public IP
address. Through the exit node, it can reach only the addresses its rules allow. Rules that allow access only to nodes
in the tailnet or to private subnets do not offer exit nodes. Configure `autogroup:internet` in a policy rule to restrict
who can use _any_ of the available exit nodes.
```json title="Example use of autogroup:internet"
{
@@ -251,6 +253,9 @@ tagged with `tag:exit1` while user `bob` can only use an exit node tagged with `
}
```
A user who matches several `via` grants can use the exit nodes of all of them. A `via` grant does not hide exit nodes
from a user who also has a rule that allows access to the internet without `via`. Such a user can use all exit nodes.
### Automatically approve an exit node with auto approvers
The initial setup of an exit node usually requires manual approval on the control server before it can be used by a node