-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #993 from openziti/clarify-linux-resolver-config
organize and clarify linux tunneler doc
- Loading branch information
Showing
8 changed files
with
107 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
docusaurus/docs/reference/tunnelers/60-linux/50-linux-tunnel-troubleshooting.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
docusaurus/docs/reference/tunnelers/60-linux/_add_identities.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
The tunneller can run with zero or more identities loaded, and needs at least one to make OpenZiti services available on | ||
the host. Adding an identity means providing a JWT enrollment token which is used by the tunneller to obtain a client | ||
certificate from the OpenZiti controller. [Learn more about OpenZiti Identities](/learn/core-concepts/identities/overview.mdx). | ||
|
||
### Add a Single Identity | ||
|
||
Root and members of group `ziti` may add an identity without restarting. | ||
|
||
```text | ||
sudo ziti-edge-tunnel add --jwt "$(< ./in-file.jwt)" --identity myIdentityName | ||
``` | ||
|
||
[Learn more about enrolling](/learn/core-concepts/identities/20-enrolling.md). | ||
|
||
### Load Identities Directory | ||
|
||
The tunneller will load all enrolled identities in the `--identity-dir` directory at startup. The default location for | ||
identities is is `/opt/openziti/etc/identities`. Add enrolled identity files to this directory by copying the JSON file | ||
into the directory and setting permissions for group `ziti`. | ||
|
||
:::note | ||
Linux package users may place enrollment tokens named `*.jwt` in this directory for automatic enrollment at next | ||
startup. | ||
::: | ||
|
||
Ensure the identities directory is writable by group `ziti` and not readable by others to protect the confidentiality of | ||
the identities. | ||
|
||
```text | ||
sudo chown -cR :ziti /opt/openziti/etc/identities | ||
sudo chmod -cR ug=rwX,o-rwx /opt/openziti/etc/identities | ||
``` | ||
|
||
The tunneller process needs to be restarted if the contents of `/opt/openziti/etc/identities` change. | ||
|
||
```text | ||
# package users can restart with systemd | ||
sudo systemctl restart ziti-edge-tunnel.service | ||
``` |
12 changes: 12 additions & 0 deletions
12
docusaurus/docs/reference/tunnelers/60-linux/_resolver.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
`ziti-edge-tunnel run` provides a built-in nameserver for the services it is authorized to dial. The nameserver is automatically configured by `systemd-resolved`, if enabled. | ||
|
||
If `systemd-resolved` is not enabled, you must configure your resolver to query the tunneler's nameserver. Add Ziti's nameserver to the connection manager, e.g., NetworkManager, Netplan, or by directly editing `/etc/resolv.conf`. | ||
|
||
You may configure the system resolver to use the tunneler's nameserver as the first or only nameserver. | ||
|
||
When the tunneler nameserver is the first of multiple nameservers and the requested DNS record does not match an authorized service's intercept domain name, it sets the query status to `REFUSE`. This implies that the caller *should* keep trying to resolve the domain name with other nameservers. | ||
|
||
To use the tunneler nameserver as the only nameserver, you must specify an upstream nameserver for recursion: `ziti-edge-tunnel run --dns-upstream 208.67.222.222`. In this configuration, the query status from the upstream nameserver is returned, e.g., `NXDOMAIN` if the domain name is not found in the tunneler nameserver or the upstream nameserver. | ||
|
||
The IP address of the nameserver (default: `100.64.0.2`) is determined by the tunneler's dns-ip-range (default: `100.64.0.1/10`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters