https://github.com/pritunl/pritunl-zero
Zero trust system
https://github.com/pritunl/pritunl-zero
beyondcorp smartcard u2f zero-trust
Last synced: 4 months ago
JSON representation
Zero trust system
- Host: GitHub
- URL: https://github.com/pritunl/pritunl-zero
- Owner: pritunl
- License: other
- Created: 2017-06-21T04:18:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2026-02-10T23:16:24.000Z (4 months ago)
- Last Synced: 2026-02-11T02:03:51.457Z (4 months ago)
- Topics: beyondcorp, smartcard, u2f, zero-trust
- Language: Go
- Homepage: https://zero.pritunl.com
- Size: 151 MB
- Stars: 645
- Watchers: 23
- Forks: 128
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
- Audit: audit/audit.go
Awesome Lists containing this project
README
# pritunl-zero: zero trust system
[](https://github.com/pritunl)
[](https://twitter.com/pritunl)
[](https://pritunl.medium.com)
[](https://forum.pritunl.com)
[Pritunl-Zero](https://zero.pritunl.com) is a zero trust system
that provides secure authenticated access to internal services from untrusted
networks without the use of a VPN. Documentation and more information can be
found at [docs.pritunl.com](https://docs.pritunl.com/kb/zero)
[](https://docs.pritunl.com/kb/zero)
## Install from Source
```bash
# Install Required Tools
sudo dnf -y install git-core
sudo rm -rf /usr/local/go
wget https://go.dev/dl/go1.25.5.linux-amd64.tar.gz
echo "9e9b755d63b36acf30c12a9a3fc379243714c1c6d3dd72861da637f336ebb35b go1.25.5.linux-amd64.tar.gz" | sha256sum -c - && sudo tar -C /usr/local -xf go1.25.5.linux-amd64.tar.gz
rm -f go1.25.5.linux-amd64.tar.gz
tee -a ~/.bashrc << EOF
export GOPATH=\$HOME/go
export GOROOT=/usr/local/go
export PATH=/usr/local/go/bin:\$PATH
EOF
source ~/.bashrc
# Install MongoDB
sudo tee /etc/yum.repos.d/mongodb-org.repo << EOF
[mongodb-org]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/9/mongodb-org/8.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://pgp.mongodb.com/server-8.0.asc
EOF
sudo dnf -y install mongodb-org
sudo systemctl enable --now mongod
# Build Pritunl Zero (update with latest version from releases)
go install -v github.com/pritunl/pritunl-zero@1.0.3648.46
go install -v github.com/pritunl/pritunl-zero/redirect@1.0.3648.46
# Install Systemd Units
sudo cp $(ls -d ~/go/pkg/mod/github.com/pritunl/pritunl-zero@v* | sort -V | tail -n 1)/tools/pritunl-zero.service /etc/systemd/system/
sudo cp $(ls -d ~/go/pkg/mod/github.com/pritunl/pritunl-zero@v* | sort -V | tail -n 1)/tools/pritunl-zero-redirect.socket /etc/systemd/system/
sudo cp $(ls -d ~/go/pkg/mod/github.com/pritunl/pritunl-zero@v* | sort -V | tail -n 1)/tools/pritunl-zero-redirect.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo useradd -r -s /sbin/nologin -c 'Pritunl web server' pritunl-zero-web
# Install Pritunl Zero
sudo mkdir -p /usr/share/pritunl-zero/www/
sudo cp -r $(ls -d ~/go/pkg/mod/github.com/pritunl/pritunl-zero@v* | sort -V | tail -n 1)/www/dist/. /usr/share/pritunl-zero/www/
sudo cp ~/go/bin/pritunl-zero /usr/bin/pritunl-zero
sudo cp ~/go/bin/redirect /usr/bin/pritunl-zero-redirect
sudo systemctl enable --now pritunl-zero
```
## License
Please refer to the [`LICENSE`](LICENSE) file for a copy of the license.