sipeed / NanoKVM

NanoKVM: Affordable, Multifunctional, Nano RISC-V IP-KVM
GNU General Public License v3.0
3.25k stars 61 forks source link

Feature request: OpenVPN #71

Open ddscentral opened 2 months ago

ddscentral commented 2 months ago

It would be beneficial to have OpenVPN added to the stock distribution as it is more universally supported than Tailscale. This would add another way to access KVM devices behind NAT.

I have cross-compiled OpenVPN from source using the LicheeRV-Nano sysroot and toolchain and it runs fine. I can access the KVM through it when connected to a server. Only needs a few extra libs installled, all of which are easy to cross-compile using the provided toolchain and sysroot.

BTW, if anyone needs OpenVPN on the NanoKVM right now, I can provide a tarball with prebuilt binaries.

SuperKali commented 2 months ago

I think it is an overkill feature, the nanokvm have a constant CPU utilization, openvpn on only a single core would make the stream go unstable

ddscentral commented 2 months ago

Well, it never went unstable for me. It handled 720p terminal over VPN just fine for me even with a slow 5G as upstream (my backup connection). With 1080p latency did increase, but it was still fine when accessing locally even with stream over VPN running simultaneously so my guess the increase is caused by slow internet connection.

But jeez, MJPEG sure eats a ton of bandwidth. A better codec would really help with latency when connecting remotely. We really need H264 on this thing...

ptrinh commented 1 month ago

Just use Tailscale. Much better.

ddscentral commented 1 month ago

Just use Tailscale. Much better.

I would not call it "much better". First of all, anything that requires me to create an account on a third party website just to manage local network resources is a showstopper for me. Wireguard network ain't rocket science to set up, you do not need any accounts for this.

gailulun commented 1 month ago

In some network environments that are not friendly to UDP, openvpn may be the best choice.

ddscentral commented 1 month ago

A bit offtopic. I've also compiled SoftEther client for testing. It's an L2 VPN but is about twice as fast as OpenVPN even over TCP. Not as easy to setup though. Won't ask to add it as it's niche and not as well known.