I usually just use zerotier for this, it's extremely lightweight
How come ZeroTier is 10X smaller?
A cursory look through https://github.com/zerotier/ZeroTierOne shows more C++ and some Rust. Not sure how much static linking is involved here.
I usually just use zerotier for this, it's extremely lightweight