Uqda (Arabic: عُقَد, “nodes” or “knots”) is a userspace router for creating encrypted IPv6 networks over existing IPv4 or IPv6 links.
Project status
The latest stable UQDA release is recommended for supported platforms. The project has not been independently security-audited and should not be treated as an anonymity system. Use an IPv6 firewall and avoid exposing services that should not be reachable by other network participants.
Read the complete project guide for the architecture,
identity and addressing model, routing, cryptography, security boundaries,
configuration, every supported installation path, operation, and development.
Want one box to serve every phone and computer at home? Follow the
UQDA home gateway guide for Raspberry Pi OS,
Debian/Ubuntu appliances, and the experimental OpenWrt profile.
For a public visitor hotspot, use the hardened
UQDA café gateway profile.
For latency targets, peer selection, p95 measurement, and bufferbloat diagnosis,
read the performance guide.
Features
- End-to-end encrypted traffic between UQDA nodes.
- Self-organizing multi-hop routing without a central routing authority.
- Cryptographically derived IPv6 addresses tied to node identities.
- Peering over TCP, TLS, QUIC, WebSocket, secure WebSocket, SOCKS, and Unix sockets.
- Optional local multicast discovery.
- TUN integration for ordinary IPv6-capable applications.
- Code and integrations for Linux, macOS, Windows, FreeBSD, OpenBSD, OpenWrt, EdgeRouter, and VyOS.
- Local administration through
uqdactl.
How it works
Each node generates a cryptographic identity and derives its IPv6 address from the public key. The daemon creates a virtual TUN interface, establishes configured or locally discovered peerings, and forwards encrypted IPv6 packets across the available mesh paths. Peer links may themselves run over either IPv4 or IPv6 networks.
Build
Requirements: Go 1.25.13 or newer and Git.
git clone https://github.com/Uqda/Core.git
cd Core
./build
The build produces:
uqda — the network daemon;
uqdactl — the local administration client.
Verified one-command installation
The release installer detects the operating system and CPU, selects the native
package where available, verifies it against the release SHA256SUMS, and then
uses the platform package manager. Stable releases also publish a Sigstore
bundle for the checksum manifest and GitHub artifact attestations. Review the
script before running it:
curl -fsSLO https://github.com/Uqda/Core/releases/latest/download/install.sh
sudo sh install.sh
Homebrew on macOS
The repository also provides a Homebrew Cask that invokes the same verified
installer. It supports both Apple Silicon and Intel Macs:
brew tap uqda/core https://github.com/Uqda/Core
brew trust --cask uqda/core/uqda
brew install --cask uqda/core/uqda
To ask Homebrew to check and install the newest stable release:
brew upgrade --cask --greedy-latest uqda
Homebrew requires explicit trust for third-party taps. Trusting only
uqda/core/uqda limits that approval to this Cask instead of every executable
definition in the tap. The Cask delegates package selection and SHA-256
verification to the release installer, so the direct and Homebrew paths have
the same platform detection and checksum protection.
To update through the same verified path while preserving the existing
configuration and node identity:
curl -fsSLO https://github.com/Uqda/Core/releases/latest/download/updater.sh
sudo sh updater.sh
For publisher-authenticated verification with Sigstore before installation, see
the release verification guide.
Supported release paths are systemd-based Debian/Ubuntu, Fedora and immutable
Fedora derivatives such as Bazzite, macOS, EdgeOS 2.x, VyOS 1.3, and the listed
portable Linux/FreeBSD/OpenBSD targets. Windows users should download the
matching .msi asset from the release. OpenWrt is not yet included in the
one-command installer and remains an explicitly unvalidated release target.
The project does not currently have a paid Apple Developer account. macOS
packages are therefore published with -unsigned.pkg in their filename and
will trigger a Gatekeeper warning when opened from Finder. Prefer the verified
command-line installer above, which downloads the declared package and checks
its SHA-256 digest before invoking the system installer. Do not disable
Gatekeeper globally.
Run
For a temporary node using automatically generated settings:
sudo ./uqda -autoconf
For a persistent configuration:
./uqda -genconf > uqda.conf
$EDITOR uqda.conf
sudo ./uqda -useconffile ./uqda.conf
On Unix-like systems, administration is intentionally root-only. Run all
uqdactl commands through sudo, for example sudo uqdactl getSelf. The
local administration socket is created with mode 0600; access is not granted
to ordinary users or groups.
New nodes remain compatible with existing protocol 0.5 peers. When both sides support the hardened handshake, they negotiate it automatically. To require the hardened handshake on a controlled link and reject legacy peers, append ?secure=required to both the peer URI and listener URI.
Use -json with -genconf if strict JSON is preferred over commented HJSON. Creating a TUN interface normally requires administrator privileges. On Linux, the binary may instead be granted the required capability:
sudo setcap CAP_NET_ADMIN=+eip ./uqda
./uqda -useconffile ./uqda.conf
Docker
docker build -t uqda-core -f contrib/docker/Dockerfile .
docker run --rm -it \
--cap-add=NET_ADMIN \
--device=/dev/net/tun \
-v uqda-config:/etc/uqda \
uqda-core
The container creates its configuration inside the persistent uqda-config volume on first start.
EdgeOS and VyOS
Integrated router packages are produced by the Packages workflow for
EdgeRouter X (mipsel), EdgeRouter Lite (mips), and VyOS (amd64/i386).
After installing the matching .deb, create an interface through the native
router CLI:
configure
set interfaces uqda tun0
set interfaces uqda tun0 description UQDA
commit
save
Each interface has its own /config/uqda.tunN.conf, administration socket,
and uqda@tunN.service. Advanced peer settings can be edited in that config,
then applied with restart uqda tun0. See contrib/vyatta
for supported targets and local build commands.
Repository layout
| Path |
Purpose |
cmd/uqda |
Node daemon entry point |
cmd/uqdactl |
Administration CLI |
src/core |
Sessions, routing integration, and peer transports |
src/config |
Configuration and platform defaults |
src/tun |
Platform-specific virtual network interfaces |
src/admin |
Local administration API |
contrib/ |
Containers, service files, packages, and platform integrations |
.github/workflows/ |
Continuous integration and packaging automation |
Development
gofmt -w .
go vet ./...
go test ./...
go build ./...
sh tests/install_test.sh
See CONTRIBUTING.md before submitting changes. Report suspected vulnerabilities privately as described in SECURITY.md.
License
UQDA Core is distributed under the GNU Lesser General Public License v3 with the additional exception included in LICENSE. Third-party components remain subject to their respective licenses.
Acknowledgements and upstream origin
UQDA Core is based on and derived from the open-source Yggdrasil Network codebase. UQDA retains substantial concepts and implementation lineage from Yggdrasil while being developed under its own name and repository. Yggdrasil is an independent upstream project; this repository must not imply endorsement by or official affiliation with its maintainers. See NOTICE.md for attribution details.