Linux
The Ziti Tunneller
ziti-edge-tunnel
is the general purpose tunneller CLI and can also run as a systemd daemon.
The purpose of the tunneller is to configure host access. This means all users and all processes on the host will share the same level of access. This is accomplished by configuring the OS to have an on-board OpenZiti DNS nameserver and IP routes for authorized OpenZiti Services.
Install Linux Package
Linux DEB packages are currently available for the x86_64 and arm64 platforms and RPM packages are available for x86_64. Additionally, there are executable downloads available for arm/v7 (32bit) for manual installation.
It is not necessary to manually enroll the identity when using the RPM or DEB package. Just install the token in the identities directory and it will be enrolled when you start the daemon.
Installing the DEB
- Run the script for your OS to install
ziti-edge-tunnel
.
- Ubuntu Jammy 22.04
- Ubuntu Focal 20.04
- Ubuntu Bionic 18.04
- Debian GNU/Linux
Ubuntu Jammy 22.04
Architectures available:
- x86_64
- arm64
curl -sSLf https://get.openziti.io/tun/package-repos.gpg \
| gpg --dearmor \
| sudo tee /usr/share/keyrings/openziti.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/openziti.gpg] https://packages.openziti.org/zitipax-openziti-deb-stable jammy main' \
| sudo tee /etc/apt/sources.list.d/openziti.list >/dev/null
sudo apt update
sudo apt install ziti-edge-tunnel
Ubuntu Focal 20.04
Architectures available:
- x86_64
- arm64
curl -sSLf https://get.openziti.io/tun/package-repos.gpg \
| gpg --dearmor \
| sudo tee /usr/share/keyrings/openziti.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/openziti.gpg] https://packages.openziti.org/zitipax-openziti-deb-stable focal main' \
| sudo tee /etc/apt/sources.list.d/openziti.list >/dev/null
sudo apt update
sudo apt install ziti-edge-tunnel
Ubuntu Bionic 18.04
Architectures available:
- x86_64
curl -sSLf https://get.openziti.io/tun/package-repos.gpg \
| gpg --dearmor \
| sudo tee /usr/share/keyrings/openziti.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/openziti.gpg] https://packages.openziti.org/zitipax-openziti-deb-stable bionic main' \
| sudo tee /etc/apt/sources.list.d/openziti.list >/dev/null
sudo apt update
sudo apt install ziti-edge-tunnel
Debian GNU/Linux
Debian | Ubuntu | Archs |
---|---|---|
12 Bookworm | Jammy 22.04 | x86_64, arm64 |
11 Bullseye | Focal 20.04 | x86_64, arm64 |
10 Buster | Bionic 18.04 | x86_64 |
9 Stretch | Xenial 16.04 | x86_64 |
8 Jessie | Trusty 14.04 | x86_64 |
This example subscribes you to the Ubuntu focal
repo which will work well in most cases. Alternatively, you may refer to the table to find the Ubuntu release name that is the contemporary of your Debian release. Then, substitute the Ubuntu release name for focal
in the /etc/apt/sources.list.d/openziti.list
file.
curl -sSLf https://get.openziti.io/tun/package-repos.gpg \
| gpg --dearmor \
| sudo tee /usr/share/keyrings/openziti.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/openziti.gpg] https://packages.openziti.org/zitipax-openziti-deb-stable focal main' \
| sudo tee /etc/apt/sources.list.d/openziti.list >/dev/null
sudo apt update
sudo apt install ziti-edge-tunnel
Place an enrollment token JWT file or identity config JSON file in
/opt/openziti/etc/identities
.Enable and start the service
sudo systemctl enable --now ziti-edge-tunnel.service
The process needs to be restarted if the contents of
/opt/openziti/etc/identities
change.sudo systemctl restart ziti-edge-tunnel.service
Installing the RPM
- Create a repo file like
/etc/yum.repos.d/openziti.repo
matching the appropriate example below for your OS.
- Red Hat
- Red Hat 9
- Fedora
- Amazon Linux
Red Hat
Architectures available:
- x86_64
Use this repo with var $releasever
on CentOS 7, Rocky 8, RHEL 7-8.
[OpenZiti]
name=OpenZiti
baseurl=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat$releasever/$basearch
enabled=1
gpgcheck=0
gpgkey=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat$releasever/$basearch/repodata/repomd.xml.key
repo_gpgcheck=1
Red Hat 9
Architectures available:
- x86_64
Use the the Red Hat 8 repo until a dedicated Red Hat 9 repo becomes available (link to issue).
[OpenZiti]
name=OpenZiti
baseurl=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat8/$basearch
enabled=1
gpgcheck=0
gpgkey=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat8/$basearch/repodata/repomd.xml.key
repo_gpgcheck=1
Fedora
Architectures available:
- x86_64
[OpenZiti]
name=OpenZiti
baseurl=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat8/$basearch
enabled=1
gpgcheck=0
gpgkey=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat8/$basearch/repodata/repomd.xml.key
repo_gpgcheck=1
Amazon Linux
Architectures available:
- x86_64
[OpenZiti]
name=OpenZiti
baseurl=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat7/$basearch
enabled=1
gpgcheck=0
gpgkey=https://packages.openziti.org/zitipax-openziti-rpm-stable/redhat7/$basearch/repodata/repomd.xml.key
repo_gpgcheck=1
Run
sudo yum update
to refresh your repo data cache. Optionally, you may wish to also install all available updates.Run
sudo yum install ziti-edge-tunnel
to install the RPM.Place an enrollment token JWT file or identity config JSON file in
/opt/openziti/etc/identities
.Enable and start the service
sudo systemctl enable --now ziti-edge-tunnel.service
The process needs to be restarted if the contents of
/opt/openziti/etc/identities
change.sudo systemctl restart ziti-edge-tunnel.service
Manual Installation
The latest binary release of ziti-edge-tunnel
is distributed as an executable for amd64, arm, arm64 architectures. The upgrade procedure is identical to the installation procedure.
You'll need to install the wget
and unzip
commands to use this example.
wget -q "https://github.com/openziti/ziti-tunnel-sdk-c/releases/latest/download/ziti-edge-tunnel-Linux_$(uname -p).zip" \
&& unzip ./ziti-edge-tunnel-Linux_$(uname -p).zip \
&& rm ./ziti-edge-tunnel-Linux_$(uname -p).zip \
&& chmod -c +x ./ziti-edge-tunnel \
&& ./ziti-edge-tunnel version
Enroll Before You Run
You will need the token file or its contents to enroll. Enrollment is the act of exchanging the token for an identity that is to be permanently installed in the filesystem.
Run the Manually Installed Binary
ziti-edge-tunnel run \
--identity-dir /opt/openziti/etc/identities
Learn more about tunneler options and modes.
Run with Docker
Please reference the article about running the Linux tunneler in a container for guidance and examples!
Troubleshooting
Please refer to the troubleshooting guide