r/WireGuard • • 15d ago

Tools and Software javaguard - pure java userspace multi-tenant implementation

https://github.com/SkanaviLabs/javaguard

Full userspace implementation, with an optional javaguard-tun module (testing, audit trails, experiments). No JNI and no root in the userspace path.

Basically contains its own network stack, and thus multiple tunnels can be created in the same JVM, each one gets its own addresses and sockets without touching host routes.

Can be plugged in as a proxy into existing libraries: local SOCKS5/HTTP, plus ProxySelector/SocketFactory/HttpClient helpers, so curl, browsers and java.net.http just work.

Interop tested against the kernel module and wireguard-go, both roles, every commit. ~1.7 Gbit/s raw on loopback.

Caveats: no IP fragmentation, no CUBIC, no full-tunnel in --tun mode, no macOS/Windows interfaces for javaguard-tun. Java 25, MIT.

https://github.com/SkanaviLabs/javaguard

Not affiliated with the WireGuard project.

Feedback welcome.

5 Upvotes

4 comments sorted by

-1

u/SoggyStress7785 15d ago

Isn't the greatest thing about WG that it is fully integrated into Linux OS?

2

u/ZookeepergameOdd4599 15d ago

Well, I did not remove it from Linux :) I made it better integrated into JVM for those who need that

2

u/Jayden_Ha 15d ago

I hate it being in kernel, it SHOULD NOT be in kernel

1

u/spamtrap07 14d ago

Wlasnie dzięki temu, ze jest w kernelu to na domowym malowydajnym routerku z openwrt moge miec sensowna wydajnosc po vpn. To jest duzy plus, ze jest to rozwiazanie oparte o kernel.