ldkjhg 1 day ago

More than 10x faster than stock openvpn, and 2-3x faster than DCO. Faster than wireguard, both Go and kernel versions. Lower CPU usage.

No BPF/io_uring. Adds TLS encapsulation (for stealth), WebSocket for proxy, client-side ACLs (openvpn defaults to allow-any), client-side forwarding, pinned-keys, PQ key exchange.

Codebase can be built for Linux, macOS and Windows. GUI uses SDL3. Daemon uses between 5-30MB of memory depending on throughput level.

iperf TCP single stream over the tunnel type, in Gbps. Linux VMs in ESXi with ConnectX-5 SR-IOV pairs. On Linux with direct containers, it's even faster (more than 14Gbps).

                                    UDP up   down   TCP up  down
  OpenVPN 2.7.7, userspace          0.72     1.22   0.84    1.15
  OpenVPN 2.7.7, kernel DCO         4.23     4.18   4.31    4.58
  noirvpn, userspace                8.34     6.98   4.91    5.17
  noirvpn, userspace, workers 2    12.19     9.42   6.01    6.66
  WireGuard, kernel                 7.09     5.42   n/a     n/a

On an A55 ARM NanoPi R5C, wireguard gets around 550Mbps, this can do >700Mbps.

bradknowles 1 day ago

Okay, it’s faster. What’s your security audit look like? How many lines of code do you have?

How big is your attack surface area? How many large-scale attacks has your code survived?

Wireguard has done so well for so long, in part because it has kept a minimal attack surface area. The code has been audited multiple times. The code is battle-hardened. And fast.

Before I seriously consider anything else as a replacement, I’m going to need to see all of your numbers in this area, as compared to Wireguard.

  • ldkjhg 1 day ago

    The code is there for review.

    This isn't the first VPN I've implemented; I gave OpenVPN the multi-peer DCO code that's in ovpn-dco-win and I did work on accelerating pfsense's in-kernel crypto.

    WireGuard is not just one implementation; every one has their own version. And it has seen breakages, and it can suffer from resource haemorrhaging. The reason I raise WG up is because people conflate its performance because of its protocol, but don't understand that at the data-path, it's just AEAD with the cipher that's chosen and how that AEAD data plane is implemented.

    The tunnel security here is simple (in terms of what it uses): - it depends on OpenSSL (or AWS-LC) for handshaking TLS and key discovery, which is what openvpn would do too. - the AEAD data channel is the same in terms of known usage of AES-256-GCM, ensuring that keys are flipped before the threshold of the counter (proto/crypt).

    The security elsewhere will be how people deploy it and what trust environment they run it on, ie cert management and key management.

    The weakness of stock openvpn is that it allows all connections into the client, that's why I added client-side ACLs to restrict what comes inbound. And also allow explicit setting to block IPv6 immediately (for those who don't want leakage).

    Like any new software, people should only test it in an isolated environment first and see what it does. It's new code, so the numbers you are asking for in the prefix is not possible to provide.

    • ldkjhg 1 day ago

      I forgot to mention that the regression test harness takes about 5 hours to complete. The code of it is not in the repo because it uses a private test environment, but does use both container and virtual machines for bringup.

      It doesn't just do one-shot units, but monitors things like timing of key rotation, what happens when the server goest silent, the behaviour when concurrent clients connect, mixed between openvpn 2.6 and 2.7, what happens when there's a slow peer, etc.