
Implements a WireGuard VPN tunnel backend: lifecycle management, configuration parsing, connection handling, secure key management, monitoring and diagnostics for client applications.
The shared backend used by the WG Tunnel apps: WireGuard / AmneziaWG config parsing, tunnel orchestration, tunnel recovery, DNS bootstrap, and native JNI.
| Artifact | Description |
|---|---|
com.wgtunnel:parser |
WireGuard / AmneziaWG conf parser (JVM) |
com.wgtunnel:backend |
Kotlin Multiplatform tunnel backend (pulls the Android or JVM variant) |
com.wgtunnel:backend-android |
Android variant of the backend |
com.wgtunnel:backend-jvm |
JVM / desktop variant of the backend |
com.wgtunnel:backend-android-jni |
AmneziaWG userspace + JNI |
com.wgtunnel:hevtunnel |
hev-socks5-tunnel JNI for lockdown / kill switch |
Install these before a source build.
makeflock
Go toolchain is downloaded and patched.
From the repo root:
./gradlew buildFormat Kotlin:
./gradlew formatrepositories {
mavenCentral()
}
dependencies {
implementation("com.wgtunnel:parser:<version>")
implementation("com.wgtunnel:backend:<version>")
// Android
implementation("com.wgtunnel:backend-android-jni:<version>")
implementation("com.wgtunnel:hevtunnel:<version>")
}Replace <version> with the latest Maven Central version.
MIT. See LICENSE and NOTICE for third-party components (AmneziaWG, hev-socks5-tunnel, Tailscale-derived desktop firewall/router).
The shared backend used by the WG Tunnel apps: WireGuard / AmneziaWG config parsing, tunnel orchestration, tunnel recovery, DNS bootstrap, and native JNI.
| Artifact | Description |
|---|---|
com.wgtunnel:parser |
WireGuard / AmneziaWG conf parser (JVM) |
com.wgtunnel:backend |
Kotlin Multiplatform tunnel backend (pulls the Android or JVM variant) |
com.wgtunnel:backend-android |
Android variant of the backend |
com.wgtunnel:backend-jvm |
JVM / desktop variant of the backend |
com.wgtunnel:backend-android-jni |
AmneziaWG userspace + JNI |
com.wgtunnel:hevtunnel |
hev-socks5-tunnel JNI for lockdown / kill switch |
Install these before a source build.
makeflock
Go toolchain is downloaded and patched.
From the repo root:
./gradlew buildFormat Kotlin:
./gradlew formatrepositories {
mavenCentral()
}
dependencies {
implementation("com.wgtunnel:parser:<version>")
implementation("com.wgtunnel:backend:<version>")
// Android
implementation("com.wgtunnel:backend-android-jni:<version>")
implementation("com.wgtunnel:hevtunnel:<version>")
}Replace <version> with the latest Maven Central version.
MIT. See LICENSE and NOTICE for third-party components (AmneziaWG, hev-socks5-tunnel, Tailscale-derived desktop firewall/router).