Getting Started
Install once, open the dashboard, connect a device.
This page explains how to get started with TunGuard. The recommended installation method is the official installer, which installs TunGuard and starts the service automatically.
Preliminary Steps⚓
Before installing TunGuard, there are some requirements to be met:
- You need a Linux VPS or server that you can manage
- You need a public IP address or a hostname that points to your server
- You need a supported architecture (
amd64orarm64) - You need
rootorsudoaccess
Host Setup⚓
TunGuard runs directly on the host and does not require Docker or another container runtime.
The server should have:
- A supported Linux distribution
- Internet access
rootorsudoprivileges- UDP port
13231available for WireGuard - TCP port
9000available for the dashboard and API
VPS Firewall
Make sure your VPS provider's firewall or security group allows the required TunGuard ports.
The default ports are:
13231/UDP— WireGuard9000/TCP— Dashboard and API2222/TCP— SSH Gateway, when enabled7000/TCP— P2P control channel, used by the TunGuard client7001/UDP— P2P rendezvous and relay
7000/TCP and 7001/UDP are only needed if you plan to build a P2P
mesh. They are opened automatically; open them only when
you intend to use them.
Installing TunGuard⚓
Official Installer⚓
Install the latest stable release with:
The installer automatically installs TunGuard and starts the service. There is no need to manually start the web server after installation.
Open the Dashboard⚓
Once installation is complete, open:
http://YOUR_SERVER_IP:9000
For example:
[http://203.0.113.10:9000](http://203.0.113.10:9000)
The default login credentials are:
- Username:
admin - Password:
tanguard
Important Security Step
Until you change them, a dedicated setup page at http://YOUR_SERVER_IP:9000/login.html
takes over and asks for new credentials. The dashboard only opens once they are set.
Release Versions⚓
TunGuard releases follow Semantic Versioning.
The official release history and release notes are maintained in the TunGuard binary repository.
The documentation site automatically uses release information from the binary repository, so release versions do not need to be manually added to this page.
Follow the Guides⚓
Once TunGuard is installed, continue with the relevant guide:
- Dashboard
- Peers
- AdGuard DNS Filtering
- Domains & HTTPS Proxy
- SSH Access
- P2P Mesh
- TunGuard Client
- Configuration
- API
- Backups
Updating TunGuard
To update an existing installation, run:
The installer replaces the binary, keeps your service configuration and your data directory, and restarts the service.
Install the Client⚓
Devices that join a P2P mesh also run a small client. Install it on each device with:
Then enroll the device from the dashboard under P2P → Enroll device and run the command it shows you:
See TunGuard Client for the full client reference.